Skip to content

Commit

Permalink
Prepare for release 0.16.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacSweers committed Jan 6, 2022
1 parent 9607637 commit 2ae00e8
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 4 deletions.
25 changes: 24 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,29 @@
Changelog
=========

Version 0.16.1
--------------

_2022-01-06_

* `moshi-ir` now supports dynamic generation of proguard rules, bringing it to feature parity with Moshi's existing
code gen.
* Note that if you have any issues, this can be disabled via the Gradle extension's `generateProguardRules`
property and using the manual rules mentioned in version 0.16.0's notes.
```gradle
moshi {
generateProguardRules.set(false)
}
```
* **New:** To help with debugging `moshi-ir`, a new `debug` property is available in the Gradle extension. It is off
by default and can be enabled like below. Please try this out and include its output when reporting issues. Thanks!

```gradle
moshi {
debug.set(true)
}
```

Version 0.16.0
--------------

Expand Down Expand Up @@ -30,7 +53,7 @@ embedded IR plugin.
proguard rules.
```proguard
# Keep names for JsonClass-annotated classes
-keepnames class @com.squareup.moshi.JsonClass **
-keepnames @com.squareup.moshi.JsonClass class **
# Keep generated adapter classes' constructors
-keepclassmembers class *JsonAdapter {
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Extensions for [Moshi](https://github.com/square/moshi)

* [moshi-ir](https://github.com/ZacSweers/MoshiX/tree/main/moshi-ir) - A Kotlin IR implementation of Moshi and
moshi-sealed code gen!
moshi-sealed code gen.
* [moshi-adapters](https://github.com/ZacSweers/MoshiX/tree/main/moshi-adapters) - A collection of custom adapters for Moshi.
* [moshi-metadata-reflect](https://github.com/ZacSweers/MoshiX/tree/main/moshi-metadata-reflect) - A [kotlinx-metadata](https://github.com/JetBrains/kotlin/tree/master/libraries/kotlinx-metadata/jvm) based implementation of `KotlinJsonAdapterFactory`. This allows for reflective Moshi serialization on Kotlin classes without the cost of including kotlin-reflect.
* [moshi-sealed](https://github.com/ZacSweers/MoshiX/tree/main/moshi-sealed) - Reflective and code gen implementations for serializing Kotlin sealed classes via Moshi polymorphic adapters.
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 \
--add-opens=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED

GROUP=dev.zacsweers.moshix
VERSION_NAME=0.17.0-SNAPSHOT
VERSION_NAME=0.16.1
POM_DESCRIPTION=Moshi Extensions
POM_URL=https://github.com/ZacSweers/MoshiX
POM_SCM_URL=https://github.com/ZacSweers/MoshiX
Expand Down
2 changes: 1 addition & 1 deletion moshi-ir/moshi-gradle-plugin/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ POM_ARTIFACT_ID=moshi-gradle-plugin
POM_PACKAGING=jar

GROUP=dev.zacsweers.moshix
VERSION_NAME=0.17.0-SNAPSHOT
VERSION_NAME=0.16.1
POM_DESCRIPTION=A Kotlin compiler plugin that generates Moshi JsonAdapter classes.
POM_URL=https://github.com/ZacSweers/MoshiX/
POM_SCM_URL=https://github.com/ZacSweers/MoshiX/
Expand Down

0 comments on commit 2ae00e8

Please sign in to comment.