From f81439d1d2b2ce322b49fa5543d7766c1108693d Mon Sep 17 00:00:00 2001 From: Joseph Cloutier Date: Tue, 9 Nov 2021 20:12:21 -0500 Subject: [PATCH] Use androidX when available. https://developer.android.com/jetpack/androidx/ --- templates/android/template/gradle.properties | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/android/template/gradle.properties b/templates/android/template/gradle.properties index dff152bc8..a33d2c78e 100644 --- a/templates/android/template/gradle.properties +++ b/templates/android/template/gradle.properties @@ -21,6 +21,11 @@ ANDROID_BUILD_MIN_SDK_VERSION=::ANDROID_MINIMUM_SDK_VERSION:: ANDROID_BUILD_SDK_VERSION=::ANDROID_TARGET_SDK_VERSION:: ANDROID_BUILD_TOOLS_VERSION=::ANDROID_BUILD_TOOLS_VERSION:: +::if (ANDROID_TARGET_SDK_VERSION>=28):: +android.useAndroidX=true +android.enableJetifier=true +::end:: + ::if KEY_STORE:: KEY_STORE=::KEY_STORE:: KEY_STORE_PASSWORD=::KEY_STORE_PASSWORD::