Fixed debug flavor file provider preventing to have both a debug & release version installed at the same time
This commit is contained in:
parent
122cca9b1b
commit
25605f999e
1 changed files with 9 additions and 3 deletions
|
@ -93,14 +93,20 @@ android {
|
||||||
versionName "${project.version}"
|
versionName "${project.version}"
|
||||||
applicationId getPackageName()
|
applicationId getPackageName()
|
||||||
multiDexEnabled true
|
multiDexEnabled true
|
||||||
manifestPlaceholders = [linphone_address_mime_type: "vnd.android.cursor.item/vnd." + getPackageName() + ".provider.sip_address",
|
|
||||||
linphone_file_provider: getPackageName() + ".provider"]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
applicationVariants.all { variant ->
|
applicationVariants.all { variant ->
|
||||||
variant.outputs.all {
|
variant.outputs.all {
|
||||||
outputFileName = "linphone-android-${variant.buildType.name}-${project.version}.apk"
|
outputFileName = "linphone-android-${variant.buildType.name}-${project.version}.apk"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (variant.buildType.name.equals("release")) {
|
||||||
|
variant.getMergedFlavor().manifestPlaceholders = [linphone_address_mime_type: "vnd.android.cursor.item/vnd." + getPackageName() + ".provider.sip_address",
|
||||||
|
linphone_file_provider: getPackageName() + ".provider"]
|
||||||
|
} else {
|
||||||
|
variant.getMergedFlavor().manifestPlaceholders = [linphone_address_mime_type: "vnd.android.cursor.item/vnd." + getPackageName() + ".provider.sip_address",
|
||||||
|
linphone_file_provider: getPackageName() + ".debug.provider"]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
def keystorePropertiesFile = rootProject.file("keystore.properties")
|
def keystorePropertiesFile = rootProject.file("keystore.properties")
|
||||||
|
@ -136,7 +142,7 @@ android {
|
||||||
jniDebuggable true
|
jniDebuggable true
|
||||||
|
|
||||||
resValue "string", "sync_account_type", getPackageName() + ".sync"
|
resValue "string", "sync_account_type", getPackageName() + ".sync"
|
||||||
resValue "string", "file_provider", getPackageName() + ".provider"
|
resValue "string", "file_provider", getPackageName() + ".debug.provider"
|
||||||
resValue "string", "linphone_address_mime_type", "vnd.android.cursor.item/vnd." + getPackageName() + ".provider.sip_address"
|
resValue "string", "linphone_address_mime_type", "vnd.android.cursor.item/vnd." + getPackageName() + ".provider.sip_address"
|
||||||
|
|
||||||
if (!firebaseEnabled()) {
|
if (!firebaseEnabled()) {
|
||||||
|
|
Loading…
Reference in a new issue