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",
|
"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"
|
||||||
}
|
}
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue