diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..d85112a --- /dev/null +++ b/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 diff --git a/README.md b/README.md index c7e66a0..2980f1d 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/build.gradle b/build.gradle index 0e5bcb3..a2bf277 100644 --- a/build.gradle +++ b/build.gradle @@ -37,7 +37,7 @@ subprojects { } group = GROUP - version = "$VERSION_NAME${!snapshot.equals("false") ? '-SNAPSHOT' : ''}" + version = "$VERSION_NAME${project.hasProperty('release') ? '' : '-SNAPSHOT'}" } ext { @@ -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] diff --git a/gradle.properties b/gradle.properties index 1e40ea4..05217eb 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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 diff --git a/gradle/credentials.gradle b/gradle/credentials.gradle index e6b920e..0322074 100644 --- a/gradle/credentials.gradle +++ b/gradle/credentials.gradle @@ -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'):''