Skip to content

[FirebaseAI] Add it to the nightly build process #1249

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion .github/workflows/build_android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
type: string
apis:
description: 'CSV of apis to build and test'
default: 'analytics,app_check,auth,crashlytics,database,dynamic_links,firestore,functions,installations,messaging,remote_config,storage'
default: 'analytics,app_check,auth,crashlytics,database,dynamic_links,firebaseai,firestore,functions,installations,messaging,remote_config,storage'
required: true
type: string
unity_platform_name:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
type: string
apis:
description: 'CSV of apis to build and test'
default: 'analytics,app_check,auth,crashlytics,database,dynamic_links,firestore,functions,installations,messaging,remote_config,storage'
default: 'analytics,app_check,auth,crashlytics,database,dynamic_links,firebaseai,firestore,functions,installations,messaging,remote_config,storage'
required: true
type: string
unity_platform_name:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
type: string
apis:
description: 'CSV of apis to build and test'
default: 'analytics,app_check,auth,crashlytics,database,dynamic_links,firestore,functions,installations,messaging,remote_config,storage'
default: 'analytics,app_check,auth,crashlytics,database,dynamic_links,firebaseai,firestore,functions,installations,messaging,remote_config,storage'
required: true
type: string
unity_platform_name:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
type: string
apis:
description: 'CSV of apis to build and test'
default: 'analytics,app_check,auth,crashlytics,database,dynamic_links,firestore,functions,installations,messaging,remote_config,storage'
default: 'analytics,app_check,auth,crashlytics,database,dynamic_links,firebaseai,firestore,functions,installations,messaging,remote_config,storage'
required: true
type: string
unity_platform_name:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build_starter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ on:
required: true
apis:
description: 'CSV of apis to build and test'
default: 'analytics,app_check,auth,crashlytics,database,dynamic_links,firestore,functions,installations,messaging,remote_config,storage'
default: 'analytics,app_check,auth,crashlytics,database,dynamic_links,firebaseai,firestore,functions,installations,messaging,remote_config,storage'
required: true
# Additional CMake flags to use
additional_cmake_flags:
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
echo "platform='Android,iOS,tvOS,Windows,macOS,Linux,Playmode'" >> $GITHUB_OUTPUT
echo "release_label=nightly-$(date "+%Y%m%d-%H%M%S")" >> $GITHUB_OUTPUT
echo "release_version=NoVersion" >> $GITHUB_OUTPUT
echo "apis='analytics,app_check,auth,crashlytics,database,dynamic_links,firestore,functions,installations,messaging,remote_config,storage'" >> $GITHUB_OUTPUT
echo "apis='analytics,app_check,auth,crashlytics,database,dynamic_links,firebaseai,firestore,functions,installations,messaging,remote_config,storage'" >> $GITHUB_OUTPUT
echo "unity_version=2021" >> $GITHUB_OUTPUT
echo "should_trigger_package=true" >> $GITHUB_OUTPUT
echo "firebase_cpp_sdk_version=" >> $GITHUB_OUTPUT
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build_tvos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
type: string
apis:
description: 'CSV of apis to build and test'
default: 'analytics,app_check,auth,crashlytics,database,firestore,functions,installations,messaging,remote_config,storage'
default: 'analytics,app_check,auth,crashlytics,database,firebaseai,firestore,functions,installations,messaging,remote_config,storage'
required: true
type: string
unity_platform_name:
Expand All @@ -47,7 +47,7 @@ on:
type: string
apis:
description: 'CSV of apis to build and test'
default: 'analytics,app_check,auth,crashlytics,database,firestore,functions,installations,messaging,remote_config,storage'
default: 'analytics,app_check,auth,crashlytics,database,firebaseai,firestore,functions,installations,messaging,remote_config,storage'
required: true
type: string
unity_platform_name:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
type: string
apis:
description: 'CSV of apis to build and test'
default: 'analytics,app_check,auth,crashlytics,database,dynamic_links,firestore,functions,installations,messaging,remote_config,storage'
default: 'analytics,app_check,auth,crashlytics,database,dynamic_links,firebaseai,firestore,functions,installations,messaging,remote_config,storage'
required: true
type: string
unity_platform_name:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generate_swig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
type: string
apis:
description: 'CSV of apis to build and test'
default: 'analytics,app_check,auth,crashlytics,database,dynamic_links,firestore,functions,installations,messaging,remote_config,storage'
default: 'analytics,app_check,auth,crashlytics,database,dynamic_links,firebaseai,firestore,functions,installations,messaging,remote_config,storage'
required: true
type: string
# Additional CMake flags to use
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:
required: true
apis:
description: 'CSV of apis to build and test'
default: 'analytics,app_check,auth,crashlytics,database,dynamic_links,firestore,functions,installations,messaging,remote_config,storage'
default: 'analytics,app_check,auth,crashlytics,database,dynamic_links,firebaseai,firestore,functions,installations,messaging,remote_config,storage'
required: true
mobile_test_on:
description: 'Run mobile tests on real and/or virtual devices? (value: real, virtual. separated by commas)'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ on:
type: string
apis:
description: 'CSV of apis to build and test'
default: 'analytics,app_check,auth,crashlytics,database,dynamic_links,firestore,functions,installations,messaging,remote_config,storage'
default: 'analytics,app_check,auth,crashlytics,database,dynamic_links,firebaseai,firestore,functions,installations,messaging,remote_config,storage'
required: true
type: string

Expand All @@ -42,7 +42,7 @@ permissions: write-all
env:
# Use SHA256 for hashing files.
hashCommand: "sha256sum"
default_apis: 'analytics,app_check,auth,crashlytics,database,dynamic_links,firestore,functions,installations,messaging,remote_config,storage'
default_apis: 'analytics,app_check,auth,crashlytics,database,dynamic_links,firebaseai,firestore,functions,installations,messaging,remote_config,storage'

jobs:
package_sdks:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Expected output artifact is
python scripts/build_scripts/build_zips.py --platform=<target platform> --targets=<lib1> --targets=<lib2>
```

> **Note:** Supported library names: analytics, app_check, auth, crashlytics, database, dynamic_links, firestore, functions, installations, messaging, remote_config, storage
> **Note:** Supported library names: analytics, app_check, auth, crashlytics, database, dynamic_links, firebaseai, firestore, functions, installations, messaging, remote_config, storage

## Packaging

Expand Down
10 changes: 5 additions & 5 deletions release_build_files/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ unity_pack_file(
PACK_PATH "Firebase/Editor"
)

unity_pack_file(
"${FIREBASE_UNITY_DIR}/docs/firebaseai/FirebaseAIReadme.md"
PACK_PATH "Firebase/Editor"
)

unity_pack_file(
"${FIREBASE_UNITY_DIR}/docs/firestore/FirestoreReadme.md"
PACK_PATH "Firebase/Editor"
Expand Down Expand Up @@ -84,8 +89,3 @@ unity_pack_file(
"${FIREBASE_UNITY_DIR}/docs/storage/StorageReadme.md"
PACK_PATH "Firebase/Editor"
)

unity_pack_file(
"${FIREBASE_UNITY_DIR}/docs/firebaseai/FirebaseAIReadme.md"
PACK_PATH "Firebase/Editor"
)
4 changes: 2 additions & 2 deletions scripts/build_scripts/build_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@

SUPPORT_TARGETS = [
"analytics", "app_check", "auth", "crashlytics", "database", "dynamic_links",
"firestore", "functions", "installations", "messaging", "remote_config",
"storage", "firebaseai"
"firebaseai", "firestore", "functions", "installations", "messaging", "remote_config",
"storage"
]

FLAGS = flags.FLAGS
Expand Down
9 changes: 4 additions & 5 deletions scripts/build_scripts/build_zips.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,12 @@
SUPPORT_PLATFORMS = ("linux", "macos", "windows", "ios", "tvos", "android")
SUPPORT_TARGETS = [
"analytics", "app_check", "auth", "crashlytics", "database", "dynamic_links",
"firestore", "functions", "installations", "messaging", "remote_config",
"storage", "firebaseai"
"firebaseai", "firestore", "functions", "installations", "messaging", "remote_config",
"storage"
]
TVOS_SUPPORT_TARGETS = [
"analytics", "app_check", "auth", "crashlytics", "database", "firestore",
"functions", "installations", "messaging", "remote_config", "storage",
"firebaseai"
"analytics", "app_check", "auth", "crashlytics", "database", "firebaseai", "firestore",
"functions", "installations", "messaging", "remote_config", "storage"
]
SUPPORT_DEVICE = ["device", "simulator"]

Expand Down
2 changes: 1 addition & 1 deletion scripts/create_debug_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@
"crashlytics": "FirebaseCrashlytics.unitypackage",
"database": "FirebaseDatabase.unitypackage",
"dynamic_links": "FirebaseDynamicLinks.unitypackage",
"firebaseai": "FirebaseAI.unitypackage",
"firestore": "FirebaseFirestore.unitypackage",
"functions": "FirebaseFunctions.unitypackage",
"installations": "FirebaseInstallations.unitypackage",
"messaging": "FirebaseMessaging.unitypackage",
"remote_config": "FirebaseRemoteConfig.unitypackage",
"storage": "FirebaseStorage.unitypackage",
"firebaseai": "FirebaseAI.unitypackage",
}

default_package_names = [
Expand Down
34 changes: 17 additions & 17 deletions scripts/gha/integration_testing/build_testapps.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,23 @@
"com.google.firebase.dynamic-links-*.tgz"
]
},
{
"name": "firebaseai",
"full_name": "FirebaseAI",
"captial_name": "FirebaseAI",
"bundle_id": "com.google.firebase.unity.firebaseai.testapp",
"testapp_path": "firebaseai/testapp",
"platforms": ["Android", "Playmode", "iOS", "tvOS", "Windows", "macOS", "Linux"],
"plugins": [
"FirebaseAI.unitypackage"
],
"provision": "Firebase_Dev_Wildcard.mobileprovision",
"upm_packages": [
"com.google.external-dependency-manager-*.tgz",
"com.google.firebase.app-*.tgz",
"com.google.firebase.firebaseai-*.tgz"
]
},
{
"name": "firestore",
"full_name": "FirebaseFirestore",
Expand Down Expand Up @@ -214,23 +231,6 @@
"com.google.firebase.auth-*.tgz",
"com.google.firebase.storage-*.tgz"
]
},
{
"name": "firebaseai",
"full_name": "FirebaseAI",
"captial_name": "FirebaseAI",
"bundle_id": "com.google.firebase.unity.firebaseai.testapp",
"testapp_path": "firebaseai/testapp",
"platforms": ["Android", "Playmode", "iOS", "tvOS", "Windows", "macOS", "Linux"],
"plugins": [
"FirebaseAI.unitypackage"
],
"provision": "Firebase_Dev_Wildcard.mobileprovision",
"upm_packages": [
"com.google.external-dependency-manager-*.tgz",
"com.google.firebase.app-*.tgz",
"com.google.firebase.firebaseai-*.tgz"
]
}
],
"skipped_testapp_files": [
Expand Down
4 changes: 2 additions & 2 deletions scripts/gha/restore_secrets.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@
"crashlytics": "Crashlytics",
"database": "Database",
"dynamic_links": "DynamicLinks",
"firebaseai": "FirebaseAI",
"firestore": "Firestore",
"functions": "Functions",
"installations": "Installations",
"messaging": "Messaging",
"remote_config": "RemoteConfig",
"storage": "Storage",
"firebaseai": "FirebaseAI"
"storage": "Storage"
}


Expand Down
54 changes: 54 additions & 0 deletions unity_packer/exports.json
Original file line number Diff line number Diff line change
Expand Up @@ -2040,6 +2040,60 @@
"unity": "2020.1"
}
}
},
{
"name": "FirebaseAI.unitypackage",
"imports": [
{
"importer": "DefaultImporter",
"paths": [
"Firebase/FirebaseAI/*"
]
},
{
"importer": "DefaultImporter",
"sections": [
"samples",
"documentation"
],
"paths": [
"Firebase/Editor/FirebaseAIReadme.md"
]
}
],
"includes": [
"FirebaseApp.unitypackage",
"SampleCommon.unitypackage"
],
"manifest_path": "Firebase/Editor",
"readme": "Firebase/Editor/FirebaseAIReadme.md",
"changelog": "Firebase/Editor/readme.md",
"license": "Firebase/Editor/LICENSE",
"documentation": "Firebase/Editor/FirebaseAIReadme.md",
"common_manifest": {
"name": "com.google.firebase.firebaseai",
"display_name": "Firebase AI",
"description": [
"Build AI-powered mobile and web apps and features with ",
"the Gemini API using Firebase AI."
],
"keywords": [
"Google",
"Firebase",
"Firebase AI",
"Vertex AI"
],
"author": {
"name": "Google LLC",
"url": "https://firebase.google.com/docs/vertex-ai"
}
},
"export_upm": 1,
"upm_package_config": {
"manifest": {
"unity": "2020.1"
}
}
}
]
}
Loading