Skip to content

Commit ec6d491

Browse files
committed
Allow specifying Gradle plugins from project.xml.
1 parent 459a3bf commit ec6d491

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

templates/android/template/app/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import java.awt.GridBagConstraints
44
import javax.swing.border.EmptyBorder
55

66
apply plugin: 'com.android.application'
7-
7+
::foreach ANDROID_GRADLE_APPLY_PLUGIN::apply plugin: '::__current__::'
8+
::end::
89
System.setProperty('java.awt.headless','false')
910

1011
//Uncomment to debug deprecation warnings.

tools/platforms/AndroidPlatform.hx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,7 @@ class AndroidPlatform extends PlatformTarget
436436
]);
437437
context.ANDROID_GRADLE_VERSION = project.config.getString("android.gradle-version", "8.9");
438438
context.ANDROID_GRADLE_PLUGIN = project.config.getString("android.gradle-plugin", "8.7.3");
439+
context.ANDROID_GRADLE_APPLY_PLUGIN = project.config.getArrayString("android.gradle-apply-plugin");
439440
context.ANDROID_USE_ANDROIDX = project.config.getString("android.useAndroidX", "true");
440441
context.ANDROID_ENABLE_JETIFIER = project.config.getString("android.enableJetifier", "false");
441442
context.ANDROID_GRADLE_PROPERTIES = project.config.getKeyValueArray("android.gradle-properties");

0 commit comments

Comments
 (0)