Skip to content

Commit 88f5f0a

Browse files
README: remove outdated FAQ, link to docs.objectbox.io instead.
1 parent fee261b commit 88f5f0a

File tree

1 file changed

+1
-28
lines changed

1 file changed

+1
-28
lines changed

objectbox/README.md

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -148,34 +148,7 @@ to guide you and answer questions.
148148

149149
## FAQ
150150

151-
_**Q: After adding ObjectBox, the size of the APK increased significantly. Why is that?**_
152-
**A: This is caused by ObjectBox following
153-
the [official Android recommendations](https://developer.android.com/topic/performance/reduce-apk-size#extract-false)
154-
for library compression settings**. By default, Flutter apps created from the template have the compression enabled,
155-
opposite to the recommendation. The setting to disable library compression affects all native libraries in your app, not
156-
just ObjectBox - with Flutter native libraries now taking up the large portion of the increased APK size. ObjectBox
157-
library adds about 5.8 MiB uncompressed, and Flutter framework libs increase the uncompressed size by 18.4 MiB.
158-
_Q: Should I be worried about the size increase of uncompressed libraries?_
159-
A: No, not really. Packaging uncompressed `.so` files is actually better for users. It uses less storage on device as it
160-
avoids copying .so files from the APK to the filesystem during installation and has the added benefit of making updates
161-
of your app smaller. For more information about the sizes, see the following table created with
162-
ObjectBox v0.14.0 and Flutter v2.0.5 release builds (using the [recommended](https://flutter.dev/docs/deployment/android#build-an-apk)
163-
`flutter build apk --split-per-abi` to build APKs for each ABI):
164-
165-
| Release | without ObjectBox | with ObjectBox | difference |
166-
| ----------------------------------------- | ----------------: | ------------------------: | ------------: |
167-
| APK (default compressed, arm64-v8a) | 5.5 MiB | 6.0 MiB<sup>1</sup> | +0.5 MiB |
168-
| APK (uncompressed, arm64-v8a)<sup>2</sup> | 12.0 MiB | 13.5 MiB | **+1.5 MiB** |
169-
| Fat APK (uncompressed, all ABIs) | 33.8 MiB | 39.6 MiB | +5.8 MiB |
170-
171-
<sup>1</sup> Requires turning compression back on: in the `<application>` tag in `android/app/src/main/AndroidManifest.xml` add
172-
```
173-
android:extractNativeLibs="true"
174-
tools:replace="android:extractNativeLibs"
175-
```
176-
to override the ObjectBox settings.
177-
178-
<sup>2</sup> This is also about the size an APK generated by Google Play would be when uploading an App Bundle (`flutter build appbundle`).
151+
See the [FAQ](https://docs.objectbox.io/faq) and [Troubleshooting](https://docs.objectbox.io/troubleshooting) pages.
179152

180153
## See also
181154

0 commit comments

Comments
 (0)