diff options
author | Fredia Huya-Kouadio <fhuyakou@gmail.com> | 2021-02-24 03:49:00 -0800 |
---|---|---|
committer | Fredia Huya-Kouadio <fhuyakou@gmail.com> | 2021-02-24 04:23:46 -0800 |
commit | bc5120eb979f98e136a3e980001139d4f862e7e9 (patch) | |
tree | 85c335379f1507ea6b1b334cfba89a119b7d26f2 /platform/android/java/lib | |
parent | d4191e48c5f4af920e87a70fe3c5ae9219a3332b (diff) |
Add logic to record the version of the Godot engine for the Android platform.
Diffstat (limited to 'platform/android/java/lib')
-rw-r--r-- | platform/android/java/lib/AndroidManifest.xml | 5 | ||||
-rw-r--r-- | platform/android/java/lib/build.gradle | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/platform/android/java/lib/AndroidManifest.xml b/platform/android/java/lib/AndroidManifest.xml index fa39bc0f1d..3034794d69 100644 --- a/platform/android/java/lib/AndroidManifest.xml +++ b/platform/android/java/lib/AndroidManifest.xml @@ -6,6 +6,11 @@ <application> + <!-- Records the version of the Godot library --> + <meta-data + android:name="org.godotengine.library.version" + android:value="${godotLibraryVersion}" /> + <service android:name=".GodotDownloaderService" /> </application> diff --git a/platform/android/java/lib/build.gradle b/platform/android/java/lib/build.gradle index ca5153f7f6..6fc9a11a08 100644 --- a/platform/android/java/lib/build.gradle +++ b/platform/android/java/lib/build.gradle @@ -18,6 +18,8 @@ android { defaultConfig { minSdkVersion versions.minSdk targetSdkVersion versions.targetSdk + + manifestPlaceholders = [godotLibraryVersion: getGodotLibraryVersion()] } compileOptions { |