Skip to content

Commit

Permalink
prepare release v0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sangcomz committed Oct 7, 2019
1 parent db0a956 commit 2b396ee
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down Expand Up @@ -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.
Expand Down
7 changes: 5 additions & 2 deletions gradle/release.gradle
Original file line number Diff line number Diff line change
@@ -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())
}

Expand All @@ -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',
Expand Down
4 changes: 2 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 2b396ee

Please sign in to comment.