mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
feat: add enableMultithreadedJavascript flag to config definition
This commit is contained in:
@@ -1,83 +1,83 @@
|
||||
interface IConfigPlaform {
|
||||
/**
|
||||
* App's bundle id
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
* Discard any uncaught JS exceptions
|
||||
* This can be very useful in production environments when you don't want your app to just crash if a developer forgot to guard against an unexpected JS level exception.
|
||||
*/
|
||||
discardUncaughtJsExceptions?: boolean;
|
||||
/**
|
||||
* App's bundle id
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
* Discard any uncaught JS exceptions
|
||||
* This can be very useful in production environments when you don't want your app to just crash if a developer forgot to guard against an unexpected JS level exception.
|
||||
*/
|
||||
discardUncaughtJsExceptions?: boolean;
|
||||
}
|
||||
|
||||
interface IConfigIOS extends IConfigPlaform {
|
||||
|
||||
}
|
||||
interface IConfigIOS extends IConfigPlaform {}
|
||||
|
||||
interface IConfigAndroid extends IConfigPlaform {
|
||||
v8Flags?: string;
|
||||
v8Flags?: string;
|
||||
|
||||
codeCache?: boolean;
|
||||
codeCache?: boolean;
|
||||
|
||||
heapSnapshotScript?: string;
|
||||
heapSnapshotScript?: string;
|
||||
|
||||
"snapshot.blob"?: string;
|
||||
'snapshot.blob'?: string;
|
||||
|
||||
profilerOutputDir?: string;
|
||||
profilerOutputDir?: string;
|
||||
|
||||
gcThrottleTime?: number;
|
||||
gcThrottleTime?: number;
|
||||
|
||||
profiling?: string;
|
||||
profiling?: string;
|
||||
|
||||
markingMode?: string;
|
||||
markingMode?: string;
|
||||
|
||||
handleTimeZoneChanges?: boolean;
|
||||
handleTimeZoneChanges?: boolean;
|
||||
|
||||
maxLogcatObjectSize?: number;
|
||||
maxLogcatObjectSize?: number;
|
||||
|
||||
forceLog?: boolean;
|
||||
forceLog?: boolean;
|
||||
|
||||
memoryCheckInterval?: number;
|
||||
memoryCheckInterval?: number;
|
||||
|
||||
freeMemoryRatio?: number;
|
||||
freeMemoryRatio?: number;
|
||||
|
||||
suppressCallJSMethodExceptions?: boolean;
|
||||
suppressCallJSMethodExceptions?: boolean;
|
||||
|
||||
enableLineBreakpoints?: boolean;
|
||||
enableLineBreakpoints?: boolean;
|
||||
|
||||
enableMultithreadedJavascript?: boolean;
|
||||
}
|
||||
|
||||
export interface NativeScriptConfig {
|
||||
/**
|
||||
* App's bundle id
|
||||
* Used for both iOS and Android if they use the same bundle id. You can override per platform in the respective platform specific configurations.
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
* App's main entry file
|
||||
*/
|
||||
main?: string;
|
||||
appPath?: string;
|
||||
/**
|
||||
* App_Resources path
|
||||
* This is often at the root or inside `src` or `app` directory however can be anywhere.
|
||||
*/
|
||||
/**
|
||||
* App's bundle id
|
||||
* Used for both iOS and Android if they use the same bundle id. You can override per platform in the respective platform specific configurations.
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
* App's main entry file
|
||||
*/
|
||||
main?: string;
|
||||
appPath?: string;
|
||||
/**
|
||||
* App_Resources path
|
||||
* This is often at the root or inside `src` or `app` directory however can be anywhere.
|
||||
*/
|
||||
appResourcesPath?: string;
|
||||
shared?: boolean;
|
||||
previewAppSchema?: string;
|
||||
overridePods?: string;
|
||||
/**
|
||||
* Custom webpack config path
|
||||
* The default is `webpack.config.js` in the root however you can use a custom name and place elsewhere.
|
||||
*/
|
||||
webpackConfigPath?: string;
|
||||
/**
|
||||
* iOS specific configurations
|
||||
* Various iOS specific configurations including iOS runtime flags.
|
||||
*/
|
||||
ios?: IConfigIOS;
|
||||
/**
|
||||
* Android specific configurations
|
||||
* Various Android specific configurations including Android runtime flags.
|
||||
*/
|
||||
android?: IConfigAndroid;
|
||||
}
|
||||
overridePods?: string;
|
||||
/**
|
||||
* Custom webpack config path
|
||||
* The default is `webpack.config.js` in the root however you can use a custom name and place elsewhere.
|
||||
*/
|
||||
webpackConfigPath?: string;
|
||||
/**
|
||||
* iOS specific configurations
|
||||
* Various iOS specific configurations including iOS runtime flags.
|
||||
*/
|
||||
ios?: IConfigIOS;
|
||||
/**
|
||||
* Android specific configurations
|
||||
* Various Android specific configurations including Android runtime flags.
|
||||
*/
|
||||
android?: IConfigAndroid;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user