Skip to content

Commit

Permalink
Updating for 1.0.1 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewReitz committed Dec 2, 2014
1 parent dadb706 commit ff360af
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 4 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
@@ -0,0 +1,10 @@
# Change Log

## Version 1.0.1

- Added default getItemId to bindable adapter.
- Updated RxJava Version.

## Version 1.0.0

- Initial Release
64 changes: 64 additions & 0 deletions README.md
Expand Up @@ -3,6 +3,70 @@
A bunch of little android libraries for throwing in your application
to avoid having to lookup, copy and pasting from one application to another.

# The Parts

## velcro-betterviewanimator

Adapted from Jake Wharton's U2020 application, `BetterViewanimator` is a view animator with an added
methods `setDisplayedChildId` and `getDisplayedChildId` allowing you to do animations using
resource ids.

### Usage

Add
```groovy
compile 'com.andrewreitz.velcro:velcro-bindableadapter:1.0.1'
```
to your build.gradle and extend `BetterviewAnimator`.

## velcro-bindableadapter

Adapted from Jake Wharton's U2020 application, `BindableAdapter` is an adapter that makes it easier
inflate and get view reusage from Adapters for Lists.

### Usage

Add
```groovy
compile 'com.andrewreitz.velcro:velcro-bindableadapter:1.0.1'
```
to your build.gradle and extend `BindableAdapter`.

## velcro-infinitescroll

Adapted from Panayiotis Papageorgiou's infinite scrolling post, infintescroll contains the class
`InfiniteScrollListener` for extension and handing off to ListViews for easy infinte scrolling.

### Usage

Add
```groovy
compile 'com.andrewreitz.velcro:velcro-infinitescroll:1.0.1'
```
to your build.gradle and extend `InfiniteScrollListener`. Then attach it to the ListView you want
infinite scrolling on.

## velcro-rx

A bunch of useful RxJava classes.

* `EndlessObserver` from Jake Wharton's U2020 app, is an observer that only requires you to implement
`onNext`, and thus "never ends"
* `EndObserver` from Jake Wharton's U2020 app, that introduces a new method on the Observer `onEnd`.
This method is called when `onComplete` or `onEnd` is called, always notify you that the Observer
has ended receiving events.
* `RetrofitObserver` is an Observer to use with Retrofit. It will automatically give you an error
as a `RetrofitError`. If there is an error other than retrofit you can handle this by overriding
`nonRetrofitError`. This class also has the same qualities as `EndObserver`.

### Usage

Add
```groovy
compile 'com.andrewreitz.velcro:velcro-rx:1.0.1'
```
to your build.gradle and extends the classes as you need.

# License

Copyright 2014 Andrew Reitz
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Expand Up @@ -37,7 +37,7 @@ subprojects {
}

group = GROUP
version = "$VERSION_NAME${!snapshot.equals("false") ? '-SNAPSHOT' : ''}"
version = "$VERSION_NAME${project.hasProperty('release') ? '' : '-SNAPSHOT'}"
}

ext {
Expand All @@ -60,7 +60,7 @@ apply plugin: "org.10ne.rest"
task bintraySign(type: RestTask) {
description = "Sign the release build on bintray"
httpMethod = 'post'
uri = "https://api.bintray.com/gpg/pieces/maven/velcro_parts/versions/${VERSION_NAME}"
uri = "https://api.bintray.com/gpg/pieces/maven/velcro-parts/versions/${VERSION_NAME}"
username = bintrayUsername
password = bintrayKey
requestBody = [passphrase: signingPassword]
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Expand Up @@ -15,7 +15,7 @@
#

GROUP=com.andrewreitz.velcro
VERSION_NAME=1.0.0
VERSION_NAME=1.0.1

PROJECT_BINTRAY_REPO=maven
PROJECT_BINTRAY_USER=pieces029
Expand Down
1 change: 0 additions & 1 deletion gradle/credentials.gradle
Expand Up @@ -16,4 +16,3 @@

ext.bintrayUsername = project.hasProperty('bintrayUsername')?project.getProperty('bintrayUsername'):System.getenv('BINTRAY_USER')?:''
ext.bintrayKey = project.hasProperty('bintrayKey')?project.getProperty('bintrayKey'):System.getenv('BINTRAY_KEY')?:''
ext.snapshot = project.hasProperty('snapshot')?project.getProperty('snapshot'):''

0 comments on commit ff360af

Please sign in to comment.