Developer Notes
- 01 Oct 2020
- 1 Minute to read
- Print
- DarkLight
- PDF
Developer Notes
- Updated on 01 Oct 2020
- 1 Minute to read
- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Setting Up Proguard Rules
ScreenMeet SDK requires an updated set of ProGuard rules. The following snippets provide the correct ProGuard rules based on the release used by your application.
-keep class com.screenmeet.sdk.** { *; }
-keep class org.webrtc.** { *; }
-dontwarn org.webrtc.**
-keepattributes InnerClasses
Reducing APK Size
ScreenMeet SDK uses native libraries, which are specific for every CPU architecture. By default, Gradle build produces an APK with included libraries for all architectures (armeabi-v7a, arm64-v8a, x86, x86_64). This brings an additional size overhead. To avoid this you can use APK splits.
APK splits allow developers to build multiple APKs specific for each ABIs. APK splits packages the minimum amount of code that is necessary for a particular device. This approach requires to submit multiple APKs to the Play Store.
Configuration example for build.gradle with APK splits enabled:
apply plugin: 'com.android.application'
android {
splits {
abi {
// Enable ABI split
enable true
// Clear list of ABIs
reset()
// List of supported ABIs
include "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
// Disable additional universal APK build
universalApk false
}
}
}
Was this article helpful?