From 50cbaf48bccd31ff1274a11342a0a24901aa4dcb Mon Sep 17 00:00:00 2001 From: Steve Hannah Date: Sun, 25 Feb 2024 14:55:06 -0800 Subject: [PATCH] feat: Enable gradle 8 by default in android local builds. (#3789) --- .../java/com/codename1/builders/AndroidGradleBuilder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maven/codenameone-maven-plugin/src/main/java/com/codename1/builders/AndroidGradleBuilder.java b/maven/codenameone-maven-plugin/src/main/java/com/codename1/builders/AndroidGradleBuilder.java index 5efebda60d..de5d801bed 100644 --- a/maven/codenameone-maven-plugin/src/main/java/com/codename1/builders/AndroidGradleBuilder.java +++ b/maven/codenameone-maven-plugin/src/main/java/com/codename1/builders/AndroidGradleBuilder.java @@ -86,7 +86,7 @@ public class AndroidGradleBuilder extends Executor { private String gradle8DistributionUrl = "https://services.gradle.org/distributions/gradle-8.1-bin.zip"; public boolean PREFER_MANAGED_GRADLE=true; - private boolean useGradle8 = false; + private boolean useGradle8 = true; private boolean extendAppCompatActivity = false; @@ -474,7 +474,7 @@ private static String escape(String str, String chars) { @Override public boolean build(File sourceZip, final BuildRequest request) throws BuildException { boolean facebookSupported = request.getArg("facebook.appId", null) != null; - newFirebaseMessaging = request.getArg("android.newFirebaseMessaging", "false").equals("true"); + newFirebaseMessaging = request.getArg("android.newFirebaseMessaging", "true").equals("true"); useGradle8 = request.getArg("android.useGradle8", ""+(useGradle8 || newFirebaseMessaging || facebookSupported)).equals("true"); extendAppCompatActivity = request.getArg("android.extendAppCompatActivity", "false").equals("true"); useJava8SourceLevel = request.getArg("android.java8", ""+useJava8SourceLevel).equals("true");