aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/build.gradle16
1 files changed, 12 insertions, 4 deletions
diff --git a/app/build.gradle b/app/build.gradle
index 1369f309..0bf77b05 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -35,10 +35,18 @@ android {
applicationId "${project.APP_GROUP}.${project.APP_ID.toLowerCase(Locale.CANADA)}"
minSdkVersion kau.Versions.minSdk
targetSdkVersion Versions.targetSdk
- // versionCode 2040300
- versionCode androidGitVersion.code()
- // versionName 2.4.3
- versionName androidGitVersion.name()
+ versionCode 2040300
+// versionCode androidGitVersion.code()
+ versionName '2.4.3'
+// versionName androidGitVersion.name()
+
+ // Verification for F-Droid builds
+ if (versionCode != androidGitVersion.code()) {
+ throw new GradleException("Version code mismatch, expected ${androidGitVersion.code()}, got $versionCode")
+ }
+ if (versionName != androidGitVersion.name()) {
+ throw new GradleException("Version name mismatch, expected ${androidGitVersion.name()}, got $versionName")
+ }
multiDexEnabled true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
javaCompileOptions {