Update README with required steps on Android

This commit is contained in:
Nathan Broadbent 2017-04-11 00:07:13 +07:00
parent a0802c0e99
commit 94a7d002e5

View File

@ -28,7 +28,16 @@ Check the [roadmap here](https://github.com/Kureev/react-native-blur/issues/1)
3. (Android only) Add the following to your `android/app/build.gradle`
`android/build.gradle`
```
```
buildscript {
dependencies {
// Update "Android Plugin for Gradle" version
classpath 'com.android.tools.build:gradle:2.2.3'
}
}
// ...
allprojects {
repositories {
maven { url 'https://github.com/500px/500px-android-blur/raw/master/releases/' }
@ -41,6 +50,21 @@ Check the [roadmap here](https://github.com/Kureev/react-native-blur/issues/1)
dependencies {
compile 'com.fivehundredpx:blurringview:1.0.0'
}
android {
defaultConfig {
// Add these to the existing config
renderscriptTargetApi 23
renderscriptSupportModeEnabled true
}
}
```
`android/gradle/wrapper/gradle-wrapper.properties`
```
// Update Gradle version
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
```
4. Inside your code include JS part by adding