SCSDKCameraKit SDK size is huge

Options
Rafa
Rafa Posts: 5
edited February 29 in General #1

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

  • arashp
    arashp Posts: 52 🔥🔥
    Options

    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.

  • Rafa
    Rafa Posts: 5
    Options

    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)

  • arashp
    arashp Posts: 52 🔥🔥
    edited March 5 #4
    Options

    Hi @Rafa, thank you for the follow-up! The compressed size of the iOS SDK is ~12MB. This is what users would download from the App Store.

    The size of the SDK inside the Xcode filesystem will be bigger--roughly 29MB. But that's not the same as download size.

  • Rafa
    Rafa Posts: 5
    Options

    Hi @arashp,

    You're right here, 29 MB is the uncompressed size, not the same as the download size.

    I'm still wondering if it's planned to reduce the download size below 12 MB