Skip to content

Commit 94a2e45

Browse files
author
David Motsonashvili
committed
move annotations to firebase-ai, and rename the artifact
1 parent bf2aa4d commit 94a2e45

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

firebase-ai-ksp-processor/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ publishing {
3535
create<MavenPublication>("mavenKotlin") {
3636
from(components["kotlin"])
3737
groupId = "com.google.firebase"
38-
artifactId = "firebase-ai-ksp-processor"
38+
artifactId = "firebase-ai-processor"
3939
version = "1.0.0"
4040
}
4141
}

firebase-ai-ksp-processor/src/main/kotlin/com/google/firebase/ai/ksp/SchemaSymbolProcessor.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public class SchemaSymbolProcessor(
4848
) : SymbolProcessor {
4949
override fun process(resolver: Resolver): List<KSAnnotated> {
5050
resolver
51-
.getSymbolsWithAnnotation(Generable::class.qualifiedName.orEmpty())
51+
.getSymbolsWithAnnotation("com.google.firebase.ai.annotations.Generable")
5252
.filterIsInstance<KSClassDeclaration>()
5353
.map { it to SchemaSymbolProcessorVisitor(it, resolver) }
5454
.forEach { it.second.visitClassDeclaration(it.first, Unit) }
@@ -126,7 +126,7 @@ public class SchemaSymbolProcessor(
126126
val propertyDocs = extractPropertyKdocs(kdocString)
127127
val guideClassAnnotation =
128128
type.annotations.firstOrNull() {
129-
it.shortName.getShortName() == Guide::class.java.simpleName
129+
it.shortName.getShortName() == "Guide"
130130
}
131131
val description =
132132
getDescriptionFromAnnotations(guideAnnotation, guideClassAnnotation, description, baseKdoc)
@@ -183,7 +183,7 @@ public class SchemaSymbolProcessor(
183183
name = propertyName,
184184
guideAnnotation =
185185
property.annotations.firstOrNull() {
186-
it.shortName.getShortName() == Guide::class.java.simpleName
186+
it.shortName.getShortName() == "Guide"
187187
},
188188
)
189189
}

0 commit comments

Comments
 (0)