Skip to content

Commit a999ba8

Browse files
authored
Gradle 8.2->8.7, AGP 8.2.2->8.5.0 (yairm210#12325)
* Gradle 8.2->8.7, AGP 8.2.2->8.5.0 * *Conditionally* add android project only if ANDROID_HOME is set
1 parent 591805b commit a999ba8

File tree

3 files changed

+20
-17
lines changed

3 files changed

+20
-17
lines changed

Diff for: build.gradle.kts

+17-15
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ buildscript {
1919
}
2020
dependencies {
2121
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${com.unciv.build.BuildConfig.kotlinVersion}")
22-
classpath("com.android.tools.build:gradle:8.2.2")
22+
classpath("com.android.tools.build:gradle:8.5.0")
2323
}
2424
}
2525

@@ -90,22 +90,24 @@ project(":server") {
9090

9191
}
9292

93-
project(":android") {
94-
apply(plugin = "com.android.application")
95-
apply(plugin = "kotlin-android")
93+
if (System.getenv("ANDROID_HOME") != null) {
94+
project(":android") {
95+
apply(plugin = "com.android.application")
96+
apply(plugin = "kotlin-android")
9697

97-
val natives by configurations.creating
98+
val natives by configurations.creating
9899

99-
dependencies {
100-
"implementation"(project(":core"))
101-
// Not sure why I had to add this in for the upgrade to 1.12.1 to work, we can probably remove this later since it's contained in core
102-
"implementation"("com.badlogicgames.gdx:gdx:$gdxVersion")
103-
"implementation"("com.badlogicgames.gdx:gdx-backend-android:$gdxVersion")
104-
"implementation"("org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutinesVersion")
105-
natives("com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi-v7a")
106-
natives("com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-arm64-v8a")
107-
natives("com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86")
108-
natives("com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86_64")
100+
dependencies {
101+
"implementation"(project(":core"))
102+
// Not sure why I had to add this in for the upgrade to 1.12.1 to work, we can probably remove this later since it's contained in core
103+
"implementation"("com.badlogicgames.gdx:gdx:$gdxVersion")
104+
"implementation"("com.badlogicgames.gdx:gdx-backend-android:$gdxVersion")
105+
"implementation"("org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutinesVersion")
106+
natives("com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi-v7a")
107+
natives("com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-arm64-v8a")
108+
natives("com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86")
109+
natives("com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86_64")
110+
}
109111
}
110112
}
111113

Diff for: gradle/wrapper/gradle-wrapper.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

Diff for: settings.gradle.kts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
include("desktop", "android", "core", "tests", "server")
1+
include("desktop", "core", "tests", "server")
2+
if (System.getenv("ANDROID_HOME") != null) include("android")

0 commit comments

Comments
 (0)