Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
4 changes: 0 additions & 4 deletions .github/workflows/ci_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ jobs:
distribution: temurin
cache: gradle

- name: Clone vertexai mock responses
if: matrix.module == ':firebase-vertexai'
run: firebase-vertexai/update_responses.sh

- name: Clone ai mock responses
if: matrix.module == ':firebase-ai'
run: firebase-ai/update_responses.sh
Expand Down
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,6 @@ Unit tests can be executed on the command line by running
./gradlew :<firebase-project>:check
```

#### Vertex AI for Firebase

See the Vertex AI for Firebase [README](firebase-vertexai#running-tests) for setup
instructions specific to that project.

### Integration Testing

These are tests that run on a hardware device or emulator. These tests have
Expand Down
1 change: 0 additions & 1 deletion ci/fireci/fireciplugins/clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@

\b
$ fireci clean firebase-common
$ fireci clean firebase-common firebase-vertexai

Clean all projects:

Expand Down
32 changes: 0 additions & 32 deletions firebase-vertexai/README.md

This file was deleted.

911 changes: 0 additions & 911 deletions firebase-vertexai/api.txt

This file was deleted.

24 changes: 0 additions & 24 deletions firebase-vertexai/consumer-rules.pro

This file was deleted.

128 changes: 0 additions & 128 deletions firebase-vertexai/firebase-vertexai.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,128 +0,0 @@
/*
* Copyright 2024 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.
*/

@file:Suppress("UnstableApiUsage")

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
id("firebase-library")
id("kotlin-android")
alias(libs.plugins.kotlinx.serialization)
}

firebaseLibrary {
testLab.enabled = false
publishJavadoc = true
releaseNotes {
name.set("{{vertex_ai_in_firebase}}")
versionName.set("vertex-ai")
}
}

android {
val targetSdkVersion: Int by rootProject

namespace = "com.google.firebase.vertexai"
compileSdk = 34
defaultConfig {
minSdk = rootProject.extra["minSdkVersion"] as Int
consumerProguardFiles("consumer-rules.pro")
multiDexEnabled = true
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions { jvmTarget = "1.8" }
testOptions {
targetSdk = targetSdkVersion
unitTests {
isIncludeAndroidResources = true
isReturnDefaultValues = true
}
}
lint {
targetSdk = targetSdkVersion
baseline = file("lint-baseline.xml")
}
sourceSets { getByName("test").java.srcDirs("src/testUtil") }
}

// Enable Kotlin "Explicit API Mode". This causes the Kotlin compiler to fail if any
// classes, methods, or properties have implicit `public` visibility. This check helps
// avoid accidentally leaking elements into the public API, requiring that any public
// element be explicitly declared as `public`.
// https://github.com/Kotlin/KEEP/blob/master/proposals/explicit-api-mode.md
// https://chao2zhang.medium.com/explicit-api-mode-for-kotlin-on-android-b8264fdd76d1
tasks.withType<KotlinCompile>().all {
if (!name.contains("test", ignoreCase = true)) {
if (!kotlinOptions.freeCompilerArgs.contains("-Xexplicit-api=strict")) {
kotlinOptions.freeCompilerArgs += "-Xexplicit-api=strict"
}
}
}

dependencies {
implementation(libs.ktor.client.okhttp)
implementation(libs.ktor.client.core)
implementation(libs.ktor.client.websockets)
implementation(libs.ktor.client.content.negotiation)
implementation(libs.ktor.serialization.kotlinx.json)
implementation(libs.ktor.client.logging)

api("com.google.firebase:firebase-common:22.0.0")
implementation("com.google.firebase:firebase-components:19.0.0")
implementation("com.google.firebase:firebase-annotations:17.0.0")
implementation("com.google.firebase:firebase-appcheck-interop:17.1.0")
implementation(libs.androidx.annotation)
implementation(libs.kotlinx.serialization.json)
implementation(libs.androidx.core.ktx)
implementation(libs.slf4j.nop)
implementation(libs.kotlinx.coroutines.android)
implementation(libs.kotlinx.coroutines.reactive)
implementation(libs.reactive.streams)
implementation("com.google.guava:listenablefuture:1.0")
implementation("androidx.concurrent:concurrent-futures:1.2.0")
implementation("androidx.concurrent:concurrent-futures-ktx:1.2.0")
implementation("com.google.firebase:firebase-auth-interop:18.0.0")

testImplementation(libs.kotest.assertions.core)
testImplementation(libs.kotest.assertions)
testImplementation(libs.kotest.assertions.json)
testImplementation(libs.ktor.client.okhttp)
testImplementation(libs.ktor.client.mock)
testImplementation(libs.org.json)
testImplementation(libs.androidx.test.junit)
testImplementation(libs.androidx.test.runner)
testImplementation(libs.junit)
testImplementation(libs.kotlin.coroutines.test)
testImplementation(libs.robolectric)
testImplementation(libs.truth)
testImplementation(libs.mockito.core)

androidTestImplementation(libs.androidx.espresso.core)
androidTestImplementation(libs.androidx.test.junit)
androidTestImplementation(libs.androidx.test.runner)
androidTestImplementation(libs.truth)
}
16 changes: 0 additions & 16 deletions firebase-vertexai/gradle.properties

This file was deleted.

30 changes: 0 additions & 30 deletions firebase-vertexai/lint-baseline.xml

This file was deleted.

21 changes: 0 additions & 21 deletions firebase-vertexai/proguard-rules.pro

This file was deleted.

35 changes: 0 additions & 35 deletions firebase-vertexai/src/main/AndroidManifest.xml

This file was deleted.

Loading
Loading