@@ -19,7 +19,7 @@ buildscript {
19
19
}
20
20
dependencies {
21
21
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 " )
23
23
}
24
24
}
25
25
@@ -90,22 +90,24 @@ project(":server") {
90
90
91
91
}
92
92
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" )
96
97
97
- val natives by configurations.creating
98
+ val natives by configurations.creating
98
99
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
+ }
109
111
}
110
112
}
111
113
0 commit comments