Skip to content

Commit 7142b83

Browse files
committed
Update dependencies
1 parent 55ab3f7 commit 7142b83

5 files changed

Lines changed: 19 additions & 23 deletions

File tree

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,23 @@ The sample application (the source is in the repository) has been published onto
2121

2222
[![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)
2323

24-
## Gradle integration
24+
# Gradle Dependency
2525

26-
Minimum code for Gradle integration, place code in your `build.gradle`
26+
Add this in your root `build.gradle` file (**not** your module `build.gradle` file):
2727

28+
```gradle
29+
allprojects {
30+
repositories {
31+
...
32+
maven { url "https://jitpack.io" }
33+
}
34+
}
35+
```
36+
37+
Then, add the library to your project `build.gradle`
2838
```gradle
2939
dependencies {
30-
compile 'com.commit451:PhotoView:1.2.5'
40+
compile 'com.github.chrisbanes:PhotoView:1.2.6'
3141
}
3242
```
3343

build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ buildscript {
44
}
55

66
dependencies {
7-
classpath 'com.android.tools.build:gradle:1.3.0'
8-
classpath 'com.novoda:bintray-release:0.3.4'
7+
classpath 'com.android.tools.build:gradle:2.0.0'
98
}
109
}
1110

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-2.12-all.zip

library/build.gradle

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,17 @@
11
apply plugin: 'com.android.library'
2-
apply plugin: 'com.novoda.bintray-release'
32

43
android {
54
compileSdkVersion 23
6-
buildToolsVersion '23.0.2'
5+
buildToolsVersion '23.0.3'
76

87
defaultConfig {
98
minSdkVersion 4
109
targetSdkVersion 23
11-
versionCode 125
12-
versionName "1.2.5"
10+
versionCode 1
11+
versionName "1.0"
1312
}
1413
}
1514

1615
dependencies {
1716
compile "com.android.support:support-v4:23.3.0"
1817
}
19-
20-
//./gradlew clean build bintrayUpload -PbintrayUser=BINTRAY_USERNAME -PbintrayKey=BINTRAY_KEY -PdryRun=false
21-
publish {
22-
userOrg = 'commit451'
23-
groupId = 'com.commit451'
24-
artifactId = 'PhotoView'
25-
version = '1.2.5'
26-
description = 'Implementation of ImageView for Android that supports zooming, by various touch gestures.'
27-
website = 'https://github.com/chrisbanes/PhotoView'
28-
issueTracker = "https://github.com/chrisbanes/PhotoView/issues"
29-
repository = "https://github.com/chrisbanes/PhotoView.git"
30-
}

sample/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'com.android.application'
22

33
android {
44
compileSdkVersion 23
5-
buildToolsVersion '23.0.2'
5+
buildToolsVersion '23.0.3'
66

77
defaultConfig {
88
applicationId "uk.co.senab.photoview.sample"

0 commit comments

Comments
 (0)