-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.config.js
55 lines (53 loc) · 1.59 KB
/
app.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
let IS_DEV = {
name: "SalesPOS",
bundleIdentifier: "com.prerit.salespos",
package: "com.mypackage.salespos",
icon: "./assets/icon.png",
};
if (process.env.APP_ENV === "production") {
IS_DEV.name = "Flickwheel";
IS_DEV.bundleIdentifier = "com.prerit.salespos";
IS_DEV.package = "com.mypackage.salespos";
IS_DEV.icon = "./assets/icon.png";
//IS_DEV.googleServicesFile = "./google-services.json";
//IS_DEV.oneSignal = "production";
} else if (process.env.APP_ENV === "preview") {
IS_DEV.name = "Flickwheel Beta";
IS_DEV.bundleIdentifier = "com.salespos.preview";
IS_DEV.package = "com.mypackage.prevsalespos";
IS_DEV.icon = "./assets/icon_preview.png";
//IS_DEV.googleServicesFile = "./google-services-preview.json";
//IS_DEV.oneSignal = "production";
} else {
IS_DEV.name = "Flickwheel Dev";
IS_DEV.bundleIdentifier = "com.salespos.development";
IS_DEV.package = "com.mypackage.devsalespos";
IS_DEV.icon = "./assets/icon_dev.png";
//IS_DEV.googleServicesFile = "./google-services-dev.json";
//IS_DEV.oneSignal = "development";
}
export default ({ config }) => {
//console.log({ config });
return {
...config,
version: "1.0.0",
name: IS_DEV.name,
icon: IS_DEV.icon,
android: {
...config.android,
package: IS_DEV.package,
versionCode: 1,
googleServicesFile: IS_DEV.googleServicesFile,
adaptiveIcon: {
foregroundImage: IS_DEV.icon,
},
},
ios: {
...config.ios,
icon: IS_DEV.icon,
bundleIdentifier: IS_DEV.bundleIdentifier,
buildNumber: "1",
},
plugins: [...config.plugins],
};
};