Skip to content

Commit 986e54e

Browse files
authored
Merge d1a959e into c8ada3c
2 parents c8ada3c + d1a959e commit 986e54e

22 files changed

Lines changed: 1718 additions & 55 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
To build run `./gradlew :publishToMavenLocal`
2+
3+
To integrate: add the following to your app's gradle file:
4+
5+
```kotlin
6+
plugins {
7+
id("com.google.devtools.ksp")
8+
}
9+
dependencies {
10+
implementation("com.google.firebase:firebase-bom:<latest-version>")
11+
implementation("com.google.firebase:firebase-ai")
12+
ksp("com.google.firebase:firebase-ai-processor:1.0.0")
13+
}
14+
```
15+
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/*
2+
* Copyright 2025 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
plugins {
18+
kotlin("jvm")
19+
id("java-library")
20+
id("maven-publish")
21+
}
22+
23+
dependencies {
24+
testImplementation(kotlin("test"))
25+
implementation(libs.symbol.processing.api)
26+
implementation(libs.kotlinpoet.ksp)
27+
}
28+
29+
tasks.test { useJUnitPlatform() }
30+
31+
kotlin { jvmToolchain(17) }
32+
33+
java {
34+
sourceCompatibility = JavaVersion.VERSION_17
35+
targetCompatibility = JavaVersion.VERSION_17
36+
}
37+
38+
publishing {
39+
publications {
40+
create<MavenPublication>("mavenKotlin") {
41+
from(components["kotlin"])
42+
groupId = "com.google.firebase"
43+
artifactId = "firebase-ai-processor"
44+
version = "1.0.0"
45+
}
46+
}
47+
repositories {
48+
maven { url = uri("m2/") }
49+
mavenLocal()
50+
}
51+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
kotlin.code.style=official

0 commit comments

Comments
 (0)