From ed0f0107e37aa97ba36b53551f4f99247fdfdaf9 Mon Sep 17 00:00:00 2001 From: adbenitez Date: Fri, 10 Jan 2025 01:31:42 +0100 Subject: [PATCH] update to new gplay app id and key --- .github/workflows/release.yml | 11 +++++---- build.gradle | 45 ++++++++++++++++++++++------------- 2 files changed, 34 insertions(+), 22 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 88a0a4335..0db6b0656 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -49,11 +49,12 @@ jobs: - name: Build APK run: | mkdir -p ~/.gradle - echo -n ${{ secrets.SIGNING_KEY }} | base64 -d >> ~/app.keystore - echo "DC_RELEASE_STORE_FILE=$HOME/app.keystore" >> ~/.gradle/gradle.properties - echo "DC_RELEASE_STORE_PASSWORD=${{ secrets.KEY_STORE_PASSWORD }}" >> ~/.gradle/gradle.properties - echo "DC_RELEASE_KEY_ALIAS=${{ secrets.ALIAS }}" >> ~/.gradle/gradle.properties - echo "DC_RELEASE_KEY_PASSWORD=${{ secrets.KEY_PASSWORD }}" >> ~/.gradle/gradle.properties + echo -n ${{ secrets.KEYSTORE_FILE }} | base64 -d >> ~/keystore.jks + echo "DC_RELEASE_STORE_FILE=$HOME/keystore.jks" >> ~/.gradle/gradle.properties + echo "DC_RELEASE_STORE_PASSWORD=${{ secrets.KEYSTORE_PASSWORD }}" >> ~/.gradle/gradle.properties + echo "DC_RELEASE_KEY_ALIAS_FDROID=${{ secrets.ALIAS_FDROID }}" >> ~/.gradle/gradle.properties + echo "DC_RELEASE_KEY_ALIAS_GPLAY=${{ secrets.ALIAS_GPLAY }}" >> ~/.gradle/gradle.properties + echo "DC_RELEASE_KEY_PASSWORD=${{ secrets.KEYSTORE_PASSWORD }}" >> ~/.gradle/gradle.properties ./gradlew assembleFossRelease rm build/outputs/apk/foss/release/*universal* ./gradlew assembleGplayRelease diff --git a/build.gradle b/build.gradle index a78d5cc4e..a5814fcec 100644 --- a/build.gradle +++ b/build.gradle @@ -33,8 +33,8 @@ android { useLibrary 'org.apache.http.legacy' defaultConfig { - versionCode 30000702 - versionName "1.50.6" + versionCode 30000704 + versionName "1.50.8" applicationId "chat.delta.lite" multiDexEnabled true @@ -87,17 +87,39 @@ android { storeFile file(DC_DEBUG_STORE_FILE ) } } - release { + releaseFdroid { + // 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 + keyAlias DC_RELEASE_KEY_ALIAS_FDROID + keyPassword DC_RELEASE_KEY_PASSWORD + } + } + releaseGplay { // 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 - keyAlias DC_RELEASE_KEY_ALIAS + keyAlias DC_RELEASE_KEY_ALIAS_GPLAY keyPassword DC_RELEASE_KEY_PASSWORD } } } + productFlavors { + foss { + dimension "none" + buildConfigField "boolean", "USE_PLAY_SERVICES", "false" + } + gplay { + dimension "none" + apply plugin: "com.google.gms.google-services" + buildConfigField "boolean", "USE_PLAY_SERVICES", "true" + applicationId "com.github.arcanechat" + } + } + buildTypes { debug { minifyEnabled false @@ -114,23 +136,12 @@ android { // nb: it is highly recommended to use the same settings in debug+release - // otherwise problems might be noticed delayed only minifyEnabled true - signingConfig signingConfigs.release + productFlavors.foss.signingConfig signingConfigs.releaseFdroid + productFlavors.gplay.signingConfig signingConfigs.releaseGplay proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } - productFlavors { - foss { - dimension "none" - buildConfigField "boolean", "USE_PLAY_SERVICES", "false" - } - gplay { - dimension "none" - apply plugin: "com.google.gms.google-services" - buildConfigField "boolean", "USE_PLAY_SERVICES", "true" - } - } - if(!project.hasProperty("ABI_FILTER")) { splits { abi {