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 {
|
interface IConfigPlaform {
|
||||||
/**
|
/**
|
||||||
* App's bundle id
|
* App's bundle id
|
||||||
*/
|
*/
|
||||||
id?: string;
|
id?: string;
|
||||||
/**
|
/**
|
||||||
* Discard any uncaught JS exceptions
|
* 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.
|
* 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;
|
discardUncaughtJsExceptions?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface IConfigIOS extends IConfigPlaform {
|
interface IConfigIOS extends IConfigPlaform {}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
interface IConfigAndroid 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 {
|
export interface NativeScriptConfig {
|
||||||
/**
|
/**
|
||||||
* App's bundle id
|
* 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.
|
* 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;
|
id?: string;
|
||||||
/**
|
/**
|
||||||
* App's main entry file
|
* App's main entry file
|
||||||
*/
|
*/
|
||||||
main?: string;
|
main?: string;
|
||||||
appPath?: string;
|
appPath?: string;
|
||||||
/**
|
/**
|
||||||
* App_Resources path
|
* App_Resources path
|
||||||
* This is often at the root or inside `src` or `app` directory however can be anywhere.
|
* This is often at the root or inside `src` or `app` directory however can be anywhere.
|
||||||
*/
|
*/
|
||||||
appResourcesPath?: string;
|
appResourcesPath?: string;
|
||||||
shared?: boolean;
|
shared?: boolean;
|
||||||
previewAppSchema?: string;
|
previewAppSchema?: string;
|
||||||
overridePods?: string;
|
overridePods?: string;
|
||||||
/**
|
/**
|
||||||
* Custom webpack config path
|
* Custom webpack config path
|
||||||
* The default is `webpack.config.js` in the root however you can use a custom name and place elsewhere.
|
* The default is `webpack.config.js` in the root however you can use a custom name and place elsewhere.
|
||||||
*/
|
*/
|
||||||
webpackConfigPath?: string;
|
webpackConfigPath?: string;
|
||||||
/**
|
/**
|
||||||
* iOS specific configurations
|
* iOS specific configurations
|
||||||
* Various iOS specific configurations including iOS runtime flags.
|
* Various iOS specific configurations including iOS runtime flags.
|
||||||
*/
|
*/
|
||||||
ios?: IConfigIOS;
|
ios?: IConfigIOS;
|
||||||
/**
|
/**
|
||||||
* Android specific configurations
|
* Android specific configurations
|
||||||
* Various Android specific configurations including Android runtime flags.
|
* Various Android specific configurations including Android runtime flags.
|
||||||
*/
|
*/
|
||||||
android?: IConfigAndroid;
|
android?: IConfigAndroid;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user