-
-
Notifications
You must be signed in to change notification settings - Fork 141
Closed
Description
Environment
Provide version numbers for the following components (information can be retrieved by running tns info
in your project folder or by inspecting the package.json
of the project):
- CLI: 5.1.0
- Cross-platform modules: 5.1.0
- Android Runtime: 5.1.0
Describe the bug
The codeCache
option described in this blog post doesn't work since android runtime 4.1.0
To Reproduce
- Create a nativescript app using the CLI:
tns create test
- Enable the
codeCache
option inapp/package.json
:
"android": {
"v8Flags": "--nolazy --expose_gc",
"codeCache": "true"
}
- Run the app:
tns run android
Expected behavior
The application starts successfully and for each .js
file, there's a corresponding .js.cache
file created on the device containing the compiled script that is used on subsequent runs of the application.
Actual behavior
The application crashes with a SIGSEGV in the Android Runtime.