Import app group from app.json

This commit is contained in:
Diego Mello 2020-03-11 16:15:41 -03:00
parent 26209a197e
commit 1a4161ea9c
2 changed files with 4 additions and 2 deletions

View File

@ -2,5 +2,6 @@
"name": "RocketChatRN", "name": "RocketChatRN",
"share": "ShareRocketChatRN", "share": "ShareRocketChatRN",
"displayName": "RocketChatRN", "displayName": "RocketChatRN",
"server": "https://open.rocket.chat" "server": "https://open.rocket.chat",
"appGroup": "group.ios.chat.rocket"
} }

View File

@ -24,8 +24,9 @@ import appSchema from './schema/app';
import migrations from './model/migrations'; import migrations from './model/migrations';
import { isIOS } from '../../utils/deviceInfo'; import { isIOS } from '../../utils/deviceInfo';
import appConfig from '../../../app.json';
const appGroupPath = isIOS ? `${ RNFetchBlob.fs.syncPathAppGroup('group.ios.chat.rocket') }/` : ''; const appGroupPath = isIOS ? `${ RNFetchBlob.fs.syncPathAppGroup(appConfig.appGroup) }/` : '';
if (__DEV__ && isIOS) { if (__DEV__ && isIOS) {
console.log(appGroupPath); console.log(appGroupPath);