Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
2b57549
add KSP processor for Firebase AI
Oct 30, 2025
8643046
add the code
Oct 30, 2025
811122b
Update firebase-ai-ksp-processor/src/main/kotlin/com/google/firebase/…
davidmotson Oct 30, 2025
0d5d3f7
Update firebase-ai-ksp-processor/src/main/kotlin/com/google/firebase/…
davidmotson Oct 30, 2025
e7a1ab8
Update firebase-ai-ksp-processor/README.md
davidmotson Oct 30, 2025
54e9466
Update firebase-ai-ksp-processor/src/main/kotlin/com/google/firebase/…
davidmotson Oct 30, 2025
368c2ec
add generated annotation to generated class
Nov 5, 2025
bf2aa4d
improve file formatting and indentation
Nov 5, 2025
94a2e45
move annotations to firebase-ai, and rename the artifact
Nov 5, 2025
d7ff3d4
fix imports in schema processor and update firebase-ai/api.txt
Nov 5, 2025
da74532
format
Nov 5, 2025
534022a
Merge branch 'main' into davidmotson.firebase-ai-ksp-processor
davidmotson Nov 5, 2025
d32ec1f
format
Nov 5, 2025
8624f43
update readme for new artifact name
Nov 6, 2025
334f3a3
Add support for enum schema
Nov 11, 2025
8ffa303
added JsonSchema type and altered schema generator to output it
Nov 26, 2025
74eece1
introduced new auto function declaration type and auto function calling
Dec 4, 2025
23969d5
Merge branch 'main' into davidmotson.firebase-ai-ksp-processor
davidmotson Dec 4, 2025
5de85e9
update api.txt and schema generation type safety
Dec 9, 2025
b9a59d3
format
Dec 9, 2025
fb93399
format, add documentation, and generate api.txt file
Dec 12, 2025
a6493b1
add AutoFunctionDeclaration documentation
Dec 12, 2025
67d3c26
fix tests
Dec 13, 2025
45a26e8
Merge branch 'main' into davidmotson.firebase-ai-ksp-processor
davidmotson Dec 13, 2025
fe5255a
bump version and add changelog
Dec 13, 2025
db689c4
fix major version bumps and formatting
Dec 13, 2025
fe0b47b
fix ksp-processor readme
Dec 13, 2025
eaf7671
update api.txt
Dec 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions firebase-ai-ksp-processor/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
To build run `./gradlew :publishToMavenLocal`

To integrate: add the following to your app's gradle file:

```kotlin
plugins {
id("com.google.devtools.ksp")
}
dependencies {
implementation("com.google.firebase:firebase-ai:<latest_version>")
ksp("com.google.firebase:firebase-ai-processor:1.0.0")
}
```

46 changes: 46 additions & 0 deletions firebase-ai-ksp-processor/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/*
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The whole build file is using a different approach than what the other Firebase Libraries use (e.g. publishing config) Please update

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's because its not an android SDK, but a gradle plugin, I'm unsure if our existing structure would support it well.

Similar to our conversations with crashlytics about moving their plugins into the repo, I think its best if this does not use the Firebase Libraries plugin

* Copyright 2025 Google LLC
*
* 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.
*/

plugins {
kotlin("jvm")
id("java-library")
id("maven-publish")
}

dependencies {
testImplementation(kotlin("test"))
implementation(libs.symbol.processing.api)
implementation(libs.kotlinpoet.ksp)
}

tasks.test { useJUnitPlatform() }

kotlin { jvmToolchain(21) }

publishing {
publications {
create<MavenPublication>("mavenKotlin") {
from(components["kotlin"])
groupId = "com.google.firebase"
artifactId = "firebase-ai-processor"
version = "1.0.0"
}
}
repositories {
maven { url = uri("m2/") }
mavenLocal()
}
}
1 change: 1 addition & 0 deletions firebase-ai-ksp-processor/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
kotlin.code.style=official
Loading
Loading