summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Charles Lombardo2023-05-27 17:13:46 -0400
committerGravatar bunnei2023-06-03 00:06:04 -0700
commit8426e97f45073f795f97944f483a14b144c99683 (patch)
tree1768f3d0217d35bdc760e42abfd0e7785fcc0897 /src
parentvideo_core: vk_rasterizer: Decrease draw dispatch count for Android. (diff)
downloadyuzu-8426e97f45073f795f97944f483a14b144c99683.tar.gz
yuzu-8426e97f45073f795f97944f483a14b144c99683.tar.xz
yuzu-8426e97f45073f795f97944f483a14b144c99683.zip
android: Clean up app build.gradle
Removes the conflicting declaration of "version" and changes to versionCode that did nothing.
Diffstat (limited to 'src')
-rw-r--r--src/android/app/build.gradle.kts24
1 files changed, 2 insertions, 22 deletions
diff --git a/src/android/app/build.gradle.kts b/src/android/app/build.gradle.kts
index 1be1c974d..9121ee7e1 100644
--- a/src/android/app/build.gradle.kts
+++ b/src/android/app/build.gradle.kts
@@ -11,7 +11,6 @@ plugins {
11 * next 680 years. 11 * next 680 years.
12 */ 12 */
13val autoVersion = (((System.currentTimeMillis() / 1000) - 1451606400) / 10).toInt() 13val autoVersion = (((System.currentTimeMillis() / 1000) - 1451606400) / 10).toInt()
14var buildType = ""
15 14
16@Suppress("UnstableApiUsage") 15@Suppress("UnstableApiUsage")
17android { 16android {
@@ -48,7 +47,7 @@ android {
48 applicationId = "org.yuzu.yuzu_emu" 47 applicationId = "org.yuzu.yuzu_emu"
49 minSdk = 30 48 minSdk = 30
50 targetSdk = 33 49 targetSdk = 33
51 versionName = getVersion() 50 versionName = getGitVersion()
52 51
53 ndk { 52 ndk {
54 abiFilters += listOf("arm64-v8a", "x86_64") 53 abiFilters += listOf("arm64-v8a", "x86_64")
@@ -58,20 +57,6 @@ android {
58 buildConfigField("String", "BRANCH", "\"${getBranch()}\"") 57 buildConfigField("String", "BRANCH", "\"${getBranch()}\"")
59 } 58 }
60 59
61 signingConfigs {
62 //release {
63 // storeFile file('')
64 // storePassword System.getenv('ANDROID_KEYPASS')
65 // keyAlias = 'key0'
66 // keyPassword System.getenv('ANDROID_KEYPASS')
67 //}
68 }
69
70 applicationVariants.all { variant ->
71 buildType = variant.buildType.name // sets the current build type
72 true
73 }
74
75 // Define build types, which are orthogonal to product flavors. 60 // Define build types, which are orthogonal to product flavors.
76 buildTypes { 61 buildTypes {
77 62
@@ -84,7 +69,6 @@ android {
84 getDefaultProguardFile("proguard-android.txt"), 69 getDefaultProguardFile("proguard-android.txt"),
85 "proguard-rules.pro" 70 "proguard-rules.pro"
86 ) 71 )
87 defaultConfig.versionCode = 1
88 } 72 }
89 73
90 register("relWithVersionCode") { 74 register("relWithVersionCode") {
@@ -95,7 +79,6 @@ android {
95 getDefaultProguardFile("proguard-android.txt"), 79 getDefaultProguardFile("proguard-android.txt"),
96 "proguard-rules.pro" 80 "proguard-rules.pro"
97 ) 81 )
98 defaultConfig.versionCode = autoVersion
99 } 82 }
100 83
101 // builds a release build that doesn't need signing 84 // builds a release build that doesn't need signing
@@ -109,9 +92,7 @@ android {
109 "proguard-rules.pro" 92 "proguard-rules.pro"
110 ) 93 )
111 versionNameSuffix = "-debug" 94 versionNameSuffix = "-debug"
112 enableAndroidTestCoverage = false
113 isJniDebuggable = true 95 isJniDebuggable = true
114 defaultConfig.versionCode = 1
115 } 96 }
116 97
117 // Signed by debug key disallowing distribution on Play Store. 98 // Signed by debug key disallowing distribution on Play Store.
@@ -120,7 +101,6 @@ android {
120 isDebuggable = true 101 isDebuggable = true
121 isJniDebuggable = true 102 isJniDebuggable = true
122 versionNameSuffix = "-debug" 103 versionNameSuffix = "-debug"
123 defaultConfig.versionCode = 1
124 } 104 }
125 } 105 }
126 106
@@ -187,7 +167,7 @@ dependencies {
187 implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0") 167 implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0")
188} 168}
189 169
190fun getVersion(): String { 170fun getGitVersion(): String {
191 var versionName = "0.0" 171 var versionName = "0.0"
192 172
193 try { 173 try {