Skip to content

Commit

Permalink
Bump com.squareup:kotlinpoet from 1.13.2 to 1.14.2 (#40)
Browse files Browse the repository at this point in the history
* 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](square/kotlinpoet@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] <[email protected]>

* Fix one

* Update EnumConversion.kt

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Zac Sweers <[email protected]>
  • Loading branch information
dependabot[bot] and ZacSweers authored Nov 14, 2023
1 parent c9ba768 commit a78e3fa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ dependencies {
ksp("dev.zacsweers.autoservice:auto-service-ksp:1.1.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.6.0")
implementation("com.google.auto.value:auto-value:1.10.4")
implementation("com.google.auto.value:auto-value-annotations:1.10.4")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
)
Expand Down

0 comments on commit a78e3fa

Please sign in to comment.