OnDeviceRecognition - can CraftARSDKConfig be downloaded separately?
Simon Feb 03, 2018
We are integrating on-device recognition as a feature within an existing app. The existing app is already quite large, at around 80MB, and the image recognition feature is part of an "optional extra" component rather than the main purpose of the app. Therefore we want to minimise the impact of adding this feature on the initial apk download size. If I remember correctly, apks on Play store can't go above 100MB.
When zipped, the native and Java libraries for on-device recognition on Android add about 3.5 MB per platform (we can use apk splits so we don't need to bundle all the architectures in one apk). The collection bundle can already be downloaded separately and loaded from a file anywhere on the device.
The biggest contributor to app file size however is the CraftARSDKConfig file, which is 10.2MB (7.2 MB when zipped). I can't see any APIs to specify a path for this file, and all the integration guides talk about placing this in the assets folder. Is there any way of having this file downloaded on demand to reduce the impact on initial app download size?
Thanks for any advice,