summaryrefslogtreecommitdiffstats
path: root/src/android/app/build.gradle.kts
diff options
context:
space:
mode:
authorCharles Lombardo <clombardo169@gmail.com>2023-06-12 01:26:36 +0200
committerCharles Lombardo <clombardo169@gmail.com>2023-06-12 02:04:08 +0200
commit5751822e310e469dbafc46b038789cf97a7ce4d9 (patch)
treef6f3f94c99005539ba8dc58422df263298d5b84c /src/android/app/build.gradle.kts
parentMerge pull request #10668 from Kelebek1/reduce_vertex_bindings (diff)
downloadyuzu-5751822e310e469dbafc46b038789cf97a7ce4d9.tar
yuzu-5751822e310e469dbafc46b038789cf97a7ce4d9.tar.gz
yuzu-5751822e310e469dbafc46b038789cf97a7ce4d9.tar.bz2
yuzu-5751822e310e469dbafc46b038789cf97a7ce4d9.tar.lz
yuzu-5751822e310e469dbafc46b038789cf97a7ce4d9.tar.xz
yuzu-5751822e310e469dbafc46b038789cf97a7ce4d9.tar.zst
yuzu-5751822e310e469dbafc46b038789cf97a7ce4d9.zip
Diffstat (limited to 'src/android/app/build.gradle.kts')
-rw-r--r--src/android/app/build.gradle.kts16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/android/app/build.gradle.kts b/src/android/app/build.gradle.kts
index d4698ae1c..fe613d339 100644
--- a/src/android/app/build.gradle.kts
+++ b/src/android/app/build.gradle.kts
@@ -2,6 +2,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later
import android.annotation.SuppressLint
+import org.jetbrains.kotlin.konan.properties.Properties
plugins {
id("com.android.application")
@@ -57,9 +58,22 @@ android {
applicationId = "org.yuzu.yuzu_emu"
minSdk = 30
targetSdk = 33
- versionCode = 1
versionName = getGitVersion()
+ // If you want to use autoVersion for the versionCode, create a property in local.properties
+ // named "autoVersioned" and set it to "true"
+ val properties = Properties()
+ val versionProperty = try {
+ properties.load(project.rootProject.file("local.properties").inputStream())
+ properties.getProperty("autoVersioned") ?: ""
+ } catch (e: Exception) { "" }
+
+ versionCode = if (versionProperty == "true") {
+ autoVersion
+ } else {
+ 1
+ }
+
ndk {
@SuppressLint("ChromeOsAbiSupport")
abiFilters += listOf("arm64-v8a")