From 617edbbce49097e8b300cd76e3cfaf14891395e8 Mon Sep 17 00:00:00 2001 From: Ishaan Jain Date: Sat, 20 Apr 2024 13:18:30 +0530 Subject: [PATCH 1/8] created git tag and git release pipeline --- .github/workflows/create_tag_and_release.yml | 67 ++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 .github/workflows/create_tag_and_release.yml diff --git a/.github/workflows/create_tag_and_release.yml b/.github/workflows/create_tag_and_release.yml new file mode 100644 index 0000000..7eb634a --- /dev/null +++ b/.github/workflows/create_tag_and_release.yml @@ -0,0 +1,67 @@ +name: Publish Create Tag and Git Release + +on: + push: + branches: + - "master" + +permissions: write-all + +defaults: + run: + working-directory: ./likeminds-chat-reactnative-integration + +jobs: + create_tag: + name: Create Git Tag + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Check for version changes + run: | + # Fetch all tags from the remote repository + git fetch --tags + + # Get the previous version from the last release tag + export previous_version=$(git describe --tags --abbrev=0) + + # Get the current version from package.json + export current_version=$(cat package.json | grep '"version":' | awk -F'"' '{print $4}') + + if [[ "$previous_version" != "v$current_version" ]]; then + echo "Version has changed from $previous_version to v$current_version." + else + echo "Version has not changed." + exit 1 + fi + - name: Push Git Tag + run: | + # Git login + git config --global user.name "$(git log -n 1 --pretty=format:%an)" + git config --global user.email "$(git log -n 1 --pretty=format:%ae)" + + # Push a Git tag with the new version + export current_version=$(cat package.json | grep '"version":' | awk -F'"' '{print $4}') + git tag -a "v$current_version" -m "Version $current_version" + git push origin "v$current_version" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + create-github-release: + name: Create GitHub Release + runs-on: ubuntu-latest + needs: create_tag + permissions: + contents: write + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Create Release + run: gh release create "$(git describe --tags --abbrev=0)" --generate-notes + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From fc3721749cb2737910b9d8c59f435b2f4f0d4e7c Mon Sep 17 00:00:00 2001 From: Ishaan Jain Date: Sat, 20 Apr 2024 13:21:04 +0530 Subject: [PATCH 2/8] increased versions --- example/package.json | 2 +- likeminds-chat-reactnative-integration/package.json | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/example/package.json b/example/package.json index a016723..b743b54 100644 --- a/example/package.json +++ b/example/package.json @@ -1,6 +1,6 @@ { "name": "example", - "version": "1.0.2", + "version": "1.0.3", "private": true, "scripts": { "android": "react-native run-android", diff --git a/likeminds-chat-reactnative-integration/package.json b/likeminds-chat-reactnative-integration/package.json index 837950c..37147ea 100644 --- a/likeminds-chat-reactnative-integration/package.json +++ b/likeminds-chat-reactnative-integration/package.json @@ -1,8 +1,8 @@ { "name": "@likeminds.community/chat-rn-core", - "version": "1.0.2", - "versionCode": "14", - "versionName": "1.0.2", + "version": "1.0.3", + "versionCode": "15", + "versionName": "1.0.3", "description": "LikeMinds ReactNative Core SDK for chat", "scripts": { "android": "react-native run-android", From aff1c28708cb9f44e40af1d787c4d76020763f4b Mon Sep 17 00:00:00 2001 From: likeminds Date: Mon, 29 Apr 2024 16:15:55 +0530 Subject: [PATCH 3/8] added api key switcher --- example/.gitignore | 3 + example/App.tsx | 439 ++++++++++++++++++++------------ example/index.js | 17 +- example/package.json | 1 + example/sample/credentials.ts | 27 ++ example/sample/index.tsx | 142 +++++++++++ example/sample/loginSchemaRO.ts | 19 ++ 7 files changed, 472 insertions(+), 176 deletions(-) create mode 100644 example/sample/credentials.ts create mode 100644 example/sample/index.tsx create mode 100644 example/sample/loginSchemaRO.ts diff --git a/example/.gitignore b/example/.gitignore index 16f8c30..67b4307 100644 --- a/example/.gitignore +++ b/example/.gitignore @@ -61,3 +61,6 @@ yarn-error.log # Temporary files created by Metro to check the health of the file watcher .metro-health-check* + +google-services.json +GoogleService-Info.plist diff --git a/example/App.tsx b/example/App.tsx index a6e277b..a00084b 100644 --- a/example/App.tsx +++ b/example/App.tsx @@ -5,7 +5,7 @@ * @format */ -import React, {useEffect} from 'react'; +import React, {useEffect, useState} from 'react'; import {KeyboardAvoidingView, Platform} from 'react-native'; import {NavigationContainer} from '@react-navigation/native'; import {createNativeStackNavigator} from '@react-navigation/native-stack'; @@ -31,6 +31,7 @@ import { ViewParticipants, AddParticipants, DmAllMembers, + initMyClient, } from '@likeminds.community/chat-rn-core'; import {myClient} from '.'; import ChatroomScreenWrapper from './screens/Chatroom/ChatroomScreenWrapper'; @@ -45,6 +46,11 @@ import { } from '@likeminds.community/chat-rn-core/ChatSX/constants/Screens'; import FileUploadScreen from './screens/FileUpload'; import FileUploadScreenWrapper from './screens/FileUpload/FileUploadWrapper'; +import {useQuery} from '@realm/react'; +import {Credentials} from './sample/credentials'; +import {LoginSchemaRO} from './sample/loginSchemaRO'; +import FetchKeyInputScreen from './sample'; +import {ConversationState} from '@likeminds.community/chat-rn'; const Stack = createNativeStackNavigator(); @@ -70,180 +76,279 @@ class CustomCallbacks implements LMChatCallbacks, LMChatroomCallbacks { const lmChatInterface = new CustomCallbacks(); function App(): React.JSX.Element { - const userName = ''; - const userUniqueId = ''; const chatroomId = ''; const profileImageUrl = ''; + const [users, setUsers] = useState(); + const [apiKey, setApiKey] = useState( + Credentials?.apiKey?.length > 0 ? Credentials?.apiKey : users?.apiKey, + ); + const [userUniqueID, setUserUniqueID] = useState( + Credentials?.userUniqueId?.length > 0 + ? Credentials.userUniqueId + : users?.userUniqueID, + ); + const [userName, setUserName] = useState( + Credentials?.username?.length > 0 ? Credentials?.username : users?.userName, + ); + const [myClient, setMyClient] = useState(); + const [isTrue, setIsTrue] = useState(true); + const loginSchemaArray: any = useQuery(LoginSchemaRO); + + useEffect(() => { + const userSchema = async () => { + const loginSchema = loginSchemaArray[0]; + if (loginSchema) { + Credentials.setCredentials( + loginSchema?.userName, + loginSchema?.userUniqueID, + loginSchema?.apiKey, + ); + setUsers(loginSchema); + } + }; + userSchema(); + }, [isTrue]); + + useEffect(() => { + setUserName( + Credentials?.username?.length > 0 + ? Credentials?.username + : users?.userName, + ); + setUserUniqueID( + Credentials?.userUniqueId?.length > 0 + ? Credentials.userUniqueId + : users?.userUniqueID, + ); + setApiKey( + Credentials?.apiKey?.length > 0 ? Credentials?.apiKey : users?.apiKey, + ); + }, [users, isTrue]); + + useEffect(() => { + if (apiKey) { + const filterStateMessage = [ + ConversationState.MEMBER_LEFT_SECRET_CHATROOM, + ]; // give type of conversation to be filtered using ConversationState enum + + // proivde apiKey below to initMyClient + const res: any = initMyClient(apiKey, filterStateMessage); // pass api key as first param and filterStateMessage array as second + setMyClient(res); + } + }, [isTrue, apiKey]); + + // const themeStyles = { + // fontTypes: { + // LIGHT: 'SofiaPro-Light', + // MEDIUM: 'SofiaPro-Medium', + // SEMI_BOLD: 'SofiaPro-SemiBold', + // BOLD: 'SofiaPro-Bold', + // BLACK: 'SofiaPro-Black', + // }, + // }; + + const themeStyles = { + // fontColor: 'black', + // primaryColor: '#B7D340', + // secondaryColor: '#B7D340', + // lightBackgroundColor: 'hsl(161, 67%, 91%)', + fontTypes: { + LIGHT: 'SofiaPro-Light', + MEDIUM: 'SofiaPro-Medium', + SEMI_BOLD: 'SofiaPro-SemiBold', + BOLD: 'SofiaPro-Bold', + BLACK: 'SofiaPro-Black', + }, + }; useEffect(() => { - setStyles(); + STYLES.setTheme(themeStyles); }, []); return ( <> - {Platform.OS === 'ios' ? ( - - - - - - - - - - - - - - - - - - - - - - - ) : ( - - - - - - - - - - - - - - - - - - - - - )} + {userName && userUniqueID && apiKey && myClient ? ( + <> + {Platform.OS === 'ios' ? ( + + + + + + + + + + + + + + + + + + + + + + + ) : ( + + + + + + + + + + + + + + + + + + + + + )} + + ) : !userName && !userUniqueID && !apiKey ? ( + + ) : null} ); } diff --git a/example/index.js b/example/index.js index efc5cc3..f267a2f 100644 --- a/example/index.js +++ b/example/index.js @@ -4,14 +4,13 @@ import {AppRegistry} from 'react-native'; import App from './App'; import {name as appName} from './app.json'; -import {initMyClient} from '@likeminds.community/chat-rn-core'; -import { ConversationState } from "@likeminds.community/chat-rn"; +import {RealmProvider} from '@realm/react'; +import {LoginSchemaRO} from './sample/loginSchemaRO'; -const filterStateMessage = []; // give type of conversation to be filtered using ConversationState enum +const WrappedApp = () => ( + + + +); -// proivde apiKey below to initMyClient -const myClient = initMyClient("", filterStateMessage); // pass api key as first param and filterStateMessage array as second - -AppRegistry.registerComponent(appName, () => App); - -export { myClient }; +AppRegistry.registerComponent(appName, () => WrappedApp); diff --git a/example/package.json b/example/package.json index a016723..41499f9 100644 --- a/example/package.json +++ b/example/package.json @@ -24,6 +24,7 @@ "@react-navigation/native": "6.1.2", "@react-navigation/native-stack": "6.9.8", "@react-navigation/stack": "6.3.29", + "@realm/react": "0.6.2", "@shopify/flash-list": "1.4.3", "@types/react-native-video": "5.0.19", "aws-sdk": "2.1380.0", diff --git a/example/sample/credentials.ts b/example/sample/credentials.ts new file mode 100644 index 0000000..7ce9970 --- /dev/null +++ b/example/sample/credentials.ts @@ -0,0 +1,27 @@ +export class Credentials { + private static _apiKey: string = ''; + private static _username: string = ''; + private static _userUniqueId: string = ''; + + static setCredentials( + username: string, + userUniqueId: string, + apiKey: string, + ): void { + Credentials._apiKey = apiKey; + Credentials._username = username; + Credentials._userUniqueId = userUniqueId; + } + + static get apiKey(): string { + return Credentials._apiKey; + } + + static get username(): string { + return Credentials._username; + } + + static get userUniqueId(): string { + return Credentials._userUniqueId; + } +} diff --git a/example/sample/index.tsx b/example/sample/index.tsx new file mode 100644 index 0000000..d45cb84 --- /dev/null +++ b/example/sample/index.tsx @@ -0,0 +1,142 @@ +import React, {useEffect, useState} from 'react'; +import { + View, + TextInput, + Button, + StyleSheet, + TouchableOpacity, + Text, + ActivityIndicator, + Keyboard, +} from 'react-native'; +import {Credentials} from './credentials'; +import {useRealm} from '@realm/react'; +import {LoginSchemaRO} from './loginSchemaRO'; +import {UpdateMode} from 'realm'; +import {STYLES} from '@likeminds.community/chat-rn-core'; + +interface ChildProps { + isTrue: boolean; + setIsTrue: (isTrue: boolean) => void; +} + +const FetchKeyInputScreen: React.FC = ({isTrue, setIsTrue}) => { + const [userUniqueID, setUserUniqueID] = useState(''); + const [userName, setUserName] = useState(''); + const [apiKey, setApiKey] = useState(''); + const [isButtonClicked, setIsButtonClicked] = useState(false); + const realm = useRealm(); + + const handleAddNotes = ( + userUniqueID: string, + userName: string, + apiKey: string, + ) => { + Credentials.setCredentials(userName, userUniqueID, apiKey); + }; + + useEffect(() => { + if (userUniqueID && userName && apiKey && isButtonClicked) { + return setIsTrue(!isTrue); + } + }, [isButtonClicked]); + + const saveLoginData = () => { + realm.write(() => { + realm.create( + LoginSchemaRO, + { + id: 'LoginSchema', + userUniqueID: userUniqueID, + userName: userName, + apiKey: apiKey, + }, + UpdateMode.All, + ); + }); + }; + + const handleButtonPress = () => { + // Perform some action when the button is pressed + // You can access the input values from input1 and input2 variables + handleAddNotes(userUniqueID, userName, apiKey); + + saveLoginData(); + + userUniqueID && userName && apiKey + ? setIsButtonClicked(true) + : setIsButtonClicked(false); + + if (userUniqueID && userName && apiKey) { + Keyboard.dismiss(); + } + }; + + return ( + + setApiKey(text)} + /> + setUserUniqueID(text)} + /> + setUserName(text)} + placeholderTextColor={'grey'} + /> + {} + }> + + Submit + + + + ); +}; + +const styles = StyleSheet.create({ + container: { + flex: 1, + justifyContent: 'center', + alignItems: 'center', + padding: 20, + backgroundColor: 'white', + }, + input: { + width: '100%', + height: 40, + borderColor: 'gray', + borderWidth: 1, + marginBottom: 20, + paddingHorizontal: 10, + color: 'black', + }, +}); + +export default FetchKeyInputScreen; diff --git a/example/sample/loginSchemaRO.ts b/example/sample/loginSchemaRO.ts new file mode 100644 index 0000000..0e7727a --- /dev/null +++ b/example/sample/loginSchemaRO.ts @@ -0,0 +1,19 @@ +import Realm from 'realm'; + +export class LoginSchemaRO extends Realm.Object { + id!: string; + userUniqueID!: string; + userName!: string; + apiKey!: string; + + static schema = { + name: 'LoginSchemaRO', + properties: { + id: 'string', + userUniqueID: 'string', + userName: 'string', + apiKey: 'string', + }, + primaryKey: 'id', + }; +} From e84b4cbb9db0e1fe41c24b56675d58f7c6d6c7ef Mon Sep 17 00:00:00 2001 From: likeminds Date: Mon, 29 Apr 2024 17:23:24 +0530 Subject: [PATCH 4/8] added version code on example layer --- example/App.tsx | 1 - .../ChatSX/components/InputBox/index.tsx | 5 ++++- .../ChatSX/context/ChatroomContext.tsx | 1 - .../ChatSX/context/MessageContext.tsx | 4 +--- likeminds-chat-reactnative-integration/ChatSX/setup.ts | 1 + 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/example/App.tsx b/example/App.tsx index a00084b..832d476 100644 --- a/example/App.tsx +++ b/example/App.tsx @@ -33,7 +33,6 @@ import { DmAllMembers, initMyClient, } from '@likeminds.community/chat-rn-core'; -import {myClient} from '.'; import ChatroomScreenWrapper from './screens/Chatroom/ChatroomScreenWrapper'; import {setStyles} from './styles'; import { diff --git a/likeminds-chat-reactnative-integration/ChatSX/components/InputBox/index.tsx b/likeminds-chat-reactnative-integration/ChatSX/components/InputBox/index.tsx index 9146282..20f1254 100644 --- a/likeminds-chat-reactnative-integration/ChatSX/components/InputBox/index.tsx +++ b/likeminds-chat-reactnative-integration/ChatSX/components/InputBox/index.tsx @@ -102,6 +102,7 @@ import { VoiceNotesProps, } from "./models"; import Animated, { + AnimatedStyleProp, Easing, useAnimatedStyle, useSharedValue, @@ -438,7 +439,9 @@ const MessageInputBox = ({ const composedGesture = Gesture.Simultaneous(longPressGesture, panGesture); // draggle mic panGesture styles - const panStyle = useAnimatedStyle((): ViewStyle | ImageStyle | TextStyle => { + const panStyle = useAnimatedStyle((): AnimatedStyleProp< + ViewStyle | ImageStyle | TextStyle + > => { return { transform: [ { diff --git a/likeminds-chat-reactnative-integration/ChatSX/context/ChatroomContext.tsx b/likeminds-chat-reactnative-integration/ChatSX/context/ChatroomContext.tsx index cdebf30..55c4080 100644 --- a/likeminds-chat-reactnative-integration/ChatSX/context/ChatroomContext.tsx +++ b/likeminds-chat-reactnative-integration/ChatSX/context/ChatroomContext.tsx @@ -104,7 +104,6 @@ import { import { getChatroom } from "../store/actions/chatroom"; import { fetchResourceFromURI, formatTime } from "../commonFuctions"; import { Image as CompressedImage } from "react-native-compressor"; -import { Conversation } from "@likeminds.community/chat-rn/dist/shared/responseModels/Conversation"; import { Client } from "../client"; import AudioPlayer from "../optionalDependecies/AudioPlayer"; diff --git a/likeminds-chat-reactnative-integration/ChatSX/context/MessageContext.tsx b/likeminds-chat-reactnative-integration/ChatSX/context/MessageContext.tsx index 1b556cf..a86a9a0 100644 --- a/likeminds-chat-reactnative-integration/ChatSX/context/MessageContext.tsx +++ b/likeminds-chat-reactnative-integration/ChatSX/context/MessageContext.tsx @@ -9,9 +9,7 @@ import React, { useState, } from "react"; import { useAppDispatch, useAppSelector } from "../store"; -import { ActivityIndicator, GestureResponderEvent, View } from "react-native"; -import STYLES from "../constants/Styles"; -import { Conversation } from "@likeminds.community/chat-rn/dist/shared/responseModels/Conversation"; +import { GestureResponderEvent, View } from "react-native"; import { SET_POSITION } from "../store/types/types"; import { Credentials } from "../credentials"; import { ChatroomContextValues, useChatroomContext } from "./ChatroomContext"; diff --git a/likeminds-chat-reactnative-integration/ChatSX/setup.ts b/likeminds-chat-reactnative-integration/ChatSX/setup.ts index 9fcec31..5ef60af 100644 --- a/likeminds-chat-reactnative-integration/ChatSX/setup.ts +++ b/likeminds-chat-reactnative-integration/ChatSX/setup.ts @@ -14,6 +14,7 @@ export const initMyClient = ( ) => { const myClient = LMChatClient.setApiKey(apiKey) .setfilterStateConversation(filterStateMessage) + .setVersionCode(31) .build(); Client.setMyClient(myClient); From 2300b8afbab694d17523e4c025e8d84ba02960d2 Mon Sep 17 00:00:00 2001 From: likeminds Date: Mon, 29 Apr 2024 17:43:49 +0530 Subject: [PATCH 5/8] changed folder name --- example/App.tsx | 6 +++--- example/index.js | 2 +- example/{sample => login}/credentials.ts | 0 example/{sample => login}/index.tsx | 0 example/{sample => login}/loginSchemaRO.ts | 0 5 files changed, 4 insertions(+), 4 deletions(-) rename example/{sample => login}/credentials.ts (100%) rename example/{sample => login}/index.tsx (100%) rename example/{sample => login}/loginSchemaRO.ts (100%) diff --git a/example/App.tsx b/example/App.tsx index 832d476..199f952 100644 --- a/example/App.tsx +++ b/example/App.tsx @@ -46,9 +46,9 @@ import { import FileUploadScreen from './screens/FileUpload'; import FileUploadScreenWrapper from './screens/FileUpload/FileUploadWrapper'; import {useQuery} from '@realm/react'; -import {Credentials} from './sample/credentials'; -import {LoginSchemaRO} from './sample/loginSchemaRO'; -import FetchKeyInputScreen from './sample'; +import {Credentials} from './login/credentials'; +import {LoginSchemaRO} from './login/loginSchemaRO'; +import FetchKeyInputScreen from './login'; import {ConversationState} from '@likeminds.community/chat-rn'; const Stack = createNativeStackNavigator(); diff --git a/example/index.js b/example/index.js index f267a2f..4b78a2f 100644 --- a/example/index.js +++ b/example/index.js @@ -5,7 +5,7 @@ import {AppRegistry} from 'react-native'; import App from './App'; import {name as appName} from './app.json'; import {RealmProvider} from '@realm/react'; -import {LoginSchemaRO} from './sample/loginSchemaRO'; +import {LoginSchemaRO} from './login/loginSchemaRO'; const WrappedApp = () => ( diff --git a/example/sample/credentials.ts b/example/login/credentials.ts similarity index 100% rename from example/sample/credentials.ts rename to example/login/credentials.ts diff --git a/example/sample/index.tsx b/example/login/index.tsx similarity index 100% rename from example/sample/index.tsx rename to example/login/index.tsx diff --git a/example/sample/loginSchemaRO.ts b/example/login/loginSchemaRO.ts similarity index 100% rename from example/sample/loginSchemaRO.ts rename to example/login/loginSchemaRO.ts From e1867f344207a750310c0f31232479262ec41640 Mon Sep 17 00:00:00 2001 From: likeminds Date: Mon, 29 Apr 2024 17:47:51 +0530 Subject: [PATCH 6/8] changed data layer version --- example/package.json | 2 +- likeminds-chat-reactnative-integration/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example/package.json b/example/package.json index 41499f9..0d19622 100644 --- a/example/package.json +++ b/example/package.json @@ -11,7 +11,7 @@ }, "dependencies": { "@giphy/react-native-sdk": "2.1.3", - "@likeminds.community/chat-rn": "1.5.6", + "@likeminds.community/chat-rn": "1.5.7", "@likeminds.community/chat-rn-core": "1.0.2", "@notifee/react-native": "7.6.1", "@react-native-clipboard/clipboard": "1.11.2", diff --git a/likeminds-chat-reactnative-integration/package.json b/likeminds-chat-reactnative-integration/package.json index 837950c..aa936e0 100644 --- a/likeminds-chat-reactnative-integration/package.json +++ b/likeminds-chat-reactnative-integration/package.json @@ -20,7 +20,7 @@ "homepage": "https://likeminds.community/", "license": "ISC", "dependencies": { - "@likeminds.community/chat-rn": "1.5.6", + "@likeminds.community/chat-rn": "1.5.7", "@react-native/babel-preset": "0.74.0", "diff": "5.1.0", "realm": "11.10.2" From 6e8f4c85b219b641ec9514faa5ac7973ff8ff553 Mon Sep 17 00:00:00 2001 From: likeminds Date: Mon, 29 Apr 2024 18:09:10 +0530 Subject: [PATCH 7/8] removed unused code --- example/App.tsx | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/example/App.tsx b/example/App.tsx index 199f952..4cde494 100644 --- a/example/App.tsx +++ b/example/App.tsx @@ -136,21 +136,7 @@ function App(): React.JSX.Element { } }, [isTrue, apiKey]); - // const themeStyles = { - // fontTypes: { - // LIGHT: 'SofiaPro-Light', - // MEDIUM: 'SofiaPro-Medium', - // SEMI_BOLD: 'SofiaPro-SemiBold', - // BOLD: 'SofiaPro-Bold', - // BLACK: 'SofiaPro-Black', - // }, - // }; - const themeStyles = { - // fontColor: 'black', - // primaryColor: '#B7D340', - // secondaryColor: '#B7D340', - // lightBackgroundColor: 'hsl(161, 67%, 91%)', fontTypes: { LIGHT: 'SofiaPro-Light', MEDIUM: 'SofiaPro-Medium', @@ -199,10 +185,6 @@ function App(): React.JSX.Element { options={{ gestureEnabled: Platform.OS === 'ios' ? false : true, }} - // initialParams={{ - // chatroomID: chatroomId, - // isInvited: false, - // }} /> Date: Mon, 29 Apr 2024 18:15:14 +0530 Subject: [PATCH 8/8] changed version --- example/package.json | 2 +- likeminds-chat-reactnative-integration/ChatSX/setup.ts | 2 +- likeminds-chat-reactnative-integration/package.json | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/example/package.json b/example/package.json index 0d19622..6926c1d 100644 --- a/example/package.json +++ b/example/package.json @@ -12,7 +12,7 @@ "dependencies": { "@giphy/react-native-sdk": "2.1.3", "@likeminds.community/chat-rn": "1.5.7", - "@likeminds.community/chat-rn-core": "1.0.2", + "@likeminds.community/chat-rn-core": "1.0.3", "@notifee/react-native": "7.6.1", "@react-native-clipboard/clipboard": "1.11.2", "@react-native-community/datetimepicker": "7.4.1", diff --git a/likeminds-chat-reactnative-integration/ChatSX/setup.ts b/likeminds-chat-reactnative-integration/ChatSX/setup.ts index 5ef60af..a3dc784 100644 --- a/likeminds-chat-reactnative-integration/ChatSX/setup.ts +++ b/likeminds-chat-reactnative-integration/ChatSX/setup.ts @@ -14,7 +14,7 @@ export const initMyClient = ( ) => { const myClient = LMChatClient.setApiKey(apiKey) .setfilterStateConversation(filterStateMessage) - .setVersionCode(31) + .setVersionCode(32) .build(); Client.setMyClient(myClient); diff --git a/likeminds-chat-reactnative-integration/package.json b/likeminds-chat-reactnative-integration/package.json index aa936e0..932fc97 100644 --- a/likeminds-chat-reactnative-integration/package.json +++ b/likeminds-chat-reactnative-integration/package.json @@ -1,8 +1,8 @@ { "name": "@likeminds.community/chat-rn-core", - "version": "1.0.2", - "versionCode": "14", - "versionName": "1.0.2", + "version": "1.0.3", + "versionCode": "15", + "versionName": "1.0.3", "description": "LikeMinds ReactNative Core SDK for chat", "scripts": { "android": "react-native run-android",