Fixed debug APK size due to libraries not being compressed
This commit is contained in:
parent
572ce6dee2
commit
a679e365ec
2 changed files with 6 additions and 2 deletions
|
@ -92,12 +92,15 @@ android {
|
||||||
outputFileName = "linphone-android-${variant.buildType.name}-${project.version}.apk"
|
outputFileName = "linphone-android-${variant.buildType.name}-${project.version}.apk"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// https://developer.android.com/studio/releases/gradle-plugin#3-6-0-behavior for extractNativeLibs
|
||||||
if (variant.buildType.name == "release") {
|
if (variant.buildType.name == "release") {
|
||||||
variant.getMergedFlavor().manifestPlaceholders = [linphone_address_mime_type: "vnd.android.cursor.item/vnd." + getPackageName() + ".provider.sip_address",
|
variant.getMergedFlavor().manifestPlaceholders = [linphone_address_mime_type: "vnd.android.cursor.item/vnd." + getPackageName() + ".provider.sip_address",
|
||||||
linphone_file_provider: getPackageName() + ".provider"]
|
linphone_file_provider: getPackageName() + ".provider",
|
||||||
|
extractNativeLibs: "false"]
|
||||||
} else {
|
} else {
|
||||||
variant.getMergedFlavor().manifestPlaceholders = [linphone_address_mime_type: "vnd.android.cursor.item/vnd." + getPackageName() + ".provider.sip_address",
|
variant.getMergedFlavor().manifestPlaceholders = [linphone_address_mime_type: "vnd.android.cursor.item/vnd." + getPackageName() + ".provider.sip_address",
|
||||||
linphone_file_provider: getPackageName() + ".debug.provider"]
|
linphone_file_provider: getPackageName() + ".debug.provider",
|
||||||
|
extractNativeLibs: "true"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -65,6 +65,7 @@
|
||||||
android:roundIcon="@mipmap/ic_launcher_round"
|
android:roundIcon="@mipmap/ic_launcher_round"
|
||||||
android:resizeableActivity="true"
|
android:resizeableActivity="true"
|
||||||
android:theme="@style/LinphoneStyle"
|
android:theme="@style/LinphoneStyle"
|
||||||
|
android:extractNativeLibs="${extractNativeLibs}"
|
||||||
android:requestLegacyExternalStorage="true">
|
android:requestLegacyExternalStorage="true">
|
||||||
|
|
||||||
<!-- Starting activities -->
|
<!-- Starting activities -->
|
||||||
|
|
Loading…
Reference in a new issue