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
Search library also in split APKs. #46
Conversation
Note that |
Will this be merged soon? |
any update? |
The travis build failed because of ">" character inside comment. The comment was there already. |
@michalsrb thanks for the PR. Sorry I just saw this. We will look at this by the end of this week or beginning of next one the latest. Looking at it briefly:
How does it look in production for you? |
@emarc-m Did you have a chance to look at this? |
The
Here is documentation that describes a bit how Google Play splits the APKs: I don't know if there is something better.
It works well. I am getting small amount of failures, but I have been getting those before as well. I suspect those may be people who install APKs from 3rd party sources with wrong ABI. |
Does anyone know how long it might take until this PR will be merged? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the work! Minor comments.
@michalsrb do you think it's possible to include a unit test for #sourceDirectories(...)
wherein the first if branch will be executed?
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP && | ||
appInfo.splitSourceDirs != null && | ||
appInfo.splitSourceDirs.length != 0) | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please move {
to the previous line such that appInfo.splitSourceDirs.length != 0) {
@@ -70,25 +87,46 @@ public void installLibrary(final Context context, | |||
for (final String abi : abis) { | |||
jniNameInApk = "lib" + File.separatorChar + abi + File.separatorChar | |||
+ mappedLibraryName; | |||
|
|||
if (jniNameInApk != null) instance.log("Looking for %s in APK %s...", jniNameInApk, sourceDir); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jniNameInApk
will not be null
@michalsrb your PR is so waited by lots of developers |
The library may be placed in a split APK. This happens for example when using the dynamic delivery.
I made the small changes. I don't know how to mock the |
I merged this PR and I'm cutting a new version. I suggest for the unit testing portion that we create something like an SDK manager class that has a meshing like Unit tests should be in a separate PR to this. |
Awesome, thanks! So is there any nightly builds of Relinker or when should we expect a new release? |
Made a new release: 1.3.0 with split APK support. |
The library may be placed in a split APK. This happens for example when using
the dynamic delivery.
Fixes #44.