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
Remove (or make optional) MIPS native library #3504
Comments
You are right that generally there isn't any MIPS mobile devices around, but it is somewhat used on other devices running Android like TV's and such, and we don't want to exclude them from the party :) We removed armeabi because Google also dropped support for it and the only devices left using it are practically ancient. Note you can always do an APK split to remove MIPS if you want to in your particular context: https://realm.io/docs/java/latest/#how-big-is-the-realm-base-library |
Hi @cmelchior, thx for response.
I understand, but maybe this is a small percent of Realm use case?
Maybe there is a way, to make MIPS support optional on library level? I don't know much about native libraries on Android, but I thought about something like:
In this case, when I skip "io.realm:realm-gradle-abi-mips", I will not get mips support. Of course, this solution can be also applied to others ABI in the future. Is it technically possible? |
@PiotrWpl Also, it is actually quite easy for you to exclude the mips lib: See https://realm.io/docs/java/latest/#couldnt-load-librealm-jniso something like:
|
@beeender Thx @cmelchior & @beeender for a help! |
also you can exclude some others if you don't care about the slight difference on the performance (eg. keep x86 but remove x86_64) I might make mistake on the directory name, you can always check the right lib name in the build folder. |
mips (and mips64) has been deprecated in NDK r16 and will be removed in r17. https://developer.android.com/ndk/guides/abis.html |
I hope so? Does anyone think this would be a breaking change? Be honest, i have never seen a real mips Android device in my whole life .... |
Removal of mips is on the breaking change wishlist for 5.0 #5372 |
Goal
Expected Results
BTW: Thanks for this amazing database!
The text was updated successfully, but these errors were encountered: