From 3b0ac7cb448f2c36f3a1d4c92674a9af9e3972cd Mon Sep 17 00:00:00 2001 From: Hugh Sanderson Date: Sun, 9 Jun 2024 14:53:29 +0800 Subject: [PATCH] Update default Android default minApiLevel to 21 --- templates/android/PROJ-gradle/app/build.gradle | 6 +++--- templates/android/extension-api/build.gradle | 1 + tools/nme/src/project/NMEProject.hx | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/templates/android/PROJ-gradle/app/build.gradle b/templates/android/PROJ-gradle/app/build.gradle index 60996f488..ae6f767c5 100644 --- a/templates/android/PROJ-gradle/app/build.gradle +++ b/templates/android/PROJ-gradle/app/build.gradle @@ -104,14 +104,14 @@ dependencies { ::if NME_FIREBASE:: // Add the dependency for the Performance Monitoring library - implementation 'com.google.firebase:firebase-analytics:17.2.2' + implementation 'com.google.firebase:firebase-analytics:22.0.1' ::if NME_FIREBASE_PERFORMANCE:: - implementation 'com.google.firebase:firebase-perf:19.0.7' + implementation 'com.google.firebase:firebase-perf:21.0.1' ::end:: ::if NME_FIREBASE_CRASHLYTICS:: - implementation 'com.google.firebase:firebase-crashlytics-ndk:17.1.0' + implementation 'com.google.firebase:firebase-crashlytics-ndk:19.0.1' ::end:: ::end:: diff --git a/templates/android/extension-api/build.gradle b/templates/android/extension-api/build.gradle index 41997ba1b..ffe116f5f 100644 --- a/templates/android/extension-api/build.gradle +++ b/templates/android/extension-api/build.gradle @@ -6,6 +6,7 @@ android { compileSdkVersion ::ANDROID_TARGET_SDK_VERSION:: defaultConfig { + minSdkVersion ::ANDROID_MIN_API_LEVEL:: targetSdkVersion ::ANDROID_TARGET_SDK_VERSION:: } buildToolsVersion "34.0.0" diff --git a/tools/nme/src/project/NMEProject.hx b/tools/nme/src/project/NMEProject.hx index a790f0e20..c981d1c2b 100644 --- a/tools/nme/src/project/NMEProject.hx +++ b/tools/nme/src/project/NMEProject.hx @@ -31,8 +31,8 @@ class AndroidConfig public function new() { installLocation = "preferExternal"; - minApiLevel = 16; - addV4Compat = true; + minApiLevel = 21; + addV4Compat = false; universalApk = false; appHeader = []; appIntent = [];