Import app group from app.json
This commit is contained in:
parent
26209a197e
commit
1a4161ea9c
3
app.json
3
app.json
|
@ -2,5 +2,6 @@
|
|||
"name": "RocketChatRN",
|
||||
"share": "ShareRocketChatRN",
|
||||
"displayName": "RocketChatRN",
|
||||
"server": "https://open.rocket.chat"
|
||||
"server": "https://open.rocket.chat",
|
||||
"appGroup": "group.ios.chat.rocket"
|
||||
}
|
|
@ -24,8 +24,9 @@ import appSchema from './schema/app';
|
|||
import migrations from './model/migrations';
|
||||
|
||||
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) {
|
||||
console.log(appGroupPath);
|
||||
|
|
Loading…
Reference in New Issue