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

Android AAR project #1440

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

CedricGuillemet
Copy link
Contributor

@CedricGuillemet CedricGuillemet commented Oct 9, 2024

Instead of having the Android Playground app, split in an shared BabylonNative AAR library and a smaller app.
This change consists in adding a new Module project to the playground. Moving code into that new module: JNI layer, Java view and Wrapper, cmake to make the jni.so. Java namespace renamed to make it easier to integrate. And finally, add a dependency to the .aa in the app.

Min Android SDK version bumped to v25.
Running Android Playground App is the same: open with Android Studio then run app on device.

Produced .aar can be shared (like a npm, nuget, or local file ...) and integration will be way simpler: no need to clone BN, modify app gradle with cmake, add .cpp, etc...
Integration/doc will be part of another PR.

fixes #1435

cc @okwasniewski

@CedricGuillemet CedricGuillemet marked this pull request as ready for review October 10, 2024 08:34
@CedricGuillemet CedricGuillemet changed the title AAR building Android AAR project Oct 10, 2024
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.

Reduce friction on Integration
2 participants