Developer Notes
- 01 Oct 2020
- 1 Minute à lire
- Impression
- SombreLumière
- PDF
Developer Notes
- Mis à jour le 01 Oct 2020
- 1 Minute à lire
- Impression
- SombreLumière
- PDF
The content is currently unavailable in French. You are viewing the default English version.
Résumé de l’article
Avez-vous trouvé ce résumé utile ?
Merci pour vos commentaires
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
}
}
}
Cet article vous a-t-il été utile ?