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

Inflated apk size by librealmreact.so in React Native apps #1496

Closed
jayshah123 opened this issue Nov 16, 2017 · 4 comments
Closed

Inflated apk size by librealmreact.so in React Native apps #1496

jayshah123 opened this issue Nov 16, 2017 · 4 comments

Comments

@jayshah123
Copy link

Goals

Reduce APK Size

Expected Results

Lesser APK Size

Actual Results

Large APK Size

Steps to Reproduce

Use RealmJS in a react-native app. Use APK Analyzer in Android > Build > Analyze APK.

Code Sample

See 3.1 MB for x86 and 2.5 MB for Armeabi-v7a

screen shot 2017-11-16 at 7 48 35 pm

Version of Realm and Tooling

  • Realm JS SDK Version: ^1.11.1
  • Node or React Native: ^0.48.4
  • Client OS & Version: Android
  • Which debugger for React Native: None
@jayshah123 jayshah123 changed the title Inflated apk size by librealmreact.so Inflated apk size by librealmreact.so in React Native apps Nov 16, 2017
@kneth
Copy link
Contributor

kneth commented Nov 17, 2017

It is going to be hard to reduce the size of our .so as we are already agressive with the compiler options. Maybe ABI split can help you: https://realm.io/docs/java/latest/#faq-library-size

@jayshah123
Copy link
Author

Well I am looking about abi split, and react-native has sensible defaults regarding it, What I was wondering was wanting to only opt into realm object server and strip out unnecessary size for unwanted features if possible?

@kneth
Copy link
Contributor

kneth commented Nov 17, 2017

I am afraid that it is not possible to cherry-pick components. We hope to upgrade Android NDK soon, and maybe clang will be able to reduce the size a bit.

@jayshah123
Copy link
Author

Ok I'll try again with newer/upcoming versions and open again if necessary.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants