Skip to content

Commit ede107b

Browse files
authored
Merge pull request #82 from cometchat-pro/ai-features
Ai features
2 parents 43dad19 + 0e1409b commit ede107b

File tree

6 files changed

+20
-26
lines changed

6 files changed

+20
-26
lines changed

CometChatWorkspace/App.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import StackNavigator from './src/StackNavigator';
99
import { UserContextProvider } from './UserContext';
1010
import { CometChatIncomingCall } from '@cometchat/chat-uikit-react-native';
1111
import { CometChatUIEventHandler } from '@cometchat/chat-uikit-react-native';
12+
import { metaInfo } from './src/metaInfo';
13+
1214
var listnerID = "UNIQUE_LISTENER_ID";
1315

1416
const App = () => {
@@ -35,6 +37,7 @@ const App = () => {
3537
region: COMETCHAT_CONSTANTS.REGION,
3638
})
3739
.then(() => {
40+
try{CometChat.setDemoMetaInfo(metaInfo)}catch(err){}
3841
if (CometChat.setSource) {
3942
CometChat.setSource('ui-kit', Platform.OS, 'react-native');
4043
}

CometChatWorkspace/App.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import StackNavigator from './src/StackNavigator';
1010
import { UserContextProvider } from './UserContext';
1111
import { CometChatIncomingCall } from '@cometchat/chat-uikit-react-native';
1212
import { CometChatUIEventHandler } from '@cometchat/chat-uikit-react-native';
13+
import { metaInfo } from './src/metaInfo';
1314
var listnerID = "UNIQUE_LISTENER_ID";
1415

1516
const App = () => {
@@ -36,6 +37,7 @@ const App = () => {
3637
region: COMETCHAT_CONSTANTS.REGION,
3738
})
3839
.then(() => {
40+
try{CometChat.setDemoMetaInfo(metaInfo)}catch(err){}
3941
if (CometChat.setSource) {
4042
CometChat.setSource('ui-kit', Platform.OS, 'react-native');
4143
}

CometChatWorkspace/LICENSE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Copyright (c) 2023 CometChat Inc.
2+
3+
License agreement: https://www.cometchat.com/legal-terms-of-service

CometChatWorkspace/package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
2-
"name": "demosampleapp",
3-
"version": "0.0.1",
2+
"name": "cometchat-chat-sample-app-react-native",
3+
"version": "4.0.1",
4+
"license": "SEE LICENSE IN LICENSE.md",
45
"private": true,
56
"scripts": {
67
"android": "react-native run-android",
@@ -10,9 +11,9 @@
1011
"test": "jest"
1112
},
1213
"dependencies": {
13-
"@cometchat/calls-sdk-react-native": "^4.0.0",
14-
"@cometchat/chat-sdk-react-native": "^4.0.1",
15-
"@cometchat/chat-uikit-react-native": "^4.0.0",
14+
"@cometchat/calls-sdk-react-native": "^4.0.2",
15+
"@cometchat/chat-sdk-react-native": "^4.0.2",
16+
"@cometchat/chat-uikit-react-native": "^4.0.1",
1617
"@react-native-async-storage/async-storage": "1.17.10",
1718
"@react-native-community/cli-platform-android": "^8.0.5",
1819
"@react-native-community/clipboard": "1.5.1",

CometChatWorkspace/src/metaInfo.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export const metaInfo = {
2+
name:"cometchat-chat-sample-app-react-native",
3+
version:"4.0.1",
4+
type:"sample",
5+
platform:"React Native"
6+
}

LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)