Welcome to our new developer portal! Use the "Ask" button to chat with our AI Agent.
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Build multiple APKs

Overview

To reduce APK size, generate one APK per CPU architecture (ABI).

For background, see Android’s documentation on APK splits: https://developer.android.com/build/configure-apk-splits

NFC Wallet SDK supports these ABIs:

  • armeabi-v7a (32-bit)

  • arm64-v8a (64-bit)

When you enable ABI splits, Gradle generates one APK per ABI for your digital wallet application.

The following figure illustrates the building of APK for 32-bit and 64-bit architectures.

Overview of splits for architecture
Overview of splits for architectures

Size consideration

The SDK AAR contains native .so libraries for all supported ABIs.

  • Universal AAR size = size(armeabi-v7a .so) + size(arm64-v8a .so)

  • With ABI splits, each generated APK contains only one .so

  • 32-bit APK size ≈ size(armeabi-v7a .so) + other application components

Configure your build for multiple APKs

In your app module build file:

Last updated

Was this helpful?