Skip to content

Commit

Permalink
Release 1.0.0-alpha.64
Browse files Browse the repository at this point in the history
  • Loading branch information
dzikoysk committed Nov 27, 2024
1 parent 77aec78 commit 87afef6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ plugins {
}

dependencies {
val sqiffy = "1.0.0-alpha.63"
val sqiffy = "1.0.0-alpha.64"
ksp("com.dzikoysk.sqiffy:sqiffy-symbol-processor:$sqiffy") // annotation processor
implementation("com.dzikoysk.sqiffy:sqiffy:$sqiffy") // core library & implementation
}
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ allprojects {
apply(plugin = "signing")

group = "com.dzikoysk.sqiffy"
version = "1.0.0-alpha.63"
version = "1.0.0-alpha.64"

java {
sourceCompatibility = JavaVersion.VERSION_11
Expand Down
2 changes: 1 addition & 1 deletion sqiffy-docs/installation/gradle.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ plugins {
}

dependencies {
val sqiffy = "1.0.0-alpha.63"
val sqiffy = "1.0.0-alpha.64"
ksp("com.dzikoysk.sqiffy:sqiffy-symbol-processor:$sqiffy")
implementation("com.dzikoysk.sqiffy:sqiffy:$sqiffy")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,15 @@ fun Property.toPropertyData(typeFactory: TypeFactory, namingStrategy: NamingStra
typeFactory.getTypeAnnotation(this, EnumDefinition::class) { enumDefinition }
?.toEnumData()
?: run {
val enumName = typeFactory.getTypeDefinition(this) { enumDefinition }.qualifiedName
val rawEnum = typeFactory.getTypeAnnotation(this, RawEnum::class) { enumDefinition }

when {
rawEnum != null ->
EnumDefinitionData(
name = rawEnum.name,
raw = true,
mappedTo = typeFactory.getTypeDefinition(this) { enumDefinition }.qualifiedName,
mappedTo = enumName,
versions = listOf(
EnumVersionData(
version = "0.0.0",
Expand All @@ -67,7 +68,7 @@ fun Property.toPropertyData(typeFactory: TypeFactory, namingStrategy: NamingStra
)
)
)
else -> throw IllegalStateException("@EnumDefinition is not defined for $name")
else -> throw IllegalStateException("@EnumDefinition is not defined for property '$name' of type $enumName")
}
}
else -> null
Expand Down

0 comments on commit 87afef6

Please sign in to comment.