summaryrefslogtreecommitdiffhomepage
path: root/android/buildSrc/src
diff options
context:
space:
mode:
authorAlbin <albin@mullvad.net>2023-11-10 10:35:52 +0100
committerAlbin <albin@mullvad.net>2023-11-10 10:45:39 +0100
commitdc957ab8ba4fb577fd5bf182b195ae4e1c7b970c (patch)
treee00f1007081bb875628190294fbfff834b0d0b89 /android/buildSrc/src
parente29a55c585e346230a502afbe12c0b03e4275b3c (diff)
downloadmullvadvpn-dc957ab8ba4fb577fd5bf182b195ae4e1c7b970c.tar.xz
mullvadvpn-dc957ab8ba4fb577fd5bf182b195ae4e1c7b970c.zip
Add version code check
The check will fail unless the version code is less than 30000000. This means that all version codes up until the year 2030 are valid. The check runs before the preBuild task.
Diffstat (limited to 'android/buildSrc/src')
-rw-r--r--android/buildSrc/src/main/kotlin/VerificationConstants.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/android/buildSrc/src/main/kotlin/VerificationConstants.kt b/android/buildSrc/src/main/kotlin/VerificationConstants.kt
new file mode 100644
index 0000000000..33422a0623
--- /dev/null
+++ b/android/buildSrc/src/main/kotlin/VerificationConstants.kt
@@ -0,0 +1,2 @@
+// This value represent a version code that would be generated from and after year 2030.
+const val MAX_ALLOWED_VERSION_CODE = 30000000