Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(android): --skip-build module parameter to run example/app.js project #14161

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

m1ga
Copy link
Contributor

@m1ga m1ga commented Dec 22, 2024

Issue

When building a module you sometimes just make changes in the example/app.js and want to run the app using ti 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 temporary example/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 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant