Commit Graph

78 Commits

Author SHA1 Message Date
Jesse Wilson
c9f8c56efc Update changelog for 1.14.0 2022-09-06 14:36:42 -04:00
Zac Sweers
256d7b72aa Comment about KSP version (#1526) 2022-03-18 13:44:23 -04:00
Sampath
50751a863a Latest version is 1.13.0 (#1482) 2022-01-07 13:14:24 -05:00
Sampath
846b9c3a45 EventJsonAdapter Kotlin sample update (#1481) 2022-01-07 10:44:18 -05:00
Vincent Stollenwerk
196ab7a132 Fix typo in README (#1480) 2022-01-06 17:26:10 -05:00
Zac Sweers
1d60d4cf73 Document Json.ignore in the README (#1456) 2021-12-09 15:37:50 -05:00
Zac Sweers
16ebad5a7d Add KSP docs to README (#1455)
* Add KSP docs to README

* Open KSP

* spotless
2021-12-09 11:16:47 -05:00
Jesse Wilson
09a4543297 Prepare for release 1.13.0. 2021-12-08 21:56:39 -05:00
Sangeet Narayan
92add003fe Update README.md to include Kotlin Examples (#1355) 2021-10-31 16:25:55 -04:00
Chitranshi Srivastava
628a193d69 fix: corrected a grammatical error. (#1298) 2021-09-12 20:55:53 -04:00
iury souza
29d2f0f0ed Update README to include enum section in ProGuard/R8 rules (#1354) 2021-09-12 20:54:44 -04:00
wrongwrong
9c17bb823f fix version on readme (#1333) 2021-04-07 10:34:17 -04:00
Yuichiro Kawano
1654313fee update version on README (#1332) 2021-04-05 19:44:39 -04:00
Jesse Wilson
cdf9546df5 Prepare for release 1.12.0. 2021-04-01 16:30:45 -04:00
Jesse Wilson
4d3ca9a174 Prepare for release 1.11.0. 2020-10-04 20:52:00 -04:00
sinha-shaurya
8fe26e934e Updated Moshi Download version to 1.10.0 2020-10-02 09:52:40 -04:00
Jesse Wilson
0a78ed4cb1 Moshi.Builder.addLast() (#1233)
This is mostly useful for KotlinJsonAdapterFactory.
2020-09-21 09:36:55 -04:00
Zac Sweers
538890e8c0 Switch to spotless and format code (#1196)
* Add spotless configuration

* Reformat!

* Add copyright config for build.gradle.kts files

* Add toeholds for headers
2020-08-27 23:40:15 -04:00
Zac Sweers
3eb95f277c Update README notes about R8/proguard
Resolves #1166
2020-07-29 00:07:41 -04:00
Jake Wharton
7829f9a65b Prepare version 1.9.3
(cherry picked from commit c7d0766c03842a411d52d691de343dd4f874f1d7)
2020-06-12 11:42:08 -04:00
Zac Sweers
52cf86d609 Tweak README nullSafe() example (#1073)
Resolves #1003
2020-01-15 13:29:24 -05:00
Jesse Wilson
5e52af3645 Changelog for 1.9.2. 2019-11-17 09:51:12 -05:00
Andrew Orobator
fde0ce0eb5 Fixed typo in readme (#1018) 2019-11-12 17:12:58 -05:00
Jesse Wilson
6ec87f0fc1 Update changelog for 1.9.1. 2019-10-30 23:23:29 -04:00
Jesse Wilson
55441313cc Update changelog for 1.9.0. 2019-10-29 08:12:37 -04:00
Erik Huizinga
85e86f1fa8 Add section about null safety (#757)
* Add section about null safety

Null safety is an important feature of the Kotlin language.
The fact that Moshi supports wrapping existing adapters in a null safe or non-null variant is important for null safety.
Therefore it makes sense to promote this feature in the readme, as this is one of the first places people should look for support and such features.

* Move factory method section out of Kotlin section

* Fix syntax highlighting

* Remove isLenient() reference

* Rewrite Kotlin example as Java, reformat comments
2018-12-03 22:50:52 -05:00
Jesse Wilson
98459dd8ab Reference 1.8 in the README 2018-11-09 09:41:10 +10:00
Stefan M
cf22bf9bce Add Gradle Kotlin DSL for dependencies (#719)
* Add Kotlin DSL for dependencies

* Use the "Kotlin" sytnax
2018-11-06 00:05:15 -08:00
Zac Sweers
bd2f2c4c28 Mention proguard 6 requirement (#686)
* Mention proguard 6 requirement

* Mention AGP instead
2018-09-29 22:59:52 -04:00
Jesse Wilson
efd324b82f Update changelog for 1.7.0. 2018-09-24 22:26:55 -04:00
Gabriel Ittner
4bbc5b2ff8 Embed ProGuard rules in the jar 2018-08-19 11:14:47 +02:00
Eric Cochran
83f60d6bd7 Fix README link to jar. (#622) 2018-08-14 22:54:30 -04:00
Nelson Osacky
2d7d2c116d Update readme to add information about depending on stdlib. 2018-07-03 22:52:49 +02:00
Louis CAD
dd86599d5b Fix codegen dependency configuration
annotationProcessor configuration is for java. Kotlin uses kapt
2018-05-17 16:14:35 +02:00
Pierre Degand
b5a50d8281 Update Proguard configuration for codegen (#542)
* Update Proguard configuration for codegen

-keepnames will prevent Proguard from renaming the class during obfuscation phase but won't protect the class from code shrinking.
In most cases, the generated are never referenced directly in the code as the adapters are loaded dynamically.
This means that, for Proguard, the class is unused and it will remove the generated adapters during the shrinking phase.

The adapters need to be kept as well as there primary constructor.

* Keep fields of generated JsonAdapter
2018-05-15 21:34:56 -04:00
Jesse Wilson
16938ab83a Merge pull request #541 from LouisCAD/patch-1
Add missing val and fix indentation in README
2018-05-15 06:15:33 -04:00
Jesse Wilson
279b1e00a7 Merge pull request #539 from 3flex/patch-1
README: fix typo
2018-05-15 06:14:42 -04:00
Louis CAD
6187be0c59 Add missing val and fix indentation in README 2018-05-15 09:23:13 +02:00
Matthew Haughton
373209640d README: fix typo 2018-05-15 16:52:11 +10:00
Zac Sweers
0c39719d12 Fix adapter factory name in proguard mention
Derp
2018-05-14 20:54:30 -07:00
Zac Sweers
defebcf8e5 Update proguard rules to differentiate between reflect or codegen 2018-05-14 20:22:23 -07:00
Jesse Wilson
6e411eb243 Update ProGuard rules for Kotlin codegen 2018-05-14 23:17:20 -04:00
Jesse Wilson
6deb12bdc8 Update README for 1.6.0. 2018-05-14 22:57:59 -04:00
Jesse Wilson
b857388796 Shade unreleased KotlinPoet 0.7.0.
That way we won't collide with other annotation processors if they have an
incompatible version.
2018-05-14 22:40:29 -04:00
Jesse Wilson
c935fe36a8 Update readme for Kotlin codegen 2018-05-14 21:46:55 -04:00
Jeremy Tecson
bfa14a0d66 Indent JSON string properly 2018-04-07 17:59:02 +08:00
Szymon Kozak
351bc57554 Change compile to implementation in README (#467) 2018-03-27 17:43:46 -07:00
Jesse Wilson
caedfea74b Use HTTPS links in documentation where possible. 2018-02-25 22:09:56 -05:00
Robert Stoll
a00860ee1d mention that KotlinJsonAdapterFactory validates (#439)
See #438 for the use case. The documentation was not accurate enough IMO. Thus, mention that KotlinJsonAdapterFactory is required for validation.
2018-02-17 22:17:42 -05:00
Eric Cochran
88ec00bcf4 Document adding the KotlinJsonAdapterFactory.
If you add a custom Kotlin JsonAdapter factory after the KotlinJsonAdapterFactory, you're going to have a bad time.
2017-10-29 05:38:48 +00:00