File tree 1 file changed +14
-1
lines changed
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -129,14 +129,27 @@ Also, please let us know your feedback by opening an issue:
129
129
for example, if you experience errors or if you have ideas for how to improve the API.
130
130
Thanks!
131
131
132
+ FAQ
133
+ ---
134
+ **Q:** After adding ObjectBox, the size of the APK increased significantly. Why is that?<br>
135
+ **A:** Flutter compresses its native libraries (.so files) by default in the APK.
136
+ ObjectBox instructs the Android build to use uncompressed native libraries instead
137
+ (following the [official Android recommendations](https://developer.android.com/topic/performance/reduce-apk-size#extract-false)).
138
+ This setting affects the Flutter native libraries as well. Thus the now uncompressed Flutter libraries add to the APK size as well;
139
+ we've seen an additional 19 MB for the standard Flutter libraries.
140
+ _This is bad, right?_ Nope, actually uncompressed libraries use **less** storage space on device and have other advantages.
141
+ For details, please review the [official Android recommendations](https://developer.android.com/topic/performance/reduce-apk-size#extract-false)
142
+ and the [ObjectBox FAQ entry](https://docs.objectbox.io/faq#how-much-does-objectbox-add-to-my-apk-size) on this.
143
+ Both links also explain how to force compression using `android:extractNativeLibs="true"`.
144
+
132
145
See also
133
146
---------
134
147
* [Changelog](CHANGELOG.md)
135
148
* [Contribution guidelines](CONTRIBUTING.md)
136
149
137
150
License
138
151
-------
139
- Copyright 2019 ObjectBox Ltd. All rights reserved.
152
+ Copyright 2020 ObjectBox Ltd. All rights reserved.
140
153
141
154
Licensed under the Apache License, Version 2.0 (the "License");
142
155
you may not use this file except in compliance with the License.
You can’t perform that action at this time.
0 commit comments