diff options
author | Allan Wang <me@allanwang.ca> | 2020-02-05 23:32:17 -0800 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2020-02-05 23:32:17 -0800 |
commit | 2d54d588eb56e1ddf20cafeb95fa261e8a547607 (patch) | |
tree | 1401f4f526f9c20636d2f6c603868e6c27a262dc | |
parent | a6dd7e3aafd695778b229241ebcc4687f0c212c8 (diff) | |
download | frost-2d54d588eb56e1ddf20cafeb95fa261e8a547607.tar.gz frost-2d54d588eb56e1ddf20cafeb95fa261e8a547607.tar.bz2 frost-2d54d588eb56e1ddf20cafeb95fa261e8a547607.zip |
Hardcode version for F-Droidv2.4.3
-rw-r--r-- | app/build.gradle | 16 |
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 { |