From 53b98aebb365cf0393d7d79bc535d94d0aeef474 Mon Sep 17 00:00:00 2001 From: "J. Kobersky" Date: Fri, 14 Aug 2020 17:58:13 +0200 Subject: [PATCH] Fixed #7: Android X support fix --- android/build.gradle | 2 +- android/gradle.properties | 2 ++ .../android/powerauth/reactnative/PowerAuthRNModule.java | 6 +++--- 3 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 android/gradle.properties diff --git a/android/build.gradle b/android/build.gradle index 30248f5..47ebe96 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -1,6 +1,6 @@ def DEFAULT_COMPILE_SDK_VERSION = 28 def DEFAULT_BUILD_TOOLS_VERSION = '28.0.3' -def DEFAULT_MIN_SDK_VERSION = 16 +def DEFAULT_MIN_SDK_VERSION = 19 def DEFAULT_TARGET_SDK_VERSION = 28 def safeExtGet(prop, fallback) { diff --git a/android/gradle.properties b/android/gradle.properties new file mode 100644 index 0000000..d015431 --- /dev/null +++ b/android/gradle.properties @@ -0,0 +1,2 @@ +android.useAndroidX=true +android.enableJetifier=true \ No newline at end of file diff --git a/android/src/main/java/com/wultra/android/powerauth/reactnative/PowerAuthRNModule.java b/android/src/main/java/com/wultra/android/powerauth/reactnative/PowerAuthRNModule.java index 022490a..5ebd7b9 100644 --- a/android/src/main/java/com/wultra/android/powerauth/reactnative/PowerAuthRNModule.java +++ b/android/src/main/java/com/wultra/android/powerauth/reactnative/PowerAuthRNModule.java @@ -17,11 +17,11 @@ package com.wultra.android.powerauth.reactnative; import android.os.Build; -import android.support.annotation.NonNull; -import android.support.annotation.Nullable; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; import android.util.Base64; -import android.support.v4.app.FragmentActivity; +import androidx.fragment.app.FragmentActivity; import com.facebook.react.bridge.Arguments; import com.facebook.react.bridge.ReactApplicationContext;