-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: PR is related to #19 **Problem** SoLoader cannot load `.so`libraries when an application is installed through [App Bundle](https://developer.android.com/platform/technology/app-bundle/) with config: ``` bundle { abi { enableSplit = true } } ``` The reason is that app bundle installation consists of multiple apks. For instance: - `base.apk` - `split_config.arm64_v8a.apk` - `split_config.xxxhdpi.apk` `SoLoader` class creates `ApkSoSource` pointing only to `base.apk`. But `*.so` files exist only in `split_config.arm64_v8a.apk` **Solution** Create separate `ApkSoSource` for each apk in the application folder. I couldn't figure out how to filter out apk without lib folder. **Testing** I haven't tried this with dynamic feature modules yet. So I can't say that it fully fixes #19. But at least it fixes facebook/fresco#2253 Any help with dynamic modules testing would be much appreciated. **P.S.** Due to some reasons, I can't wait for the new release of SoLoader lib, so I have published a temporary patched version to bintray in [my account](https://bintray.com/nnesterov/maven/patched-soloader) with different grouipId `com.avito.android:patched-soloader:0.1.0` If you are against publishing your lib in a different account, please let me know. I'll remove my version immediately. Pull Request resolved: #26 Reviewed By: oprisnik Differential Revision: D13669370 Pulled By: passy fbshipit-source-id: dd605bf54662a38cb1fd04461e1e962f76da7d51
- Loading branch information
1 parent
ea661f5
commit c7980fc
Showing
2 changed files
with
50 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters