From 2b396ee6c0ea61f39f323bd37846793497f6f66c Mon Sep 17 00:00:00 2001 From: sangcomz Date: Mon, 7 Oct 2019 23:25:07 +0900 Subject: [PATCH] prepare release v0.2.0 --- README.md | 15 ++++++++++++--- gradle/release.gradle | 7 +++++-- settings.gradle | 4 ++-- 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 234f62a..8dc82ac 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,11 @@ Chameleon deals with the Status of RecyclerView. -## What's New in 0.1.2? :tada: -- [Bug] change `defaultState` -> `defaultChameleonState` (#14) +## What's New in 0.2.0? :tada: +- [Improvement] Modify MainActivity, ChameleonAdapter in Sample App [(#19)](https://github.com/sangcomz/Chameleon/pull/19) by [@LeeOhHyung](https://github.com/LeeOhHyung) +- [Feature] Can set top margin and bottom margin [(#18)](https://github.com/sangcomz/Chameleon/pull/18) +- [Feature] Can set fontFamily [(#18)](https://github.com/sangcomz/Chameleon/pull/18) +- [Feature] Support All View [(#20)](https://github.com/sangcomz/Chameleon/pull/20) ## How to Use @@ -20,7 +23,7 @@ Chameleon deals with the Status of RecyclerView. } dependencies { - compile 'com.github.sangcomz:Chameleon:v0.1.2' + compile 'com.github.sangcomz:Chameleon:v0.2.0' } ``` ### Usage @@ -132,6 +135,12 @@ chameleon.setStateChangeListener { newState, oldState -> Log.d("Main", "Was $old | useErrorButton | Change whether to use error view Button | false | | progressDrawable | progress drawable setting | - | | isLargeProgress | Whether to use large progress | false | +| stateImageBottomMargin | state image bottom margin | 4dp | +| subTitleTextTopMargin | sub title top margin | 4dp | +| buttonTopMargin | button top margin | 16dp | +| titleFontFamily | title font family | system default | +| subTitleFontFamily | sub title font family | system default | +| buttonFontFamily | button font family | system default | | defaultChameleonState | Sets the initial state for Chameleon | NONE | Note - A state of `NONE` means Chameleon won't do anything, and will just show the RecyclerView. diff --git a/gradle/release.gradle b/gradle/release.gradle index 85bc98c..39fb838 100644 --- a/gradle/release.gradle +++ b/gradle/release.gradle @@ -1,6 +1,6 @@ Properties properties = new Properties() -if(project.rootProject.file('local.properties').isFile()){ +if (project.rootProject.file('local.properties').isFile()) { properties.load(project.rootProject.file('local.properties').newDataInputStream()) } @@ -11,7 +11,10 @@ github { tagName = 'v' + gradle.versionName targetCommitish = 'master' body = """## Release Note -* Test Release""" +* [Improvement] Modify MainActivity, ChameleonAdapter in Sample App [(#19)](https://github.com/sangcomz/Chameleon/pull/19) by [@LeeOhHyung](https://github.com/LeeOhHyung) +* [Feature] Can set top margin and bottom margin [(#18)](https://github.com/sangcomz/Chameleon/pull/18) +* [Feature] Can set fontFamily [(#18)](https://github.com/sangcomz/Chameleon/pull/18) +* [Feature] Support All View [(#20)](https://github.com/sangcomz/Chameleon/pull/20)""" name = 'r' + gradle.versionName assets = [ 'app/build/outputs/apk/debug/chameleon-debug-' + gradle.versionName + '.apk', diff --git a/settings.gradle b/settings.gradle index 257e407..c02de67 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,7 +1,7 @@ include ':app', ':chameleon' -gradle.ext.set('versionCode', 10) -gradle.ext.set('versionName', '0.1.2') +gradle.ext.set('versionCode', 11) +gradle.ext.set('versionName', '0.2.0') gradle.ext.set('minSdk', 15) gradle.ext.set('targetSdk', 28)