Skip to content

Commit 29fd1fa

Browse files
committed
Merge branch 'main' into analytics-logInAppPurchase
2 parents e6c3e6d + 668331b commit 29fd1fa

File tree

122 files changed

+9283
-2819
lines changed

Some content is hidden

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

122 files changed

+9283
-2819
lines changed

CHANGELOG.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,61 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## 2025-11-17 - [BoM 4.6.0](https://github.com/firebase/flutterfire/blob/main/VERSIONS.md#flutter-bom-460-2025-11-17)
7+
8+
### Changes
9+
10+
---
11+
12+
Packages with breaking changes:
13+
14+
- There are no breaking changes in this release.
15+
16+
Packages with other changes:
17+
18+
- [`firebase_database_platform_interface` - `v0.3.0`](#firebase_database_platform_interface---v030)
19+
- [`firebase_ai` - `v3.6.0`](#firebase_ai---v360)
20+
- [`firebase_crashlytics` - `v5.0.5`](#firebase_crashlytics---v505)
21+
- [`firebase_data_connect` - `v0.2.2`](#firebase_data_connect---v022)
22+
- [`firebase_database` - `v12.1.0`](#firebase_database---v1210)
23+
- [`firebase_remote_config_web` - `v1.10.1`](#firebase_remote_config_web---v1101)
24+
- [`firebase_database_web` - `v0.2.7+1`](#firebase_database_web---v0271)
25+
- [`firebase_remote_config` - `v6.1.2`](#firebase_remote_config---v612)
26+
27+
Packages with dependency updates only:
28+
29+
> Packages listed below depend on other packages in this workspace that have had changes. Their versions have been incremented to bump the minimum dependency versions of the packages they depend upon in this project.
30+
31+
- `firebase_database_web` - `v0.2.7+1`
32+
- `firebase_remote_config` - `v6.1.2`
33+
34+
---
35+
36+
#### `firebase_database_platform_interface` - `v0.3.0`
37+
38+
- **FEAT**(database): add support for Pigeon. Update iOS to Swift and Android to Kotlin ([#17686](https://github.com/firebase/flutterfire/issues/17686)). ([dac0b0bd](https://github.com/firebase/flutterfire/commit/dac0b0bd033b1c51446aedf0413740ef426877b8))
39+
40+
#### `firebase_ai` - `v3.6.0`
41+
42+
- **FEAT**(firebaseai): Added support for Server Prompt Template ([#17767](https://github.com/firebase/flutterfire/issues/17767)). ([8ff653e5](https://github.com/firebase/flutterfire/commit/8ff653e5bad247fe4f2f72afef45375606509d11))
43+
44+
#### `firebase_crashlytics` - `v5.0.5`
45+
46+
- **FIX**(crashlytics,ios): remove warning regarding legacy firebase_app_id_file.json file ([#17852](https://github.com/firebase/flutterfire/issues/17852)). ([fb93470e](https://github.com/firebase/flutterfire/commit/fb93470e13fc7afc40ee310cc85185e89cb63dd0))
47+
48+
#### `firebase_data_connect` - `v0.2.2`
49+
50+
- **FEAT**(database): add support for Pigeon. Update iOS to Swift and Android to Kotlin ([#17686](https://github.com/firebase/flutterfire/issues/17686)). ([dac0b0bd](https://github.com/firebase/flutterfire/commit/dac0b0bd033b1c51446aedf0413740ef426877b8))
51+
52+
#### `firebase_database` - `v12.1.0`
53+
54+
- **FEAT**(database): add support for Pigeon. Update iOS to Swift and Android to Kotlin ([#17686](https://github.com/firebase/flutterfire/issues/17686)). ([dac0b0bd](https://github.com/firebase/flutterfire/commit/dac0b0bd033b1c51446aedf0413740ef426877b8))
55+
56+
#### `firebase_remote_config_web` - `v1.10.1`
57+
58+
- **FIX**(firebase_remote_config,web): update getSource method call in RemoteConfig class and add test for getAll() method ([#17847](https://github.com/firebase/flutterfire/issues/17847)). ([71138573](https://github.com/firebase/flutterfire/commit/7113857365a8332a5feaac3fd5dbbda1b3a500ff))
59+
60+
661
## 2025-11-03 - [BoM 4.5.0](https://github.com/firebase/flutterfire/blob/main/VERSIONS.md#flutter-bom-450-2025-11-03)
762

863
### Changes

VERSIONS.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,44 @@ This document is listing all the compatible versions of the FlutterFire plugins.
44

55
# Versions
66

7+
## [Flutter BoM 4.6.0 (2025-11-17)](https://github.com/firebase/flutterfire/blob/main/CHANGELOG.md#2025-11-17)
8+
9+
Install this version using FlutterFire CLI
10+
11+
```bash
12+
flutterfire install 4.6.0
13+
```
14+
15+
### Included Native Firebase SDK Versions
16+
| Firebase SDK | Version | Link |
17+
|--------------|---------|------|
18+
| Android SDK | 34.4.0 | [Release Notes](https://firebase.google.com/support/release-notes/android) |
19+
| iOS SDK | 12.4.0 | [Release Notes](https://firebase.google.com/support/release-notes/ios) |
20+
| Web SDK | 12.3.0 | [Release Notes](https://firebase.google.com/support/release-notes/js) |
21+
| Windows SDK | 12.7.0 | [Release Notes](https://firebase.google.com/support/release-notes/cpp-relnotes) |
22+
23+
### FlutterFire Plugin Versions
24+
| Plugin | Version | Dart Version | Flutter Version |
25+
|--------|---------|--------------|-----------------|
26+
| [cloud_firestore](https://pub.dev/packages/cloud_firestore/versions/6.1.0) | 6.1.0 | >=3.2.0 <4.0.0 | >=3.3.0 |
27+
| [cloud_functions](https://pub.dev/packages/cloud_functions/versions/6.0.4) | 6.0.4 | >=3.2.0 <4.0.0 | >=3.3.0 |
28+
| [firebase_ai](https://pub.dev/packages/firebase_ai/versions/3.6.0) | 3.6.0 | >=3.2.0 <4.0.0 | >=3.16.0 |
29+
| [firebase_analytics](https://pub.dev/packages/firebase_analytics/versions/12.0.4) | 12.0.4 | >=3.2.0 <4.0.0 | >=3.3.0 |
30+
| [firebase_app_check](https://pub.dev/packages/firebase_app_check/versions/0.4.1+2) | 0.4.1+2 | >=3.2.0 <4.0.0 | >=3.3.0 |
31+
| [firebase_app_installations](https://pub.dev/packages/firebase_app_installations/versions/0.4.0+4) | 0.4.0+4 | >=3.2.0 <4.0.0 | >=3.3.0 |
32+
| [firebase_auth](https://pub.dev/packages/firebase_auth/versions/6.1.2) | 6.1.2 | >=3.2.0 <4.0.0 | >=3.16.0 |
33+
| [firebase_core](https://pub.dev/packages/firebase_core/versions/4.2.1) | 4.2.1 | >=3.2.0 <4.0.0 | >=3.3.0 |
34+
| [firebase_crashlytics](https://pub.dev/packages/firebase_crashlytics/versions/5.0.5) | 5.0.5 | >=3.2.0 <4.0.0 | >=3.3.0 |
35+
| [firebase_data_connect](https://pub.dev/packages/firebase_data_connect/versions/0.2.2) | 0.2.2 | >=3.2.0 <4.0.0 | >=3.3.0 |
36+
| [firebase_database](https://pub.dev/packages/firebase_database/versions/12.1.0) | 12.1.0 | >=3.2.0 <4.0.0 | >=3.3.0 |
37+
| [firebase_in_app_messaging](https://pub.dev/packages/firebase_in_app_messaging/versions/0.9.0+4) | 0.9.0+4 | >=3.2.0 <4.0.0 | >=3.3.0 |
38+
| [firebase_messaging](https://pub.dev/packages/firebase_messaging/versions/16.0.4) | 16.0.4 | >=3.2.0 <4.0.0 | >=3.3.0 |
39+
| [firebase_ml_model_downloader](https://pub.dev/packages/firebase_ml_model_downloader/versions/0.4.0+4) | 0.4.0+4 | >=3.2.0 <4.0.0 | >=3.3.0 |
40+
| [firebase_performance](https://pub.dev/packages/firebase_performance/versions/0.11.1+2) | 0.11.1+2 | >=3.2.0 <4.0.0 | >=3.3.0 |
41+
| [firebase_remote_config](https://pub.dev/packages/firebase_remote_config/versions/6.1.2) | 6.1.2 | >=3.2.0 <4.0.0 | >=3.3.0 |
42+
| [firebase_storage](https://pub.dev/packages/firebase_storage/versions/13.0.4) | 13.0.4 | >=3.2.0 <4.0.0 | >=3.3.0 |
43+
44+
745
## [Flutter BoM 4.5.0 (2025-11-03)](https://github.com/firebase/flutterfire/blob/main/CHANGELOG.md#2025-11-03)
846

947
Install this version using FlutterFire CLI

packages/firebase_ai/firebase_ai/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 3.6.0
2+
3+
- **FEAT**(firebaseai): Added support for Server Prompt Template ([#17767](https://github.com/firebase/flutterfire/issues/17767)). ([8ff653e5](https://github.com/firebase/flutterfire/commit/8ff653e5bad247fe4f2f72afef45375606509d11))
4+
15
## 3.5.0
26

37
- **FEAT**(firebase_ai): add malformedFunctionCall reason to FinishReason enum and update tests ([#17834](https://github.com/firebase/flutterfire/issues/17834)). ([38fc083b](https://github.com/firebase/flutterfire/commit/38fc083b0f940158cb9aeb01fe9e9b96ed162e70))

packages/firebase_ai/firebase_ai/example/lib/main.dart

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import 'pages/json_schema_page.dart';
3131
import 'pages/schema_page.dart';
3232
import 'pages/token_count_page.dart';
3333
import 'pages/video_page.dart';
34+
import 'pages/server_template_page.dart';
3435

3536
void main() async {
3637
WidgetsFlutterBinding.ensureInitialized();
@@ -199,6 +200,11 @@ class _HomeScreenState extends State<HomeScreen> {
199200
model: currentModel,
200201
useVertexBackend: useVertexBackend,
201202
);
203+
case 11:
204+
return ServerTemplatePage(
205+
title: 'Server Template',
206+
useVertexBackend: useVertexBackend,
207+
);
202208

203209
default:
204210
// Fallback to the first page in case of an unexpected index
@@ -227,18 +233,15 @@ class _HomeScreenState extends State<HomeScreen> {
227233
style: TextStyle(
228234
fontSize: 12,
229235
color: widget.useVertexBackend
230-
? Theme.of(context)
231-
.colorScheme
232-
.onSurface
233-
.withValues(alpha: 0.7)
236+
? Theme.of(context).colorScheme.onSurface.withAlpha(180)
234237
: Theme.of(context).colorScheme.primary,
235238
),
236239
),
237240
Switch(
238241
value: widget.useVertexBackend,
239242
onChanged: widget.onBackendChanged,
240-
activeTrackColor: Colors.green.withValues(alpha: 0.5),
241-
inactiveTrackColor: Colors.blueGrey.withValues(alpha: 0.5),
243+
activeTrackColor: Colors.green.withAlpha(128),
244+
inactiveTrackColor: Colors.blueGrey.withAlpha(128),
242245
activeThumbColor: Colors.green,
243246
inactiveThumbColor: Colors.blueGrey,
244247
),
@@ -251,7 +254,7 @@ class _HomeScreenState extends State<HomeScreen> {
251254
: Theme.of(context)
252255
.colorScheme
253256
.onSurface
254-
.withValues(alpha: 0.7),
257+
.withAlpha(180),
255258
),
256259
),
257260
],
@@ -273,7 +276,7 @@ class _HomeScreenState extends State<HomeScreen> {
273276
unselectedFontSize: 9,
274277
selectedItemColor: Theme.of(context).colorScheme.primary,
275278
unselectedItemColor: widget.useVertexBackend
276-
? Theme.of(context).colorScheme.onSurface.withValues(alpha: 0.7)
279+
? Theme.of(context).colorScheme.onSurface.withAlpha(180)
277280
: Colors.grey,
278281
items: const <BottomNavigationBarItem>[
279282
BottomNavigationBarItem(
@@ -333,6 +336,13 @@ class _HomeScreenState extends State<HomeScreen> {
333336
label: 'Live',
334337
tooltip: 'Live Stream',
335338
),
339+
BottomNavigationBarItem(
340+
icon: Icon(
341+
Icons.storage,
342+
),
343+
label: 'Server',
344+
tooltip: 'Server Template',
345+
),
336346
],
337347
currentIndex: widget.selectedIndex,
338348
onTap: _onItemTapped,

packages/firebase_ai/firebase_ai/example/lib/pages/image_prompt_page.dart

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14-
1514
import 'package:flutter/material.dart';
1615
import 'package:firebase_ai/firebase_ai.dart';
1716
import 'package:flutter/services.dart';
@@ -65,11 +64,13 @@ class _ImagePromptPageState extends State<ImagePromptPage> {
6564
var content = _generatedContent[idx];
6665
return MessageWidget(
6766
text: content.text,
68-
image: Image.memory(
69-
content.imageBytes!,
70-
cacheWidth: 400,
71-
cacheHeight: 400,
72-
),
67+
image: content.imageBytes == null
68+
? null
69+
: Image.memory(
70+
content.imageBytes!,
71+
cacheWidth: 400,
72+
cacheHeight: 400,
73+
),
7374
isFromUser: content.fromUser ?? false,
7475
);
7576
},

0 commit comments

Comments
 (0)