https://github.com/nativescript/sample-android-multidex
https://github.com/nativescript/sample-android-multidex
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nativescript/sample-android-multidex
- Owner: NativeScript
- Created: 2016-05-05T08:30:15.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-05-09T13:03:15.000Z (about 10 years ago)
- Last Synced: 2025-10-17T00:01:49.755Z (8 months ago)
- Language: Java
- Size: 12 MB
- Stars: 1
- Watchers: 25
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# How to build and test
* Restore the platforms folder
```Shell
tns build android
```
* Get a fat library
* If you have **node.js** installed run the following commands:
```Shell
npm install forever -g
forever start -o ../platforms/android/src/main/java/com/tns/RedundantClassNameWithTooManyMethods.java app/64kPlusMethodGenerator.js
```
* If you DON'T have **node.js** you can copy the fat .java file instead
```Shell
$ cp app/App_Resources/Android/RedundantClassNameWithTooManyMethods.java platforms/android/src/main/java/com/tns/
```
* Finally run the application
```Shell
tns run android
```
* The result of the build will be in the build folder.
* Preview the resulting .apk in `build/outputs/apk/` to ensure that it contains at least 2 `classes(..N).dex` files