join us on Discord for support, updates, and all things Snap AR! See you there!
SCSDKCameraKit SDK size is huge
Hi everyone,
Inspecting the final binary of our app I've just discover that CameraKit SDK is massive, it takes more than 30MB (in a uncompressed .ipa file), the biggest library by far in our project.
Is there a way where we can import a lighter version of the SDK? this is already very important for us as we're already over 200 MB and we want to avoid the 200 MB app store cap message when users download our app using cellular data.
Comments
-
Hi @Rafa, we're always working to optimize the size and impact of the SDK on your apps. The download size is ~12MB on iOS and ~14MB on Android. On device size can vary however--especially depending on what Lenses are cached at the time--but 30MB is not unexpected in my experience.
On Android, you can use Play Feature Deliver to reduce the size down to ~400kB until it is needed at runtime. As you probably know there is no analog on iOS.
We don't have a light(er) version of the mobile SDK right now. The closest we have is Camera Kit for web if that suits your use-case. If you like, you can learn more here.
I will pass on your concern to the team; thank you for the feedback.
0 -
Hi @arashp, android is not an issue atm, we're already using the Play Feature Deliver and it does wonders to keep size on check.
The real issue comes from the iOS side, where we're not able to use something similar.
I'm wondering why our numbers are so different. Checking latest SDK (1.28.0) from here, SCCameraKit for arm64 architecture is 29,6MB and that remains pretty much unchanged when we generate our final version (see screenshot from initial post)
0