Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Jawnnypoo committed Apr 15, 2016
1 parent 55ab3f7 commit 7142b83
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 23 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
```

Expand Down
3 changes: 1 addition & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
19 changes: 3 additions & 16 deletions library/build.gradle
Original file line number Diff line number Diff line change
@@ -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"
}
2 changes: 1 addition & 1 deletion sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7142b83

Please sign in to comment.