Developer Notes
- 01 Oct 2020
- 1 Minute zum Lesen
- Drucken
- DunkelLicht
- pdf
Developer Notes
- Aktualisiert am 01 Oct 2020
- 1 Minute zum Lesen
- Drucken
- DunkelLicht
- pdf
The content is currently unavailable in German. You are viewing the default English version.
Artikel-Zusammenfassung
Fanden Sie diese Zusammenfassung hilfreich?
Vielen Dank für Ihr 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
}
}
}
War dieser Artikel hilfreich?