From c5ee68a647871ca7bc8044a96759e7c00f9188db Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Tue, 8 Oct 2024 01:54:47 +0500 Subject: feat: Android support (again) --- build.gradle | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'build.gradle') 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" -- cgit v1.2.3