aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2020-02-05 23:32:17 -0800
committerAllan Wang <me@allanwang.ca>2020-02-05 23:32:17 -0800
commit2d54d588eb56e1ddf20cafeb95fa261e8a547607 (patch)
tree1401f4f526f9c20636d2f6c603868e6c27a262dc
parenta6dd7e3aafd695778b229241ebcc4687f0c212c8 (diff)
downloadfrost-2d54d588eb56e1ddf20cafeb95fa261e8a547607.tar.gz
frost-2d54d588eb56e1ddf20cafeb95fa261e8a547607.tar.bz2
frost-2d54d588eb56e1ddf20cafeb95fa261e8a547607.zip
Hardcode version for F-Droidv2.4.3
-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 {