Moshi-Sealed-Annotations

Reflective and code gen implementations for serializing Kotlin sealed classes via Moshi polymorphic adapters.

License

License

Categories

Categories

Moshi Data JSON
GroupId

GroupId

dev.zacsweers.moshisealed
ArtifactId

ArtifactId

moshi-sealed-annotations
Last Version

Last Version

0.2.0
Release Date

Release Date

Type

Type

jar
Description

Description

Moshi-Sealed-Annotations
Reflective and code gen implementations for serializing Kotlin sealed classes via Moshi polymorphic adapters.
Project URL

Project URL

https://github.com/ZacSweers/moshi-sealed
Source Code Management

Source Code Management

https://github.com/ZacSweers/moshi-sealed

Download moshi-sealed-annotations

How to add to project

<!-- https://jarcasting.com/artifacts/dev.zacsweers.moshisealed/moshi-sealed-annotations/ -->
<dependency>
    <groupId>dev.zacsweers.moshisealed</groupId>
    <artifactId>moshi-sealed-annotations</artifactId>
    <version>0.2.0</version>
</dependency>
// https://jarcasting.com/artifacts/dev.zacsweers.moshisealed/moshi-sealed-annotations/
implementation 'dev.zacsweers.moshisealed:moshi-sealed-annotations:0.2.0'
// https://jarcasting.com/artifacts/dev.zacsweers.moshisealed/moshi-sealed-annotations/
implementation ("dev.zacsweers.moshisealed:moshi-sealed-annotations:0.2.0")
'dev.zacsweers.moshisealed:moshi-sealed-annotations:jar:0.2.0'
<dependency org="dev.zacsweers.moshisealed" name="moshi-sealed-annotations" rev="0.2.0">
  <artifact name="moshi-sealed-annotations" type="jar" />
</dependency>
@Grapes(
@Grab(group='dev.zacsweers.moshisealed', module='moshi-sealed-annotations', version='0.2.0')
)
libraryDependencies += "dev.zacsweers.moshisealed" % "moshi-sealed-annotations" % "0.2.0"
[dev.zacsweers.moshisealed/moshi-sealed-annotations "0.2.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.jetbrains.kotlin : kotlin-stdlib-jdk7 jar 1.3.72

Project Modules

There are no modules declared in this project.

MoshiX

Extensions for Moshi

  • moshi-adapters - A collection of custom adapters for Moshi.
  • moshi-ksp - A KSP implementation of Moshi Kotlin Codegen.
  • moshi-metadata-reflect - A kotlinx-metadata based implementation of KotlinJsonAdapterFactory. This allows for reflective Moshi serialization on Kotlin classes without the cost of including kotlin-reflect.
  • moshi-sealed - Reflective and code gen implementations for serializing Kotlin sealed classes via Moshi polymorphic adapters.

Snapshots of the development version are available in Sonatype's snapshots repository.

License

Copyright 2020 Zac Sweers

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Versions

Version
0.2.0
0.1.0