Measuring the size that LUNA ID adds to your app#
You can measure the size that LUNA ID adds to your app.
In LUNA ID for Android#
To measure the size that LUNA ID adds to your app, do the following:
1․ Update build files to build separate .apk files for different platforms:
- In the build.gradle.kts file:
android {
...
splits {
abi {
isEnable = true
reset()
include("armeabi-v7a", "arm64-v8a", "x86", "x86_64")
isUniversalApk = false
}
}
...
}
- In the build.dragle file:
android {
...
splits {
abi {
enable true
reset()
include "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
universalApk false
}
}
...
}
2․ In Android Studio, run the Analyze APK utility.
3․ Open the build platfrom-specific .apk file (for example, armeabi-v7a
) and see the size of the following files:
- assets/data folder
- lib/{platform}/libTrackEngineSDK.so
- lib/{platform}/libBestShotMobile.so
- lib/{platform}/libflower.so
- lib/{platform}/libMatchingKernel.s
- lib/{platform}/libFaceEngineSDK.so
- lib/{platform}/libwrapper.so
- lib/{platform}/libc++_shared.so
Important notes#
- Any other files are not part of LUNA ID and are added by other dependencies of your app.
- In the Analyze APK utility, there should be only one platform in the lib folder (for example,
armeabi-v7a
,arm64-v8a
or any another). If there is more than one platform in this folder, then you are looking at a universal .apk file that includes all platforms. Go back a step and rebuild the app withsplits.abi
enabled.
In LUNA ID for iOS#
Total size#
The number of .plan files included in the SDK library depends on your particular case. The app size depends on the selected .plan files.
After you select all the required .plan files for your app, sum their sizes to find the total size of the .plan files.
You can find the .plan files in fsdk.framework/data.
In the picture below, you can see the .plan files selected for this example.
Application size#
To find out the IOS application size, do the following:
1․ Open your project with added frameworks in Xcode.
2․ Go to Product > Archive.
3․ Click the Distribute App button after archiving finishes.
4․ Select a distribution method. For example, Development.
5․ Select development distribution options.
6․ Select a device for distribution creation. For example, All compatible device variants.
7․ Re-sign your application. For example, by the developer signing.
8․ View the information about the archive.
9․ Export your app.
10․ Open the App Thinning Size Report.txt file.
11․ Find necessary information about the application size.
The picture below shows the size of the application without additional swift frameworks from this example.
12․ Verify the size of the packed application.