Skip to content

Commit

Permalink
Update dependencies and lib version
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimezis committed Sep 22, 2018
1 parent 7febeaa commit 483dc0c
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 36 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ It honors its position and size changes, including view animation and property a
```

```Java
float radius = 20;
float radius = 20f;

View decorView = getWindow().getDecorView();
//ViewGroup you want to start blur from. Choose root as close to BlurView in hierarchy as possible.
Expand All @@ -34,9 +34,9 @@ It honors its position and size changes, including view animation and property a
Drawable windowBackground = decorView.getBackground();

blurView.setupWith(rootView)
.windowBackground(windowBackground)
.blurAlgorithm(new RenderScriptBlur(this))
.blurRadius(radius)
.setFrameClearDrawable(windowBackground)
.setBlurAlgorithm(new RenderScriptBlur(this))
.setBlurRadius(radius)
.setHasFixedTransformationMatrix(true);
```

Expand All @@ -62,7 +62,7 @@ and enable RenderScript support mode

```Groovy
defaultConfig {
renderscriptTargetApi 27 //must match target sdk and build tools
renderscriptTargetApi 28 //must match target sdk and build tools
renderscriptSupportModeEnabled true
}
```
Expand All @@ -76,7 +76,7 @@ It takes 1-4ms on Nexus 5 and Nexus 4 to draw BlurView with the setup given in e

## Gradle
```Groovy
implementation 'com.eightbitlab:blurview:1.4.0'
implementation 'com.eightbitlab:blurview:1.5.0'
```

License
Expand Down
24 changes: 14 additions & 10 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 27
buildToolsVersion "27.0.2"
compileSdkVersion 28

defaultConfig {
renderscriptTargetApi 27
renderscriptTargetApi 28
renderscriptSupportModeEnabled true
applicationId "com.eightbitlab.blurview_sample"
minSdkVersion 14
targetSdkVersion 27
targetSdkVersion 28
versionCode 3
versionName "1.1"
}
Expand All @@ -22,14 +21,19 @@ android {
}
}

ext {
supportLib = "28.0.0"
butterknife = "8.8.1"
}

dependencies {
implementation 'com.android.support:appcompat-v7:27.0.2'
implementation 'com.android.support:cardview-v7:27.0.2'
implementation 'com.android.support:design:27.0.2'
implementation 'com.android.support:recyclerview-v7:27.0.2'
implementation "com.android.support:appcompat-v7:$supportLib"
implementation "com.android.support:cardview-v7:$supportLib"
implementation "com.android.support:design:$supportLib"
implementation "com.android.support:recyclerview-v7:$supportLib"

implementation 'com.jakewharton:butterknife:8.0.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.0.1'
implementation "com.jakewharton:butterknife:$butterknife"
annotationProcessor "com.jakewharton:butterknife-compiler:$butterknife"

implementation project(':library')
implementation project(':supportrenderscriptblur')
Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'
classpath 'com.android.tools.build:gradle:3.1.4'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7'
classpath 'com.github.dcendents:android-maven-plugin:1.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Sun Dec 10 18:53:53 CST 2017
#Mon May 21 15:27:35 CEST 2018
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
15 changes: 7 additions & 8 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,17 @@ apply plugin: 'com.android.library'
ext {
PUBLISH_GROUP_ID = 'com.eightbitlab'
PUBLISH_ARTIFACT_ID = 'blurview'
PUBLISH_VERSION = '1.4.0'
PUBLISH_VERSION = '1.5.0'
}

android {
compileSdkVersion 27
buildToolsVersion "27.0.2"
compileSdkVersion 28

defaultConfig {
minSdkVersion 14
targetSdkVersion 27
versionCode 17
versionName "1.4.0"
targetSdkVersion 28
versionCode 18
versionName "1.5.0"
}

buildTypes {
Expand All @@ -30,8 +29,8 @@ configurations {
}

dependencies {
implementation 'com.android.support:support-annotations:27.0.2'
javadocDeps 'com.android.support:support-annotations:27.0.2'
implementation 'com.android.support:support-annotations:28.0.0'
javadocDeps 'com.android.support:support-annotations:28.0.0'
}

apply plugin: 'maven'
Expand Down
13 changes: 6 additions & 7 deletions supportrenderscriptblur/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,19 @@ apply plugin: 'com.android.library'
ext {
PUBLISH_GROUP_ID = 'com.eightbitlab'
PUBLISH_ARTIFACT_ID = 'supportrenderscriptblur'
PUBLISH_VERSION = '1.0.1'
PUBLISH_VERSION = '1.0.2'
}

android {
compileSdkVersion 27
buildToolsVersion "27.0.2"
compileSdkVersion 28

defaultConfig {
renderscriptTargetApi 27
renderscriptTargetApi 28
renderscriptSupportModeEnabled true
minSdkVersion 14
targetSdkVersion 27
targetSdkVersion 28
versionCode 2
versionName "1.0.1"
versionName "1.0.2"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
Expand All @@ -30,7 +29,7 @@ android {
}

dependencies {
implementation 'com.android.support:appcompat-v7:27.0.2'
implementation 'com.android.support:appcompat-v7:28.0.0'
compileOnly 'com.eightbitlab:blurview:+'
}

Expand Down

0 comments on commit 483dc0c

Please sign in to comment.