feat(android): --skip-build module parameter to run example/app.js project #14161
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue
When building a module you sometimes just make changes in the
example/app.js
and want to run the app usingti build -p android
. This will always compile the module again, there is no way to skip building the module and just create the temp app project.Solution
The
--skip-build
parameter will just zip the existing code and then create the temporaryexample/app.js
project to save some time testing modules. It will check if on of the generated folders/android/build/module/build/outputs/m2repository
is available otherwise it will just run a normal build again.Test
Create and build a module with
ti build -p android --skip-build
inside the android folder. The 2nd time it will skip compiling the Java files again and just creates the zip + example app.Improvements
If you know what you are doing and use the parameter it can save you ~10sec when you test your modules every build 👍