Skip to content

Commit b285f28

Browse files
committed
Merge branch 'main' of github.com:firebase/firebase-android-sdk into rpf/add-thinking-budget-support
# Conflicts: # firebase-ai/CHANGELOG.md # firebase-ai/gradle.properties
2 parents 80deba1 + 2886218 commit b285f28

File tree

65 files changed

+1638
-235
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+1638
-235
lines changed

.github/workflows/dataconnect.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@ on:
1313
pull_request:
1414
paths:
1515
- .github/workflows/dataconnect.yml
16+
- gradlew
17+
- build.gradle.kts
18+
- gradle.properties
19+
- gradlew.bat
20+
- settings.gradle.kts
21+
- subprojects.cfg
22+
- 'gradle/**'
23+
- 'plugins/**'
24+
- '!plugins/**/*.md'
1625
- 'firebase-dataconnect/**'
1726
- '!firebase-dataconnect/demo/**'
1827
- '!firebase-dataconnect/scripts/**'
@@ -25,7 +34,7 @@ env:
2534
FDC_JAVA_VERSION: ${{ inputs.javaVersion || '17' }}
2635
FDC_ANDROID_EMULATOR_API_LEVEL: ${{ inputs.androidEmulatorApiLevel || '34' }}
2736
FDC_NODEJS_VERSION: ${{ inputs.nodeJsVersion || '20' }}
28-
FDC_FIREBASE_TOOLS_VERSION: ${{ inputs.firebaseToolsVersion || '14.2.0' }}
37+
FDC_FIREBASE_TOOLS_VERSION: ${{ inputs.firebaseToolsVersion || '14.5.1' }}
2938
FDC_FIREBASE_TOOLS_DIR: /tmp/firebase-tools
3039
FDC_FIREBASE_COMMAND: /tmp/firebase-tools/node_modules/.bin/firebase
3140
FDC_PYTHON_VERSION: ${{ inputs.pythonVersion || '3.13' }}

.github/workflows/dataconnect_demo_app.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818

1919
env:
2020
FDC_NODE_VERSION: ${{ inputs.nodeVersion || '20' }}
21-
FDC_FIREBASE_TOOLS_VERSION: ${{ inputs.firebaseToolsVersion || '14.2.0' }}
21+
FDC_FIREBASE_TOOLS_VERSION: ${{ inputs.firebaseToolsVersion || '14.5.1' }}
2222
FDC_JAVA_VERSION: ${{ inputs.javaVersion || '17' }}
2323
FDC_FIREBASE_TOOLS_DIR: ${{ github.workspace }}/firebase-tools
2424
FDC_FIREBASE_COMMAND: ${{ github.workspace }}/firebase-tools/node_modules/.bin/firebase
@@ -106,12 +106,19 @@ jobs:
106106
set -x
107107
firebase-dataconnect/demo/gradlew \
108108
--project-dir firebase-dataconnect/demo \
109-
--no-daemon \
110109
${{ (inputs.gradleInfoLog && '--info') || '' }} \
111110
--profile \
112-
-PdataConnect.minimalApp.firebaseCommand=${{ env.FDC_FIREBASE_COMMAND }} \
111+
-PdataConnect.demo.firebaseCommand=${{ env.FDC_FIREBASE_COMMAND }} \
113112
assemble test
114113
114+
- name: gradle dokkaGeneratePublicationHtml
115+
run: |
116+
set -x
117+
firebase-dataconnect/demo/gradlew \
118+
--project-dir firebase-dataconnect/demo \
119+
${{ (inputs.gradleInfoLog && '--info') || '' }} \
120+
dokkaGeneratePublicationHtml
121+
115122
- uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
116123
with:
117124
name: apks
@@ -126,6 +133,13 @@ jobs:
126133
if-no-files-found: warn
127134
compression-level: 9
128135

136+
- uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
137+
with:
138+
name: ktdoc
139+
path: firebase-dataconnect/demo/build/dokka/html
140+
if-no-files-found: warn
141+
compression-level: 9
142+
129143
spotlessCheck:
130144
continue-on-error: false
131145
runs-on: ubuntu-latest

.github/workflows/metalava-semver-check.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Metalava SemVer Check
22

33
on:
44
pull_request:
5+
branches:
6+
- main
57

68
jobs:
79
semver-check:

.github/workflows/sessions-e2e.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: set up JDK 17
2424
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
2525
with:
26-
java-version: '11'
26+
java-version: '17'
2727
distribution: 'temurin'
2828
cache: gradle
2929

@@ -39,4 +39,4 @@ jobs:
3939
env:
4040
FTL_RESULTS_BUCKET: fireescape
4141
run: |
42-
./gradlew :firebase-sessions:test-app:deviceCheck withErrorProne -PtargetBackend="prod" -PtriggerCrashes
42+
./gradlew :firebase-sessions:test-app:deviceCheck withErrorProne -PtargetBackend="prod"

.github/workflows/update-cpp-sdk-on-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- name: Setup python
5454
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
5555
with:
56-
python-version: 3.7
56+
python-version: 3.9
5757

5858
- name: Check out firebase-cpp-sdk
5959
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ https://firebase.google.com.
2727

2828
## Getting Started
2929

30-
* Install the latest Android Studio (should be 3.0.1 or later)
30+
* Install the latest Android Studio (should be Meerkat | 2024.3.1 or later)
3131
* Clone the repo (`git clone --recurse-submodules [email protected]:firebase/firebase-android-sdk.git`)
3232
* When cloning the repo, it is important to get the submodules as well. If
3333
you have already cloned the repo without the submodules, you can update the

ci/fireci/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ build-backend = "setuptools.build_meta"
66
name = "fireci"
77
version = "0.1"
88
dependencies = [
9-
"protobuf==3.20.3",
9+
"protobuf==4.25.8",
1010
"click==8.1.7",
1111
"google-cloud-storage==2.18.2",
1212
"mypy==1.6.0",
1313
"numpy==1.24.4",
1414
"pandas==1.5.3",
1515
"PyGithub==1.58.2",
1616
"pystache==0.6.0",
17-
"requests==2.32.2",
17+
"requests==2.32.4",
1818
"seaborn==0.12.2",
1919
"PyYAML==6.0.1",
2020
"termcolor==2.4.0",

firebase-ai/CHANGELOG.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
# Unreleased
2-
32
* [feat] Added support for setting thinking budget for the Gemini models that support it. (#6990)
3+
4+
# 16.2.0
5+
* [changed] Deprecate the `totalBillableCharacters` field (only usable with pre-2.0 models). (#7042)
6+
* [feature] Added support for extra schema properties like `title`, `minItems`, `maxItems`, `minimum`
7+
and `maximum`. As well as support for the `anyOf` schema. (#7013)
8+
9+
# 16.1.0
410
* [fixed] Fixed `FirebaseAI.getInstance` StackOverflowException (#6971)
5-
* [fixed] Fixed an issue that was causing the SDK to send empty `FunctionDeclaration` descriptions to the API.
11+
* [fixed] Fixed an issue that was causing the SDK to send empty `FunctionDeclaration` descriptions to the API.
12+
* [changed] Introduced the `Voice` class, which accepts a voice name, and deprecated the `Voices` class.
13+
* [changed] **Breaking Change**: Updated `SpeechConfig` to take in `Voice` class instead of `Voices` class.
14+
* **Action Required:** Update all references of `SpeechConfig` initialization to use `Voice` class.
15+
* [fixed] Fix incorrect model name in count token requests to the developer API backend
616

717
# 16.0.0
818
* [feature] Initial release of the Firebase AI SDK (`firebase-ai`). This SDK *replaces* the previous

0 commit comments

Comments
 (0)