diff options
author | Sam Judd <judds@google.com> | 2014-06-26 18:00:01 -0700 |
---|---|---|
committer | Sam Judd <judds@google.com> | 2014-06-27 16:41:39 -0700 |
commit | 0181060403cb0a7a2b344e4b2f55667194f09732 (patch) | |
tree | 5f027f0b76b6076e8b5cde788fa9bd0c55438c40 | |
parent | a6abdf254070ed17319d3d93a83ba40ee2642358 (diff) | |
download | glide-0181060403cb0a7a2b344e4b2f55667194f09732.tar.gz |
Add gradle snapshot deployment.
-rw-r--r-- | README.md | 52 | ||||
-rw-r--r-- | gradle.properties | 15 | ||||
-rw-r--r-- | library/build.gradle | 2 | ||||
-rw-r--r-- | library/gradle.properties | 3 | ||||
-rw-r--r-- | library/pom.xml | 4 | ||||
-rw-r--r-- | pom.xml | 2 | ||||
-rw-r--r-- | samples/flickr/pom.xml | 5 | ||||
-rw-r--r-- | samples/pom.xml | 2 | ||||
-rw-r--r-- | third_party/gif_decoder/build.gradle | 2 | ||||
-rw-r--r-- | third_party/gif_decoder/gradle.properties | 6 | ||||
-rw-r--r-- | third_party/gif_decoder/pom.xml | 2 | ||||
-rw-r--r-- | third_party/gradle.properties | 3 | ||||
-rw-r--r-- | third_party/pom.xml | 2 |
13 files changed, 87 insertions, 13 deletions
@@ -4,9 +4,49 @@ Glide is fast and efficient image loading library for Android that wraps image d Glide's primary focus is on making scrolling any kind of a list of images as smooth and fast as possible, but Glide is also effective for almost any case where you need to fetch, resize, and display a remote image. +Download +-------- +You can download a jar from GitHub's [release page](https://github.com/bumptech/glide/releases) or to use the 3.0 alpha branch, use Gradle: + +```groovy +repositories { + mavenCentral() + maven { + url "https://oss.sonatype.org/content/repositories/snapshots" + } +} + +dependencies { + compile group: 'com.github.bumptech.glide', name:'glide', version:'3.3.0-SNAPSHOT', changing: true +} +``` + +Or Maven: + +In your parent pom: + +```xml +<parent> + <groupId>org.sonatype.oss</groupId> + <artifactId>oss-parent</artifactId> + <version>7</version> +</parent> +``` + +In your module: + +```xml +<dependency> + <groupId>com.github.bumptech.glide</groupId> + <artifactId>glide</artifactId> + <version>3.3.0-SNAPSHOT</version> + <type>aar</type> +</dependency> +``` + How do I use Glide? ------------------- -You can download a .jar from GitHub's release page for the Glide project. The wiki also has pages on a variety of topics and the javadocs for version 2.0+ will also be available via a link there as well. +Checkout the GitHub wiki for pages on a variety of topics and links to javadocs. Simple use cases will look something like this: @@ -19,7 +59,7 @@ public void onCreate(Bundle savedInstanceState) { ImageView imageView = (ImageView) findViewById(R.id.my_image_view); - Glide.load("http://goo.gl/h8qOq7").into(imageView); + Glide.with(this).load("http://goo.gl/h8qOq7").into(imageView); } //For a list: @@ -35,7 +75,8 @@ public View getView(int position, View recycled, ViewGroup container) { String url = myUrls.get(position); - Glide.load(url) + Glide.with(myFragment) + .load(url) .centerCrop() .placeholder(R.drawable.loading_spinner) .animate(R.anim.fade_in) @@ -48,13 +89,14 @@ public View getView(int position, View recycled, ViewGroup container) { Status ------ -Glide has been in use at Bump for about six months in two of our Android apps at version 1.0. Version 2.0 is the first public release with a stable api. Comments/bugs/questions/pull requests welcome! +Glide was used at Bump for around a year in two of our Android apps at version 1.0. Version 2.0 was the first public release with a stable api. Version 3.0 is a work in progress and is in use in open source projects at Google including in the Android Camera app and in the 2014 Google IO app. Comments/bugs/questions/pull requests welcome! Build ------ Building Glide with gradle is fairly straight forward: ``` +git submodule init && git submodule update cd glide/library ./gradlew build ``` @@ -63,7 +105,7 @@ Note: Make sure your Android SDK has the Android Support Repository installed, a Thanks ------ -Thanks to the Android project and Jake Wharton for the [disk cache implementation](https://github.com/JakeWharton/DiskLruCache) included with Glide. Thanks also to the Android team for [Volley](https://android.googlesource.com/platform/frameworks/volley/). +Thanks to the Android project and Jake Wharton for the [disk cache implementation](https://github.com/JakeWharton/DiskLruCache) included with Glide. Thanks also to the Android team for [Volley](https://android.googlesource.com/platform/frameworks/volley/). Thanks to Dave Smith for his [GifDecoder gist](https://gist.github.com/devunwired/4479231) on which Glide's is based. Thanks also to everyone who has contributed code and reported issues! Author ------ diff --git a/gradle.properties b/gradle.properties index 1a644c77..40b4d0ef 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1,16 @@ org.gradle.daemon=true +VERSION_NAME=3.3.0-SNAPSHOT +VERSION_CODE=5 +GROUP=com.github.bumptech.glide + +POM_DESCRIPTION=A fast and efficient image loading library for Android focused on smooth scrolling. +POM_URL=https://github.com/bumptech/glide +POM_SCM_URL=https://github.com/bumptech/glide +POM_SCM_CONNECTION=scm:git@github.com:bumptech/glide.git +POM_SCM_DEV_CONNECTION=scm:git@github.com:bumptech/glide.git +POM_LICENCE_NAME=Simplified BSD License +POM_LICENCE_URL=http://www.opensource.org/licenses/bsd-license +POM_LICENCE_DIST=repo +POM_DEVELOPER_ID=sjudd +POM_DEVELOPER_NAME=Sam Judd +POM_DEVELOPER_EMAIL=judds@google.com diff --git a/library/build.gradle b/library/build.gradle index 078ee3fa..0a8ed3e9 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -90,3 +90,5 @@ task makeJar(type: Copy) { } makeJar.dependsOn(clearJar, build) + +apply from: "https://raw.githubusercontent.com/mcxiaoke/gradle-mvn-push/master/gradle-mvn-push.gradle" diff --git a/library/gradle.properties b/library/gradle.properties new file mode 100644 index 00000000..afe75433 --- /dev/null +++ b/library/gradle.properties @@ -0,0 +1,3 @@ +POM_NAME=Glide Library +POM_ARTIFACT_ID=glide +POM_PACKAGING=aar diff --git a/library/pom.xml b/library/pom.xml index 94bb357c..9402581f 100644 --- a/library/pom.xml +++ b/library/pom.xml @@ -3,7 +3,7 @@ <modelVersion>4.0.0</modelVersion> <parent> - <groupId>com.bumptech.glide</groupId> + <groupId>com.github.bumptech.glide</groupId> <artifactId>glide-parent</artifactId> <version>3.3.0-SNAPSHOT</version> <relativePath>../pom.xml</relativePath> @@ -11,7 +11,7 @@ <artifactId>glide</artifactId> <packaging>aar</packaging> - <name>Glide</name> + <name>Glide Library</name> <dependencies> <dependency> @@ -8,7 +8,7 @@ <version>7</version> </parent> - <groupId>com.bumptech.glide</groupId> + <groupId>com.github.bumptech.glide</groupId> <artifactId>glide-parent</artifactId> <version>3.3.0-SNAPSHOT</version> <packaging>pom</packaging> diff --git a/samples/flickr/pom.xml b/samples/flickr/pom.xml index 1de0b17b..b61db080 100644 --- a/samples/flickr/pom.xml +++ b/samples/flickr/pom.xml @@ -3,7 +3,7 @@ <modelVersion>4.0.0</modelVersion> <parent> - <groupId>com.bumptech.glide</groupId> + <groupId>com.github.bumptech.glide</groupId> <artifactId>glide-samples</artifactId> <version>3.3.0-SNAPSHOT</version> <relativePath>../pom.xml</relativePath> @@ -15,9 +15,10 @@ <dependencies> <dependency> - <groupId>com.bumptech.glide</groupId> + <groupId>com.github.bumptech.glide</groupId> <artifactId>glide</artifactId> <version>3.3.0-SNAPSHOT</version> + <type>aar</type> <scope>compile</scope> </dependency> <dependency> diff --git a/samples/pom.xml b/samples/pom.xml index bc1beebe..1bb71827 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -3,7 +3,7 @@ <modelVersion>4.0.0</modelVersion> <parent> - <groupId>com.bumptech.glide</groupId> + <groupId>com.github.bumptech.glide</groupId> <artifactId>glide-parent</artifactId> <version>3.3.0-SNAPSHOT</version> <relativePath>../pom.xml</relativePath> diff --git a/third_party/gif_decoder/build.gradle b/third_party/gif_decoder/build.gradle index 07bb766f..35eb6671 100644 --- a/third_party/gif_decoder/build.gradle +++ b/third_party/gif_decoder/build.gradle @@ -19,3 +19,5 @@ android { } } } + +apply from: "https://raw.githubusercontent.com/mcxiaoke/gradle-mvn-push/master/gradle-mvn-push.gradle" diff --git a/third_party/gif_decoder/gradle.properties b/third_party/gif_decoder/gradle.properties new file mode 100644 index 00000000..6c3197ee --- /dev/null +++ b/third_party/gif_decoder/gradle.properties @@ -0,0 +1,6 @@ +POM_NAME=Glide Gif Decoder +POM_ARTIFACT_ID=glide-gif-decoder +POM_PACKAGING=aar +POM_LICENCE_NAME=The Apache Software License, Version 2.0 +POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt +POM_LICENCE_DIST=repo diff --git a/third_party/gif_decoder/pom.xml b/third_party/gif_decoder/pom.xml index 5315cc3f..4fa4fa82 100644 --- a/third_party/gif_decoder/pom.xml +++ b/third_party/gif_decoder/pom.xml @@ -3,7 +3,7 @@ <modelVersion>4.0.0</modelVersion> <parent> - <groupId>com.bumptech.glide</groupId> + <groupId>com.github.bumptech.glide</groupId> <artifactId>glide-third-party</artifactId> <version>3.3.0-SNAPSHOT</version> <relativePath>../pom.xml</relativePath> diff --git a/third_party/gradle.properties b/third_party/gradle.properties new file mode 100644 index 00000000..83f7813f --- /dev/null +++ b/third_party/gradle.properties @@ -0,0 +1,3 @@ +POM_NAME=Glide Third Party +POM_ARTIFACT_ID=glide-third-party +POM_PACKAGING=pom diff --git a/third_party/pom.xml b/third_party/pom.xml index 5e73b52f..c420cb25 100644 --- a/third_party/pom.xml +++ b/third_party/pom.xml @@ -3,7 +3,7 @@ <modelVersion>4.0.0</modelVersion> <parent> - <groupId>com.bumptech.glide</groupId> + <groupId>com.github.bumptech.glide</groupId> <artifactId>glide-parent</artifactId> <version>3.3.0-SNAPSHOT</version> <relativePath>../pom.xml</relativePath> |