From 7797f9b8a65df209c09c0650fbf1cd7748a9d444 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Tue, 12 Feb 2019 13:18:33 +0100 Subject: [PATCH] add gplay flavour, tackles #697 --- build.gradle | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index 2c4dec47f..20ace4feb 100644 --- a/build.gradle +++ b/build.gradle @@ -146,15 +146,15 @@ android { versionCode 537 versionName "0.100.0" - // the full, used applicationId is `com.b44t.messenger.beta` for historical reasons. - // the following is mainly to satisfy f-droid that does not parse for the suffix on checks. applicationId "com.b44t.messenger" minSdkVersion 14 targetSdkVersion 26 vectorDrawables.useSupportLibrary = true - project.ext.set("archivesBaseName", "Deltachat"); + + // base name of the generated apk + project.ext.set("archivesBaseName", "deltachat"); buildConfigField "boolean", "DEV_BUILD", "false" @@ -188,8 +188,7 @@ android { } } release { - // TODO: add a key for release versions, needed esp. for Google Play - // see https://github.com/deltachat/deltachat-android/issues/651 + // can be defined at `~/.gradle/gradle.properties` or at "Build/Generate signed APK" if(project.hasProperty("DC_RELEASE_STORE_FILE")) { storeFile file(DC_RELEASE_STORE_FILE) storePassword DC_RELEASE_STORE_PASSWORD @@ -221,7 +220,6 @@ android { minifyEnabled true proguardFiles = buildTypes.debug.proguardFiles signingConfig signingConfigs.release - applicationIdSuffix ".beta" } } @@ -229,6 +227,10 @@ android { fat { dimension "none" } + gplay { + dimension "none" + applicationId "chat.delta" + } } android.applicationVariants.all { variant ->