Nelson Osacky
2d7d2c116d
Update readme to add information about depending on stdlib.
2018-07-03 22:52:49 +02:00
Jesse Wilson
0b0883db68
Merge pull request #584 from square/eric.emptyDocumentHasNextReturnsFalse
...
Fix hasNext to return false at document end.
2018-06-24 10:34:46 -04:00
Jesse Wilson
de79ed364e
Merge pull request #582 from hzsweers/z/fixGeneratedAnnotation
...
Fix GeneratedAnnotation member definition
2018-06-24 10:03:08 -04:00
Eric Cochran
627e62f507
Fix hasNext to return false at document end.
2018-06-22 15:18:22 -07:00
Zac Sweers
c9aee2e853
Fix GeneratedAnnotation member definition
...
Before this was just adding both as varargs of "value"
2018-06-15 22:09:13 -07:00
Jesse Wilson
03ada87e90
Merge pull request #576 from square/eric.private-transient
...
Allow private transient Kotlin properties.
2018-06-07 10:26:44 -04:00
Eric Cochran
4666e06910
Allow private transient Kotlin properties.
2018-06-06 17:12:29 -07:00
Jake Wharton
cd9e600955
Merge pull request #559 from square/eric.word
...
Remove redundant "to" in doc.
2018-05-23 15:29:30 -04:00
Eric Cochran
df3a6ce2ae
Remove redundant "to" in doc.
2018-05-23 12:28:07 -07:00
Zac Sweers
3ecdfb6374
Fix generic typealiases ( #551 )
...
* Add generic type alias
* Fix missing resolveAliases check to fix generics
* Reword to useAbbreviatedType
2018-05-17 22:06:43 -04:00
Jesse Wilson
7470536606
Merge pull request #553 from LouisCAD/patch-1
...
Fix codegen dependency configuration in README
2018-05-17 10:20:55 -04:00
Louis CAD
dd86599d5b
Fix codegen dependency configuration
...
annotationProcessor configuration is for java. Kotlin uses kapt
2018-05-17 16:14:35 +02:00
Zac Sweers
b956b06f6d
Fix companion object names not being resolved ( #549 )
...
* Fix companion object names not being resolved
This slipped through the cracks before the release
Fixes #546
* Add braces on the else clause for symmetry
2018-05-16 15:44:07 -04:00
Jesse Wilson
d48e3aaa27
Merge pull request #548 from square/jwilson.0516.fix_parent_relative_link
...
Fix the link to the parent pom.xml in kotlin/reflect
2018-05-16 14:48:47 -04:00
Jesse Wilson
03f17310bc
Fix the link to the parent pom.xml in kotlin/reflect
2018-05-16 14:43:38 -04:00
Jesse Wilson
6142a167e9
Merge pull request #543 from square/eric.checkreturn
...
Add more CheckReturnValues for JsonReader.
2018-05-15 22:03:02 -04:00
Eric Cochran
d31f3c2482
Add more CheckReturnValues for JsonReader.
...
This encourages skipName over nextName.
2018-05-15 18:37:29 -07: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
Jesse Wilson
40817a2f2a
Merge pull request #538 from hzsweers/patch-2
...
Fix adapter factory name in proguard mention
2018-05-15 06:13:59 -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
Jesse Wilson
a8616ff10d
Merge pull request #537 from hzsweers/patch-1
...
Update proguard rules to differentiate between reflect or codegen
2018-05-14 23:35:30 -04: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
31ef245eeb
[maven-release-plugin] prepare for next development iteration
2018-05-14 23:00:15 -04:00
Jesse Wilson
bf4d1f8693
[maven-release-plugin] prepare release moshi-parent-1.6.0
2018-05-14 23:00:02 -04:00
Jesse Wilson
6deb12bdc8
Update README for 1.6.0.
2018-05-14 22:57:59 -04:00
Jesse Wilson
0b26628232
Merge pull request #536 from square/jwilson.0514.cast_shade
...
Shade unreleased KotlinPoet 0.7.0.
2018-05-14 22:52:35 -04:00
Jesse Wilson
9c55f5df59
Merge pull request #535 from square/jwilson.0514.skipName
...
Generated adapters should use skipName(), not nextName().
2018-05-14 22:52:28 -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
dd3043722e
Generated adapters should use skipName(), not nextName().
2018-05-14 22:39:33 -04:00
Jesse Wilson
50a5ef3e7d
Update changelog for 1.6
2018-05-14 21:54:34 -04:00
Jesse Wilson
c935fe36a8
Update readme for Kotlin codegen
2018-05-14 21:46:55 -04:00
Jesse Wilson
62e6363914
Merge pull request #534 from square/jwilson.0514.yield
...
Change the Kotlin reflection adapter to yield to the codegen adapter
2018-05-14 21:46:26 -04:00
Jesse Wilson
dd84b9f8f8
Change the Kotlin reflection adapter to yield to the codegen adapter
2018-05-14 21:07:46 -04:00
Jesse Wilson
3f1e4b5a3d
Merge pull request #533 from square/jwilson.0514.kotlin_reflect
...
Move Kotlin reflection into a kotlin/reflect directory
2018-05-14 18:03:10 -04:00
Jesse Wilson
60cb608956
Move Kotlin reflection into a kotlin/reflect directory
...
The maven coordinates stay the same.
2018-05-14 17:28:28 -04:00
Jesse Wilson
a0df085b81
Merge pull request #532 from square/jwilson.0514.move_kompiler
...
Move the Kotlin code generator to the kotlin/ module
2018-05-14 16:36:34 -04:00
Jesse Wilson
9f69029ef0
Move the Kotlin code generator to the kotlin/ module
2018-05-14 16:29:52 -04:00
Jesse Wilson
c5c4cac6c3
Merge pull request #531 from square/jwilson.0513.track_test_cases
...
Finish migrating tests from the reflective adapter
2018-05-14 12:10:33 -04:00
Jesse Wilson
13952c5430
Finish migrating tests from the reflective adapter
2018-05-13 21:52:06 -04:00
Zac Sweers
298aff24f5
Fix nullability not being preserved and clean up from shadowed names ( #529 )
...
* Add helper TypeName.asNullableIf extension
* Add missing nullability preservers to TypeResolver
* Fix shadowed names and add more missing nullable stuff
2018-05-13 14:38:02 -04:00
Jesse Wilson
986cc4c794
[maven-release-plugin] prepare for next development iteration
2018-05-06 21:50:45 -04:00
Jesse Wilson
c2f890879c
[maven-release-plugin] prepare release moshi-parent-1.6.0-RC1
2018-05-06 21:50:39 -04:00
Jesse Wilson
1407ca4392
Update changelog for forthcoming release
2018-05-06 21:48:28 -04:00
Jesse Wilson
7b1177adbc
Merge pull request #503 from square/eric.write-from-source
...
Allow writing out raw JSON.
2018-05-06 21:11:34 -04:00
Jesse Wilson
c39fc12729
Merge pull request #523 from hzsweers/z/nonNullTypeVariabels
...
Fix nullable properties of TypeVariable types
2018-05-06 21:10:38 -04:00