-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
nativescript.config.js
42 lines (41 loc) · 1.27 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
const timelineEnabled = !!process.env['NS_TIMELINE'];
const sentryEnabled = !!process.env['NS_SENTRY'];
const loggingEnabled = !!process.env['NS_LOGGING'];
module.exports = {
ignoredNativeDependencies: [].concat(sentryEnabled ? [] : ['@nativescript-community/sentry']),
id: process.env['APP_ID'],
appResourcesPath: 'App_Resources',
buildPath: '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'
}
]
};