-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
nativescript.config.js
43 lines (43 loc) · 1.53 KB
/
nativescript.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
const timelineEnabled = !!process.env['NS_TIMELINE'];
const sentryEnabled = !!process.env['NS_SENTRY'];
const loggingEnabled = sentryEnabled || !!process.env['NS_LOGGING'];
const playstoreBuild = !!process.env['PLAY_STORE_BUILD'];
const appId = process.env['APP_ID'] || 'akylas.alpi.maps';
module.exports = {
ignoredNativeDependencies: ['@nativescript/detox'].concat(sentryEnabled ? [] : ['@nativescript-community/sentry']).concat(playstoreBuild ? ['alpimaps-non-playstore'] : []),
id: appId,
appResourcesPath: process.env['APP_RESOURCES'] || 'App_Resources',
buildPath: process.env['APP_BUILD_PATH'] || 'platforms',
webpackPackageName: '@akylas/nativescript-webpack',
webpackConfigPath: 'app.webpack.config.js',
appPath: 'app',
forceLog: loggingEnabled,
profiling: timelineEnabled ? 'timeline' : undefined,
i18n: {
defaultLanguage: 'en'
},
ios: {
runtimePackageName: '@akylas/nativescript-ios-runtime'
},
android: {
runtimePackageName: '@akylas/nativescript-android-runtime',
gradleVersion: '8.10.2',
markingMode: 'none',
codeCache: true,
enableMultithreadedJavascript: false,
handleTimeZoneChanges: true,
...(loggingEnabled
? {
forceLog: true,
maxLogcatObjectSize: 40096
}
: {})
},
cssParser: 'rework',
hooks: [
{
type: 'after-prepareNativeApp',
script: 'tools/scripts/after-prepareNativeApp.js'
}
]
};