Navigation Menu

Skip to content

Commit

Permalink
provide fat .java file by default; update README
Browse files Browse the repository at this point in the history
  • Loading branch information
petekanev committed May 9, 2016
1 parent 402a865 commit c1f0335
Show file tree
Hide file tree
Showing 3 changed files with 20,024 additions and 2 deletions.
21 changes: 20 additions & 1 deletion README.md
@@ -1,8 +1,27 @@
# How to build and test

* Run command in your terminal
* 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
1 change: 0 additions & 1 deletion app/64kPlusMethodGenerator.js
Expand Up @@ -26,4 +26,3 @@
return result;
})();

// execute with forever start -o RedundantClassNameWithTooManyMethods.java 64kPlusMethodGenerator.js

0 comments on commit c1f0335

Please sign in to comment.