Developer Notes
- 01 Oct 2020
- 1 読む分
- 印刷する
- 闇光
- PDF
Developer Notes
- 更新日 01 Oct 2020
- 1 読む分
- 印刷する
- 闇光
- PDF
The content is currently unavailable in Ja - 日本語. You are viewing the default English version.
記事の要約
この要約は役に立ちましたか?
ご意見ありがとうございます
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
}
}
}
この記事は役に立ちましたか?