From 4da5e5c8bcade59bb401f5b6badd9b60b3926127 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 19 Jun 2023 02:04:47 +0000 Subject: [PATCH 1/3] Bump com.squareup:kotlinpoet from 1.13.2 to 1.14.2 Bumps [com.squareup:kotlinpoet](https://github.com/square/kotlinpoet) from 1.13.2 to 1.14.2. - [Release notes](https://github.com/square/kotlinpoet/releases) - [Changelog](https://github.com/square/kotlinpoet/blob/master/docs/changelog.md) - [Commits](https://github.com/square/kotlinpoet/compare/1.13.2...1.14.2) --- updated-dependencies: - dependency-name: com.squareup:kotlinpoet dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- build.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index ea33850..7639096 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -107,7 +107,7 @@ dependencies { ksp("dev.zacsweers.autoservice:auto-service-ksp:1.0.0") implementation("com.squareup.moshi:moshi:$moshiVersion") implementation("com.google.auto.service:auto-service:1.1.1") - implementation("com.squareup:kotlinpoet:1.13.2") + implementation("com.squareup:kotlinpoet:1.14.2") implementation("com.squareup.okio:okio:3.3.0") implementation("com.google.auto.value:auto-value:1.10.1") implementation("com.google.auto.value:auto-value-annotations:1.10.1") From beb1128ce9e0f3a813a648f61077423312174db6 Mon Sep 17 00:00:00 2001 From: Zac Sweers Date: Tue, 14 Nov 2023 14:30:49 -0500 Subject: [PATCH 2/3] Fix one --- .../com/slack/auto/value/kotlin/AutoValueKotlinExtension.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/slack/auto/value/kotlin/AutoValueKotlinExtension.kt b/src/main/kotlin/com/slack/auto/value/kotlin/AutoValueKotlinExtension.kt index 6ecc182..4d22480 100644 --- a/src/main/kotlin/com/slack/auto/value/kotlin/AutoValueKotlinExtension.kt +++ b/src/main/kotlin/com/slack/auto/value/kotlin/AutoValueKotlinExtension.kt @@ -144,7 +144,7 @@ public class AutoValueKotlinExtension( // If the AV class is Moshi-serializable, treat the enum as such too val addJsonClass = isAnnotationPresent(avClass, JsonClass::class.java) && - spec.annotationSpecs.none { it.typeName == JSON_CLASS_CN } + spec.annotations.none { it.typeName == JSON_CLASS_CN } collectedEnumsLocal[cn] = if (addJsonClass) { spec From 47a0f74091b8c1d97cdab25d864f910ff07dc542 Mon Sep 17 00:00:00 2001 From: Zac Sweers Date: Tue, 14 Nov 2023 14:31:07 -0500 Subject: [PATCH 3/3] Update EnumConversion.kt --- src/main/kotlin/com/slack/auto/value/kotlin/EnumConversion.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/slack/auto/value/kotlin/EnumConversion.kt b/src/main/kotlin/com/slack/auto/value/kotlin/EnumConversion.kt index 8b6b501..f52f351 100644 --- a/src/main/kotlin/com/slack/auto/value/kotlin/EnumConversion.kt +++ b/src/main/kotlin/com/slack/auto/value/kotlin/EnumConversion.kt @@ -71,7 +71,7 @@ public object EnumConversion { } } - if (isMoshiSerialized && annotationSpecs.none { it.typeName == JSON_CLASS_CN }) { + if (isMoshiSerialized && annotations.none { it.typeName == JSON_CLASS_CN }) { addAnnotation( AnnotationSpec.builder(JSON_CLASS_CN).addMember("generateAdapter = false").build() )