Skip to content

Commit 9fa63de

Browse files
committed
Updated Readme, added Gradle dependency definition
Raised version to 1.2.4, releasing to Maven Central repository
1 parent 2826f89 commit 9fa63de

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

README.md

+14-1
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,24 @@ The sample application (the source is in the repository) has been published onto
1919

2020
[![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)
2121

22+
## Gradle integration
23+
24+
Minimum code for Gradle integration, place code in your `build.gradle`
25+
26+
```gradle
27+
repositories {
28+
mavenCentral()
29+
}
30+
31+
dependencies {
32+
compile 'com.github.chrisbanes.photoview:library:1.2.4'
33+
}
34+
```
2235

2336
## Sample Usage
2437
There is a [sample](https://github.com/chrisbanes/PhotoView/tree/master/sample) provided which shows how to use the library in a more advanced way, but for completeness here is all that is required to get PhotoView working:
2538

26-
``` java
39+
```java
2740
ImageView mImageView;
2841
PhotoViewAttacher mAttacher;
2942

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION_NAME=1.2.4-SNAPSHOT
1+
VERSION_NAME=1.2.4
22
VERSION_CODE=124
33
GROUP=com.github.chrisbanes.photoview
44

sample/src/main/AndroidManifest.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
22
package="uk.co.senab.photoview.sample"
3-
android:versionCode="122"
4-
android:versionName="1.2.2-SNAPSHOT">
3+
android:versionCode="124"
4+
android:versionName="1.2.4">
55

66
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
77
<uses-permission android:name="android.permission.INTERNET"/>

0 commit comments

Comments
 (0)