iyegoroff / react-native-image-filter-kit

Various image filters for iOS & Android
MIT License
320 stars 43 forks source link

RenderScript APIs are deprecated starting in Android 12 #149

Open Jackpate-2003 opened 7 months ago

Jackpate-2003 commented 7 months ago

Recently I upgraded my Expo version to 50 and set compileSdkVersion to version 34. After building the project, I was facing a failure in the Task :react-native-image-filter-kit:compileDebugJavaWithJavac stage, which was related to the removal of RenderScript APIs in Android 12 and later. I solved this problem by adding the following code in the android section:

buildFeatures {
         renderScript true
     }

But RenderScript support is supposed to be removed in the next version of gradle (I think version 9):

Task :react-native-image-filter-kit:compileDebugRenderscript RenderScript APIs are deprecated starting in Android 12. RenderScript support will be removed in a future version of the Android Gradle plugin. See the follow ing link for a guide to migrate from RenderScript: https://developer.android.com/guide/topics/renderscript/migrate

Is the repository updated for changes?

ricardopetrere commented 6 months ago

Just to add salt to the injury:

Version 0.8.0 explicit says "android: removed renderscript support mode", but when I'm trying to compile it on macOS, it insists on running :react-native-image-filter-kit:compileDebugRenderscript and doing RenderScript stuff (which triggers this error). On Linux it seems to work fine. Why?