Effects Reduce app size
Effects / Guides / Performance / Reduce app size

Reduce Nosmai Effects application size

Updated August 28, 2026

Measure the signed release, keep one native binary, and deliver optional visual content through Cloud Filters.

Prerequisites

  • A signed production AAB or App Store archive
  • The current native checksums and dependency lockfiles
  • An inventory of host-owned previews, images, videos, and models

Measure the delivered application

Do not use the AAR, framework ZIP, Flutter archive, or npm tarball as the final store-size estimate. Measure Play Console device delivery and App Store archive thinning for the signed application. Record baseline download and installed size before changing dependencies.

Keep one native SDK

  • Replace old AARs instead of accumulating versioned filenames in app/libs.
  • Use either CocoaPods or manual framework embedding on iOS, never both.
  • Inspect Flutter and React Native host projects for an extra manually linked native binary.
  • Keep only the supported Android ARM targets required by your release policy. Use arm64-v8a, armeabi-v7a, or both; App Bundles deliver only the matching ABI to each device.

Deliver effects on demand

Deliver effects through Cloud Filters and rely on SDK-managed storage after a verified download. The operating system can reclaim cache storage, so retain the cloud identifier and support redownload rather than assuming the path is permanent.

Compress and resize host-owned preview images, videos, and thumbnails according to their actual display size.

Verify the optimized build

  1. Compare signed store-delivery size with the baseline.
  2. Install on a clean physical device.
  3. Open the first camera experience without downloading optional content.
  4. Download, apply, reuse, remove, and redownload a Cloud Filter.
  5. Test offline behavior for already cached and evicted content.

Common errors

SymptomCauseFix
Size did not fall after deleting an AARAnother wrapper or build cache still packages the binaryInspect the final archive and dependency graph, then clean and rebuild
Cloud Filter works once but later path is missingThe OS reclaimed cache storageStore the identifier and download again through the SDK
iOS reports duplicate symbolsPod and manual framework are both embeddedChoose one iOS distribution path

Next steps

References

Nosmai

An AR and AI company. Founded on the idea that the next decade of software will be visual, and that the tools for it should be within reach of anyone building.

Newsletter

Product updates and release notes. No spam.

© 2026 nosmai, inc · all rights reserved