Moshi-Sealed-Codegen

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

Лицензия

Лицензия

Категории

Категории

Moshi Данные JSON
Группа

Группа

dev.zacsweers.moshisealed
Идентификатор

Идентификатор

moshi-sealed-codegen
Последняя версия

Последняя версия

0.2.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

Moshi-Sealed-Codegen
Reflective and code gen implementations for serializing Kotlin sealed classes via Moshi polymorphic adapters.
Ссылка на сайт

Ссылка на сайт

https://github.com/ZacSweers/moshi-sealed
Система контроля версий

Система контроля версий

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

Скачать moshi-sealed-codegen

Как подключить последнюю версию

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

Зависимости

runtime (8)

Идентификатор библиотеки Тип Версия
com.google.auto : auto-common jar 0.10
com.squareup : kotlinpoet-metadata jar 1.5.0
com.squareup : kotlinpoet-metadata-specs jar 1.5.0
com.squareup.moshi : moshi-adapters jar 1.9.2
com.squareup.moshi : moshi jar 1.9.2
dev.zacsweers.moshisealed : moshi-sealed-annotations jar 0.2.0
com.squareup : kotlinpoet jar 1.5.0
org.jetbrains.kotlin : kotlin-stdlib-jdk8 jar 1.3.72

Модули Проекта

Данный проект не имеет модулей.

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.

Версии библиотеки

Версия
0.2.0
0.1.0