Skip to main content

SDK Binary Sizes

Understand how SDK binary sizes differ between the distributed artifacts and what gets installed in your app.

Download on theApp StoreDownload on theGoogle Play

Overview

The Veryfi Lens SDK is distributed as fat binaries that include native code for all supported architectures. This makes integration simple, but the download size of the artifact is larger than the size that actually ends up in your built app.

When you build your app, the build system (Gradle on Android, Xcode on iOS) typically includes only the architecture(s) needed for your target devices. As a result, the size added to your app is smaller than the size of the distributed .aab or .xcframework.


SDK flavors

These sizes refer to the full SDK flavor. If you use a specific SDK flavor (e.g. checks-only on iOS), the size can be reduced almost by half. Not all flavors reduce the same; on iOS the SDK size in your app with a specific flavor can be in the range of roughly 5 MB to 15 MB, depending on the flavor.

iOS: XCFramework size vs app size

On iOS, the SDK is distributed as an XCFramework. The XCFramework contains slices for all supported architectures and platforms, for example:

  • arm64 (iPhone/iPad devices)
  • x86_64 (Simulator, Intel Mac)
  • arm64 (Simulator, Apple Silicon)

So one XCFramework includes device + simulator slices for multiple architectures.

Distributed XCFramework size (all architectures)

The full Lens SDK XCFramework (all slices: device + simulator) is approximately:

ArtifactApproximate size
Lens SDK XCFramework (all slices)~110 MB

Screenshot: XCFramework size

iOS XCFramework size

caution

Actual user download size may be lower than the IPA size increase; Apple handles device-specific variants (e.g. App Thinning).


Estimated Sizes by Lens SDK Flavor

These sizes match version 2.2.58.3 for CocoaPods and 2.2.58 for SPM packages.

FlavorSize
Full28.2 MB
Bank Statements13 MB
Barcodes12.5 MB
Business Cards12.7 MB
Checks15.1 MB
Credit Cards19.5 MB
Credit Cards (Headless)12.2 MB
Receipts19.7 MB
Receipts (Headless)9.1 MB
Long Receipts19.7 MB
Codes16.2 MB
W-213 MB
W-913 MB
Prescription Labels13.5 MB
Any Docs21.3 MB
Lite10 MB