Skip to content

Commit

Permalink
Update for 0.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Flavio Veizi committed Jun 1, 2020
1 parent 11a423e commit 2846f7e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 9 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,16 @@ The `Stateful` annotation has a `type` argument, with a default value of `Statef
new instance is accepted while being in any state other than the latest, then the newly accepted
istance is not announced and will only be announced when reaching it while going forth.

### Stateful options
The `Stateful` annotation has an `options` array argument, with an empty default value.

- When the `NO_LAZY_INIT` option is applied, the top level functions for lazy delegation of the
generated wrapper initialization will not be generated.
- When the `NON_CASCADING_LISTENER` option is applied, only a single listener interface will be
generated containing callbacks for every single public property in the annotated model.
- When the `NO_DIFFING` option is applied, no diffing will be performed on the properties of the
annotated model and the listener will be invoked on every new instance received.

### Installation
#### Configure your project to consume GitHub packages.
- Generate an access token with `read packages` permission, more details here: [GitHub Help](https://help.github.com/en/packages/using-github-packages-with-your-projects-ecosystem/configuring-gradle-for-use-with-github-packages)
Expand All @@ -111,8 +121,8 @@ allprojects {

```groovy
dependencies {
implementation 'dev.fanie:stateful:0.2.1'
kapt 'dev.fanie:stateful-compiler:0.2.1'
implementation 'dev.fanie:stateful:0.2.3'
kapt 'dev.fanie:stateful-compiler:0.2.3'
}
```

Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.core:core-ktx:1.3.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation('dev.fanie:stateful:0.2.1')
kapt 'dev.fanie:stateful-compiler:0.2.1'
implementation('dev.fanie:stateful:0.2.3')
kapt 'dev.fanie:stateful-compiler:0.2.3'
testImplementation "junit:junit:${stateful.dependencies.JUNIT}"
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ buildscript {
ext {
stateful = [
GROUP_ID : 'dev.fanie',
BUILD : 16,
VERSION : '0.2.2',
BUILD : 17,
VERSION : '0.2.3',
github : [
ID : githubProperties['gpr.usr'],
KEY: githubProperties['gpr.key']
],
dependencies: [
GRADLE : '3.6.3',
GRADLE : '4.0.0',
JAVA : '8',
KOTLIN : '1.3.72',
JUNIT : '4.13',
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Sun May 03 21:59:13 EEST 2020
#Mon Jun 01 16:36:59 EEST 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip

0 comments on commit 2846f7e

Please sign in to comment.