From c1adf62d74643b5978f46e1d5dc753fe1efd36b4 Mon Sep 17 00:00:00 2001 From: gogo <27868171+vzts@users.noreply.github.com> Date: Tue, 11 Oct 2022 00:48:17 +0900 Subject: [PATCH] use androidx instead of support library The support library has been replaced by androidx. https://developer.android.com/jetpack/androidx/migrate I know turning on `android.useAndroidX` and `android.enableJetifier` should automatically convert third party librarys to use android x, but for this repo it wasn't the case. It gaves the error: ``` /node_modules/react-native-image-tools-wm/android/src/main/java/net/wowmaking/Utility.java:9: error: package android.support.media does not exist import android.support.media.ExifInterface; ^ ``` Given that whole android ecosystem & community has already adopted to use androidx, it's time to use android x flag correctly in all libraries as well. So I'm pulling this code change. --- android/src/main/java/net/wowmaking/Utility.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/net/wowmaking/Utility.java b/android/src/main/java/net/wowmaking/Utility.java index 12e2f98..362a633 100644 --- a/android/src/main/java/net/wowmaking/Utility.java +++ b/android/src/main/java/net/wowmaking/Utility.java @@ -6,7 +6,7 @@ import android.graphics.BitmapFactory; import android.graphics.Color; import android.graphics.Matrix; -import android.support.media.ExifInterface; +import androidx.exifinterface.media.ExifInterface; import android.net.Uri; import android.os.Build;