TrillBit SDK
  • Introduction
  • technological overview
    • In this release
    • Use cases
    • Quick links
  • features
    • Payloads and Datarates
    • Protocols
    • Configurations
    • Distances
    • Platforms supported
  • demo applications
    • TrillPlay
      • Specifications
    • TrillIoT
    • Knowles SmartMic
  • Knowles smartmic support
    • Trill SDK for Knowles
      • Requirements
      • Setup Guide
        • Licensing and Setting up Trillbit Host library
        • Authentication of the Trillbit IA61x algorithm
        • Sending Data to the SmartMic
      • Trillbit SDK Methods
      • Troubleshooting
  • android support
    • Trill SDK for Android
      • SDK Requirements
      • Setup Guide
        • Licensing credentials
        • Getting started
        • Integrating the SDK
          • Declare your app's audio permissions
          • Import SDK
          • Declare Trill SDK Callback
          • License and Initialise your Trill SDK
      • Methods and Callbacks
        • Sender methods
        • Receiver methods
        • Callbacks
      • Reducing application size
      • Troubleshooting
        • Error codes
  • ios support
    • Trill SDK for iOS
      • SDK Requirements
      • Setup Guide
        • Licensing Trill SDK
        • Getting started
      • Methods and Callbacks
        • Trill SDK Methods
        • Trill SDK Callbacks and delegates
      • Troubleshooting
  • esp 32 support
    • Trill SDK for ESP-32
      • Requirements
      • Platforms supported
      • Setup Guide
        • Licensing and Setting up Trillbit library
        • Sending data to the ESP32 device
      • Methods and Callbacks
      • Troubleshooting
  • embedded linux
    • Trill SDK for Embedded linux
      • Requirements
      • Architectures supported
      • Demo applications
      • Setup Guide
        • Licensing your Trill SDK
        • Compiling example binaries
        • Instantiate Trill SDK
        • Run the demo code
      • Methods and Callbacks
        • Trill SDK Methods
        • Callbacks
      • Troubleshooting
  • Reference
    • References
    • FAQs
Powered by GitBook
On this page
  1. android support
  2. Trill SDK for Android

Reducing application size

  1. APK Split

To optimize your apps final APK size, we strongly recommend using the APK split functionality provided by the Gradle build system. If you are supporting multiple ABIs in your app, then you can split your app APK per ABI and effectively reduce the APK size. Please refer Android developer documentation for more details about ABI APK splits here : https://developer.android.com/studio/build/configure-apk-splits.html#configure-abi-split

2. Declaring only the required architecture: Add ABI filter Trillbit SDK uses native code (.so) files and ships with native code shared object library files for following ABI’s:

● armeabi

● armeabi-v7a

● arm64-v8a

● x86

● x86_64

As you might not need to support all ABI’s in your app, please add an ABI filter in your app modules build.gradle file. To add an ABI filter, open the build.gradle file for your app module and add ndk abiFilters in android-> defaultConfig section.

Eg: If you need to support only armeabi-v7a and x86 architectures, add abiFilters only for these two ABI’s as shown below:

android { 
defaultConfig { 
ndk { 
abiFilters "armeabi-v7a", "arm64-v8a" 
} 
} 
}
PreviousCallbacksNextTroubleshooting

Last updated 2 years ago