summaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2024-10-08 01:54:47 +0500
committerilotterytea <iltsu@alright.party>2024-10-08 01:54:47 +0500
commitc5ee68a647871ca7bc8044a96759e7c00f9188db (patch)
tree5101f68c9d33ed0c2c7ebb00178fe9d4537d9fe0 /build.gradle
parent8e046a873ae0df5d7215103f69bcd0fcae5a2a00 (diff)
feat: Android support (again)
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle19
1 files changed, 18 insertions, 1 deletions
diff --git a/build.gradle b/build.gradle
index 4f0a0fa..0d07f07 100644
--- a/build.gradle
+++ b/build.gradle
@@ -8,7 +8,7 @@ buildscript {
google()
}
dependencies {
- classpath 'com.android.tools.build:gradle:7.2.2'
+ classpath 'com.android.tools.build:gradle:8.1.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.21"
}
@@ -71,6 +71,23 @@ project(":desktop") {
}
}
+project(":android") {
+ apply plugin: "android"
+ apply plugin: "kotlin-android"
+
+ configurations { natives }
+
+ dependencies {
+ implementation project(":core")
+ api "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
+ natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-armeabi-v7a"
+ natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-arm64-v8a"
+ natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86"
+ natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86_64"
+ api "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
+ }
+}
+
project(":core") {
apply plugin: "kotlin"