diff --git a/README.md b/README.md index 8f9bcec0..bbffa736 100755 --- a/README.md +++ b/README.md @@ -21,13 +21,23 @@ The sample application (the source is in the repository) has been published onto [![Get it on Google Play](http://www.android.com/images/brand/get_it_on_play_logo_small.png)](http://play.google.com/store/apps/details?id=uk.co.senab.photoview.sample) -## Gradle integration +# Gradle Dependency -Minimum code for Gradle integration, place code in your `build.gradle` +Add this in your root `build.gradle` file (**not** your module `build.gradle` file): +```gradle +allprojects { + repositories { + ... + maven { url "https://jitpack.io" } + } +} +``` + +Then, add the library to your project `build.gradle` ```gradle dependencies { - compile 'com.commit451:PhotoView:1.2.5' + compile 'com.github.chrisbanes:PhotoView:1.2.6' } ``` diff --git a/build.gradle b/build.gradle index dbbc7677..7ce7b2f2 100755 --- a/build.gradle +++ b/build.gradle @@ -4,8 +4,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:1.3.0' - classpath 'com.novoda:bintray-release:0.3.4' + classpath 'com.android.tools.build:gradle:2.0.0' } } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 3b2490da..f7d0e81a 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-2.12-all.zip diff --git a/library/build.gradle b/library/build.gradle index ab6f747e..47733878 100755 --- a/library/build.gradle +++ b/library/build.gradle @@ -1,30 +1,17 @@ apply plugin: 'com.android.library' -apply plugin: 'com.novoda.bintray-release' android { compileSdkVersion 23 - buildToolsVersion '23.0.2' + buildToolsVersion '23.0.3' defaultConfig { minSdkVersion 4 targetSdkVersion 23 - versionCode 125 - versionName "1.2.5" + versionCode 1 + versionName "1.0" } } dependencies { compile "com.android.support:support-v4:23.3.0" } - -//./gradlew clean build bintrayUpload -PbintrayUser=BINTRAY_USERNAME -PbintrayKey=BINTRAY_KEY -PdryRun=false -publish { - userOrg = 'commit451' - groupId = 'com.commit451' - artifactId = 'PhotoView' - version = '1.2.5' - description = 'Implementation of ImageView for Android that supports zooming, by various touch gestures.' - website = 'https://github.com/chrisbanes/PhotoView' - issueTracker = "https://github.com/chrisbanes/PhotoView/issues" - repository = "https://github.com/chrisbanes/PhotoView.git" -} diff --git a/sample/build.gradle b/sample/build.gradle index f0ad5192..801c75be 100755 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'com.android.application' android { compileSdkVersion 23 - buildToolsVersion '23.0.2' + buildToolsVersion '23.0.3' defaultConfig { applicationId "uk.co.senab.photoview.sample"