summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2026-03-21 10:00:12 +0300
committerAndrew Dolgov <fox@fakecake.org>2026-03-21 10:00:12 +0300
commit12d04f1f6b933a6f44163ee9ddbfce0bf1a10566 (patch)
tree5df48f552fb714ebc6c5bcbb67647ed664bf5a26
parentde4e6e79e6e76b3adf795c753ec1c3b613de594b (diff)
downloadthe-epube-android-12d04f1f6b933a6f44163ee9ddbfce0bf1a10566.tar.gz
the-epube-android-12d04f1f6b933a6f44163ee9ddbfce0bf1a10566.tar.xz
add branch build flavor
-rw-r--r--org.fox.epube/build.gradle14
1 files changed, 13 insertions, 1 deletions
diff --git a/org.fox.epube/build.gradle b/org.fox.epube/build.gradle
index 76a5b85..a3c7f5c 100644
--- a/org.fox.epube/build.gradle
+++ b/org.fox.epube/build.gradle
@@ -53,7 +53,6 @@ android {
             minifyEnabled false

             versionNameSuffix "-unsigned"

             proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.txt'

-            buildConfigField "String", "EPUBE_BASE_URL", "\"https://books.fakecake.org\""

         }

 

         signed {

@@ -64,6 +63,19 @@ android {
             buildConfigField "String", "EPUBE_BASE_URL", "\"https://books.fakecake.org\""

             matchingFallbacks = ['release']

         }

+

+        branch {

+            minifyEnabled  false

+            versionNameSuffix "-signed-branch"

+            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'

+            signingConfig signingConfigs.signed

+            applicationIdSuffix ".branch"

+            resValue "string", "app_name", "The Epube (dev)"

+            manifestPlaceholders = [

+                    appIcon: "@mipmap/ic_launcher_variant"

+            ]

+            matchingFallbacks = ['release']

+        }

     }

 

     namespace 'org.fox.epube'