Skip to content

Commit

Permalink
Prepare for release 2.0-rc1
Browse files Browse the repository at this point in the history
  • Loading branch information
ansman committed Mar 25, 2019
1 parent b5a86f1 commit 9e12990
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
Change Log
===
Version 2.0-rc1 (2019-03-25)
---
This is a major release of Kotshi that includes breaking changes.

Changes:
* Kotshi now understands and generates Kotlin code. No more ugly annotations are needed for multiple constructors or custom getter names.
* Only data classes are allowed.
* Regular default values in Kotlin is now the only way to provide default values, all other annotations have been removed.
* The processor is now incremental which should yield a performance boost when using Kotlin 1.3.30 and above.
* The adapter factory is not generated in a deterministic order which allows it to be cached more efficiently.

Version 1.0.6 (2018-12-13)
---
* Update to kotlin 1.3.11 ([#105](https://github.com/ansman/kotshi/pull/105))
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ the module wide setting).
* `@KotshiJsonAdapterFactory` makes Kotshi generate a JsonAdapter factory. Should be placed on an abstract class that implements `JsonAdapter.Factory`.

### Default values
You can use default values just like you normally would in Kotlin.
You can use default values just like you normally would in Kotlin.

Due to limitations in Kotlin two instances of the object will be created when a class uses default values
Due to limitations in Kotlin two instances of the object will be created when a class uses default values
([youtrack issue](https://youtrack.jetbrains.com/issue/KT-18695)). This also means that composite default values are not
supported (for example a `fullName` property that is `"$firstName $lastName"`).
supported (for example a `fullName` property that is `"$firstName $lastName"`).

### Transient Values

Expand All @@ -81,8 +81,8 @@ Limitations
Download
---
```groovy
implementation 'se.ansman.kotshi:api:1.0.6'
kapt 'se.ansman.kotshi:compiler:1.0.6'
implementation 'se.ansman.kotshi:api:2.0-rc1'
kapt 'se.ansman.kotshi:compiler:2.0-rc1'
```
Snapshots of the development version are available in [Sonatype's snapshots repository](https://oss.sonatype.org/content/repositories/snapshots/).

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
GROUP=se.ansman.kotshi
VERSION_NAME=1.1.0-SNAPSHOT
VERSION_NAME=2.0-rc1

POM_DESCRIPTION=An annotations processor that generates Moshi adapters from Kotlin data classes
POM_PACKAGING = "pom"
Expand Down

0 comments on commit 9e12990

Please sign in to comment.