mirror of
https://github.com/status-im/react-native-blur.git
synced 2025-03-03 17:30:29 +00:00
Remove RenderScript Support Library remains
Since 7dc337ab1b
, we use the native (android.renderscript) APIs anyway. See also https://developer.android.com/guide/topics/renderscript/compute#access-rs-apis.
This commit is contained in:
parent
dc00052b41
commit
5e5fc2f30d
22
README.md
22
README.md
@ -41,23 +41,7 @@ cd ios
|
|||||||
pod install
|
pod install
|
||||||
```
|
```
|
||||||
|
|
||||||
4. (Android only) Add the following to `android/app/build.gradle`
|
4. (Android only, optional)
|
||||||
|
|
||||||
```
|
|
||||||
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)
|
|
||||||
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:
|
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
|
```groovy
|
||||||
@ -74,13 +58,13 @@ ext {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
6. Include the library in your code:
|
5. Include the library in your code:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
import { BlurView, VibrancyView } from "@react-native-community/blur";
|
import { BlurView, VibrancyView } from "@react-native-community/blur";
|
||||||
```
|
```
|
||||||
|
|
||||||
7. Compile and have fun!
|
6. Compile and have fun!
|
||||||
|
|
||||||
### BlurView
|
### BlurView
|
||||||
|
|
||||||
|
@ -24,9 +24,6 @@ android {
|
|||||||
targetSdkVersion safeExtGet('targetSdkVersion', 22)
|
targetSdkVersion safeExtGet('targetSdkVersion', 22)
|
||||||
versionCode 1
|
versionCode 1
|
||||||
versionName "1.0"
|
versionName "1.0"
|
||||||
|
|
||||||
renderscriptTargetApi 23
|
|
||||||
renderscriptSupportModeEnabled true
|
|
||||||
}
|
}
|
||||||
lintOptions {
|
lintOptions {
|
||||||
abortOnError false
|
abortOnError false
|
||||||
|
@ -107,8 +107,6 @@ android {
|
|||||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||||
versionCode 1
|
versionCode 1
|
||||||
versionName "1.0"
|
versionName "1.0"
|
||||||
renderscriptTargetApi 23
|
|
||||||
renderscriptSupportModeEnabled true
|
|
||||||
}
|
}
|
||||||
splits {
|
splits {
|
||||||
abi {
|
abi {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user