diff --git a/templates/android/template/gradle.properties b/templates/android/template/gradle.properties index a1cbbf4260..dcf0a583d7 100644 --- a/templates/android/template/gradle.properties +++ b/templates/android/template/gradle.properties @@ -29,4 +29,6 @@ KEY_STORE=::KEY_STORE:: KEY_STORE_PASSWORD=::KEY_STORE_PASSWORD:: KEY_STORE_ALIAS=::KEY_STORE_ALIAS:: KEY_STORE_ALIAS_PASSWORD=::KEY_STORE_ALIAS_PASSWORD:: -::end:: \ No newline at end of file +::end:: +::foreach ANDROID_GRADLE_PROPERTIES::::if ((value != null) && (value != ""))::::key::=::value:: +::end::::end:: \ No newline at end of file diff --git a/tools/platforms/AndroidPlatform.hx b/tools/platforms/AndroidPlatform.hx index 16d8859ac2..b0acbbe734 100644 --- a/tools/platforms/AndroidPlatform.hx +++ b/tools/platforms/AndroidPlatform.hx @@ -485,6 +485,7 @@ class AndroidPlatform extends PlatformTarget context.ANDROID_GRADLE_PLUGIN = project.config.getString("android.gradle-plugin", "8.7.3"); context.ANDROID_USE_ANDROIDX = project.config.getString("android.useAndroidX", "true"); context.ANDROID_ENABLE_JETIFIER = project.config.getString("android.enableJetifier", "false"); + context.ANDROID_GRADLE_PROPERTIES = project.config.getKeyValueArray("android.gradle-properties"); context.ANDROID_DISPLAY_CUTOUT = project.config.getString("android.layoutInDisplayCutoutMode", "default"); context.ANDROID_APPLICATION = project.config.getKeyValueArray("android.application", {