From 5e5fc2f30d6bee395fe2dfe0c522daa8fc03729f Mon Sep 17 00:00:00 2001 From: Jakob Krigovsky Date: Fri, 27 Dec 2019 09:41:00 +0100 Subject: [PATCH] Remove RenderScript Support Library remains Since https://github.com/react-native-community/react-native-blur/commit/7dc337ab1ba5cc973cb762e5b81939e72907f1e2, we use the native (android.renderscript) APIs anyway. See also https://developer.android.com/guide/topics/renderscript/compute#access-rs-apis. --- README.md | 22 +++------------------- android/build.gradle | 3 --- example/android/app/build.gradle | 2 -- 3 files changed, 3 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index a6153d4..ab37bfb 100644 --- a/README.md +++ b/README.md @@ -41,23 +41,7 @@ cd ios pod install ``` -4. (Android only) Add the following to `android/app/build.gradle` - -``` -android { - // make sure to use 23.0.3 or greater - buildToolsVersion '23.0.3' - - // ... - defaultConfig { - // Add these lines below the existing config - renderscriptTargetApi 23 - renderscriptSupportModeEnabled true - } -} -``` - -5. (Android only, optional) +4. (Android only, optional) If you've defined _[project-wide properties](https://developer.android.com/studio/build/gradle-tips.html)_ (**recommended**) in your root `build.gradle`, this library will detect the presence of the following properties: ```groovy @@ -74,13 +58,13 @@ ext { } ``` -6. Include the library in your code: +5. Include the library in your code: ```javascript import { BlurView, VibrancyView } from "@react-native-community/blur"; ``` -7. Compile and have fun! +6. Compile and have fun! ### BlurView diff --git a/android/build.gradle b/android/build.gradle index bc4cebc..d9a9cb7 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -24,9 +24,6 @@ android { targetSdkVersion safeExtGet('targetSdkVersion', 22) versionCode 1 versionName "1.0" - - renderscriptTargetApi 23 - renderscriptSupportModeEnabled true } lintOptions { abortOnError false diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 36fd9ee..84af0ac 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -107,8 +107,6 @@ android { targetSdkVersion rootProject.ext.targetSdkVersion versionCode 1 versionName "1.0" - renderscriptTargetApi 23 - renderscriptSupportModeEnabled true } splits { abi {