From 3981c48cc31ac2bbb15d27e89d1a36068c9f2264 Mon Sep 17 00:00:00 2001 From: Tommy Ettinger Date: Thu, 17 Oct 2024 15:41:25 -0700 Subject: [PATCH] Add AndroidX as a dependency of Android projects. This is a workaround until the AndroidX situation gets sorted out in libGDX; this should be equivalent to one of the possible fixes that could apply to libGDX. --- src/main/kotlin/gdx/liftoff/data/platforms/Android.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/kotlin/gdx/liftoff/data/platforms/Android.kt b/src/main/kotlin/gdx/liftoff/data/platforms/Android.kt index c0583094..87c79d31 100644 --- a/src/main/kotlin/gdx/liftoff/data/platforms/Android.kt +++ b/src/main/kotlin/gdx/liftoff/data/platforms/Android.kt @@ -121,6 +121,9 @@ class AndroidGradleFile(val project: Project) : GradleFile(Android.ID) { addNativeDependency("com.badlogicgames.gdx:gdx-platform:\$gdxVersion:natives-arm64-v8a") addNativeDependency("com.badlogicgames.gdx:gdx-platform:\$gdxVersion:natives-x86") addNativeDependency("com.badlogicgames.gdx:gdx-platform:\$gdxVersion:natives-x86_64") + // TODO: This may be best if it can be removed in the version after libGDX 1.13.0, or established as a GDX dep. + addDependency("androidx.core:core:1.13.1") + plugins.add("com.android.application") }