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

Bundle natives in AAR #2

Closed
barsoosayque opened this issue Apr 1, 2020 · 6 comments
Closed

Bundle natives in AAR #2

barsoosayque opened this issue Apr 1, 2020 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@barsoosayque
Copy link
Owner

As it was before 0.2.2 version, it should be possible for users to define only one dependency on libgdx-oboe (without using the natives configuration). This should work out of the box, and it also worked before.

@la-matthew-yang
Copy link

How does this work? Does the aar file include all the native libraries? As of 0.2.3, only the .so files of the correct abi filters are packaged into apk. Will that stay the same?

@barsoosayque
Copy link
Owner Author

Does the aar file include all the native libraries?

Yep.

As of 0.2.3, only the .so files of the correct abi filters are packaged into apk. Will that stay the same?

I believe so. AAR is basically an archive, so it should not affect build artifacts (such as apk).

@barsoosayque
Copy link
Owner Author

Should be fixed starting from v0.2.4.

@la-matthew-yang
Copy link

I have tried it and everything is working as intended. Can this same process be applied to libgdx native libraries as well? I don't see why it can't. If this works, it can remove the need for libgdx native dependencies and the task copyAndroidNatives.

@barsoosayque
Copy link
Owner Author

Phew, I was worried it won't find libraries.
It can be done with libgdx natives as well, although, if I remember this correctly, they are keeping multiple jars for some compatibility reasons. It's fairly easy to migrate to aar.

@la-matthew-yang
Copy link

I see. That is good to know.

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

No branches or pull requests

2 participants