diff options
author | Fredia Huya-Kouadio <fhuya@meta.com> | 2023-08-18 12:04:04 -0700 |
---|---|---|
committer | Fredia Huya-Kouadio <fhuya@meta.com> | 2023-08-18 12:04:04 -0700 |
commit | 91e24fe17791f432456f24e9dec781afc335f9b3 (patch) | |
tree | bc4f93e65c44de78f2c607c4e09890ca77bf55b3 | |
parent | c734dd980de4bcd2351ef80a4956646506402ab1 (diff) | |
download | godot-android-samples-91e24fe17791f432456f24e9dec781afc335f9b3.tar.gz godot-android-samples-91e24fe17791f432456f24e9dec781afc335f9b3.tar.bz2 godot-android-samples-91e24fe17791f432456f24e9dec781afc335f9b3.zip |
Move the Godot Android library dependency to `config.gradle`
This simplifies the process of updating the Godot Android lib dependency for all projects.
-rw-r--r-- | config.gradle | 9 | ||||
-rw-r--r-- | plugins/hello_gdextension/build.gradle | 3 | ||||
-rw-r--r-- | plugins/hello_signals/build.gradle | 3 | ||||
-rw-r--r-- | plugins/hello_world/build.gradle | 3 |
4 files changed, 11 insertions, 7 deletions
diff --git a/config.gradle b/config.gradle index 220cc88..5249c4b 100644 --- a/config.gradle +++ b/config.gradle @@ -1,11 +1,18 @@ +final snapshotGodotAndroidLib = "io.github.m4gr3d:godot:4.2.0.dev-SNAPSHOT" +final stableGodotAndroidLib = "org.godotengine:godot:4.1.0.stable" + ext { versions = [ gradlePluginVersion: '7.4.0', compileSdk : 33, minSdk : 21, targetSdk : 33, - godotLibVersion : '4.1.0.stable', javaVersion : JavaVersion.VERSION_11, kotlinVersion : '1.7.21', ] + + libraries = [ + // TODO: Update the godot dep when 4.2 is stable + godotAndroidLib: snapshotGodotAndroidLib, + ] } diff --git a/plugins/hello_gdextension/build.gradle b/plugins/hello_gdextension/build.gradle index 216001d..11896d5 100644 --- a/plugins/hello_gdextension/build.gradle +++ b/plugins/hello_gdextension/build.gradle @@ -40,8 +40,7 @@ android { } dependencies { - // TODO: Update the godot dep when 4.2 is stable - compileOnly "io.github.m4gr3d:godot:4.2.0.dev-SNAPSHOT" + compileOnly libraries.godotAndroidLib implementation "org.jetbrains.kotlin:kotlin-stdlib:$versions.kotlinVersion" } diff --git a/plugins/hello_signals/build.gradle b/plugins/hello_signals/build.gradle index eff0811..d639858 100644 --- a/plugins/hello_signals/build.gradle +++ b/plugins/hello_signals/build.gradle @@ -25,8 +25,7 @@ android { } dependencies { - // TODO: Update the godot dep when 4.2 is stable - compileOnly "io.github.m4gr3d:godot:4.2.0.dev-SNAPSHOT" + compileOnly libraries.godotAndroidLib implementation "org.jetbrains.kotlin:kotlin-stdlib:$versions.kotlinVersion" } diff --git a/plugins/hello_world/build.gradle b/plugins/hello_world/build.gradle index b948b11..598366e 100644 --- a/plugins/hello_world/build.gradle +++ b/plugins/hello_world/build.gradle @@ -25,8 +25,7 @@ android { } dependencies { - // TODO: Update the godot dep when 4.2 is stable - compileOnly "io.github.m4gr3d:godot:4.2.0.dev-SNAPSHOT" + compileOnly libraries.godotAndroidLib implementation "org.jetbrains.kotlin:kotlin-stdlib:$versions.kotlinVersion" } |