Skip to content

Commit

Permalink
Merge pull request #82 from cometchat-pro/ai-features
Browse files Browse the repository at this point in the history
Ai features
  • Loading branch information
raj-dubey1 authored Oct 17, 2023
2 parents 43dad19 + 0e1409b commit ede107b
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 26 deletions.
3 changes: 3 additions & 0 deletions CometChatWorkspace/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import StackNavigator from './src/StackNavigator';
import { UserContextProvider } from './UserContext';
import { CometChatIncomingCall } from '@cometchat/chat-uikit-react-native';
import { CometChatUIEventHandler } from '@cometchat/chat-uikit-react-native';
import { metaInfo } from './src/metaInfo';

var listnerID = "UNIQUE_LISTENER_ID";

const App = () => {
Expand All @@ -35,6 +37,7 @@ const App = () => {
region: COMETCHAT_CONSTANTS.REGION,
})
.then(() => {
try{CometChat.setDemoMetaInfo(metaInfo)}catch(err){}
if (CometChat.setSource) {
CometChat.setSource('ui-kit', Platform.OS, 'react-native');
}
Expand Down
2 changes: 2 additions & 0 deletions CometChatWorkspace/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import StackNavigator from './src/StackNavigator';
import { UserContextProvider } from './UserContext';
import { CometChatIncomingCall } from '@cometchat/chat-uikit-react-native';
import { CometChatUIEventHandler } from '@cometchat/chat-uikit-react-native';
import { metaInfo } from './src/metaInfo';
var listnerID = "UNIQUE_LISTENER_ID";

const App = () => {
Expand All @@ -36,6 +37,7 @@ const App = () => {
region: COMETCHAT_CONSTANTS.REGION,
})
.then(() => {
try{CometChat.setDemoMetaInfo(metaInfo)}catch(err){}
if (CometChat.setSource) {
CometChat.setSource('ui-kit', Platform.OS, 'react-native');
}
Expand Down
3 changes: 3 additions & 0 deletions CometChatWorkspace/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Copyright (c) 2023 CometChat Inc.

License agreement: https://www.cometchat.com/legal-terms-of-service
11 changes: 6 additions & 5 deletions CometChatWorkspace/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "demosampleapp",
"version": "0.0.1",
"name": "cometchat-chat-sample-app-react-native",
"version": "4.0.1",
"license": "SEE LICENSE IN LICENSE.md",
"private": true,
"scripts": {
"android": "react-native run-android",
Expand All @@ -10,9 +11,9 @@
"test": "jest"
},
"dependencies": {
"@cometchat/calls-sdk-react-native": "^4.0.0",
"@cometchat/chat-sdk-react-native": "^4.0.1",
"@cometchat/chat-uikit-react-native": "^4.0.0",
"@cometchat/calls-sdk-react-native": "^4.0.2",
"@cometchat/chat-sdk-react-native": "^4.0.2",
"@cometchat/chat-uikit-react-native": "^4.0.1",
"@react-native-async-storage/async-storage": "1.17.10",
"@react-native-community/cli-platform-android": "^8.0.5",
"@react-native-community/clipboard": "1.5.1",
Expand Down
6 changes: 6 additions & 0 deletions CometChatWorkspace/src/metaInfo.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export const metaInfo = {
name:"cometchat-chat-sample-app-react-native",
version:"4.0.1",
type:"sample",
platform:"React Native"
}
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

0 comments on commit ede107b

Please sign in to comment.