mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-07 05:52:57 +00:00
38 lines
864 B
TypeScript
38 lines
864 B
TypeScript
import {CapacitorConfig} from '@capacitor/cli';
|
|
|
|
const variant = process.env.APP_VARIANT ?? 'default';
|
|
// eslint-disable-next-line unicorn/prefer-module, @typescript-eslint/no-var-requires
|
|
const uniConfig = require(`./config/${variant}/default.json`);
|
|
|
|
const config: CapacitorConfig = {
|
|
appId: uniConfig.android.packageName, // TODO: iOS bundle ID
|
|
appName: uniConfig.appName,
|
|
webDir: 'www',
|
|
android: {
|
|
flavor: variant,
|
|
},
|
|
// TODO: iOS scheme
|
|
cordova: {
|
|
preferences: {
|
|
'AndroidXEnabled': 'true',
|
|
'android-minSdkVersion': '22',
|
|
'BackupWebStorage': 'none',
|
|
},
|
|
},
|
|
plugins: {
|
|
SplashScreen: {
|
|
launchAutoHide: false,
|
|
backgroundColor: '#3880ff',
|
|
showSpinner: false,
|
|
},
|
|
LocalNotifications: {
|
|
// TODO
|
|
},
|
|
CapacitorHttp: {
|
|
enabled: false,
|
|
},
|
|
},
|
|
};
|
|
|
|
export default config;
|