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

Optimize Android build #41

Closed
DiligentGraphics opened this issue Apr 6, 2019 · 3 comments
Closed

Optimize Android build #41

DiligentGraphics opened this issue Apr 6, 2019 · 3 comments

Comments

@DiligentGraphics
Copy link
Collaborator

There are a number of issues with Android build now:

  • All shared projects in Common are built for every executable target (sample, tutorial, etc.). This makes the build super slow
  • .so of all executable targets are packed in every APK
  • Incremental build is super slow. In fact, trying to run an app from Android studio takes few minutes even if there were no changes because a number of projects are rebuilt no matter what
@DiligentGraphics
Copy link
Collaborator Author

Update: after switching to using NDK from Android Studio (as recommended), the excessive build and incremental build problems seem to be fixed.

@DiligentGraphics
Copy link
Collaborator Author

Using build flavors in gradle allows packaging only needed .so files into the APK, however, causes the entire native part to be built for every Android application.

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

No branches or pull requests

0 participants