This repository has been archived by the owner on Aug 7, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(template): ship bundle with empty
tns-java-classes.js
chunk (#128)
This is required for compatibility reasons (NativeScript 2.5). When a non-webpacked NativeScript application is deployed to phone, the apk contains a `tns-java-classes.js` file. If that file is present, it is dynamically loaded by the Android runtime at startup. Webpacked NativeScript applications didn't contain that file as it is not needed. But when the application is deployed to phone, the previous `tns-java-classes.js` file is not removed from the app folder on the phone. That causes the Android runtime to try load the file and fail. Since this commit, all webpacked NativeScript apps will be shipped with an empty `tns-java-classes.js` file which is harmless and is used to override the existing file left from previous deployment. related to NativeScript/NativeScript#3613, NativeScript/NativeScript#3947
- Loading branch information
Showing
3 changed files
with
24 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters