Skip to content

Commit 1dc81dc

Browse files
committed
Update firebase-get-to-know-flutter
1 parent 5178115 commit 1dc81dc

File tree

36 files changed

+669
-748
lines changed

36 files changed

+669
-748
lines changed

firebase-get-to-know-flutter/codelab_rebuild.yaml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,21 @@ steps:
1919
- name: Add dependencies
2020
path: gtk_flutter
2121
flutter: pub add google_fonts go_router
22+
- name: Add .gemini directory
23+
mkdir: gtk_flutter/.gemini
24+
- name: Add .gemini/settings.json
25+
path: gtk_flutter/.gemini/settings.json
26+
replace-contents: |
27+
{
28+
"mcpServers": {
29+
"dart": {
30+
"command": "dart",
31+
"args": [
32+
"mcp-server"
33+
]
34+
}
35+
}
36+
}
2237
- name: Patch pubspec.yaml
2338
path: gtk_flutter/pubspec.yaml
2439
patch-u: |
@@ -41,20 +56,6 @@ steps:
4156
4257
# To add assets to your application, add an assets section, like this:
4358
# assets:
44-
- name: Patch android/app/build.gradle.kts
45-
path: gtk_flutter/android/app/build.gradle.kts
46-
patch-u: |
47-
--- b/firebase-get-to-know-flutter/step_02/android/app/build.gradle
48-
+++ a/firebase-get-to-know-flutter/step_02/android/app/build.gradle
49-
@@ -24,7 +24,7 @@ android {
50-
applicationId = "com.example.gtk_flutter"
51-
// You can update the following values to match your application needs.
52-
// For more information, see: https://flutter.dev/to/review-gradle-config.
53-
- minSdk = flutter.minSdkVersion
54-
+ minSdk = 23
55-
targetSdk = flutter.targetSdkVersion
56-
versionCode = flutter.versionCode
57-
versionName = flutter.versionName
5859
- name: Remove the README.md
5960
rm: gtk_flutter/README.md
6061
- name: VSCode config

firebase-get-to-know-flutter/step_02/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ migrate_working_dir/
2727
**/doc/api/
2828
**/ios/Flutter/.last_build_id
2929
.dart_tool/
30-
.flutter-plugins
3130
.flutter-plugins-dependencies
3231
.pub-cache/
3332
.pub/
3433
/build/
34+
/coverage/
3535

3636
# Symbolication related
3737
app.*.symbols

firebase-get-to-know-flutter/step_02/android/app/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ android {
2424
applicationId = "com.example.gtk_flutter"
2525
// You can update the following values to match your application needs.
2626
// For more information, see: https://flutter.dev/to/review-gradle-config.
27-
minSdk = 23
27+
minSdk = flutter.minSdkVersion
2828
targetSdk = flutter.targetSdkVersion
2929
versionCode = flutter.versionCode
3030
versionName = flutter.versionName

firebase-get-to-know-flutter/step_02/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 52 additions & 58 deletions
Large diffs are not rendered by default.

firebase-get-to-know-flutter/step_02/macos/Runner.xcodeproj/project.pbxproj

Lines changed: 48 additions & 57 deletions
Large diffs are not rendered by default.

firebase-get-to-know-flutter/step_02/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ dependencies:
3636
# Use with the CupertinoIcons class for iOS style icons.
3737
cupertino_icons: ^1.0.8
3838
google_fonts: ^6.2.1
39-
go_router: ^15.1.2
39+
go_router: ^16.0.0
4040

4141
dev_dependencies:
4242
flutter_test:
@@ -47,7 +47,7 @@ dev_dependencies:
4747
# activated in the `analysis_options.yaml` file located at the root of your
4848
# package. See that file for information about deactivating specific lint
4949
# rules and activating additional ones.
50-
flutter_lints: ^5.0.0
50+
flutter_lints: ^6.0.0
5151

5252
# For information on the generic Dart part of this file, see the
5353
# following page: https://dart.dev/tools/pub/pubspec

firebase-get-to-know-flutter/step_04/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ migrate_working_dir/
2727
**/doc/api/
2828
**/ios/Flutter/.last_build_id
2929
.dart_tool/
30-
.flutter-plugins
3130
.flutter-plugins-dependencies
3231
.pub-cache/
3332
.pub/
3433
/build/
34+
/coverage/
3535

3636
# Symbolication related
3737
app.*.symbols

firebase-get-to-know-flutter/step_04/android/app/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ android {
2424
applicationId = "com.example.gtk_flutter"
2525
// You can update the following values to match your application needs.
2626
// For more information, see: https://flutter.dev/to/review-gradle-config.
27-
minSdk = 23
27+
minSdk = flutter.minSdkVersion
2828
targetSdk = flutter.targetSdkVersion
2929
versionCode = flutter.versionCode
3030
versionName = flutter.versionName

firebase-get-to-know-flutter/step_04/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 52 additions & 58 deletions
Large diffs are not rendered by default.

firebase-get-to-know-flutter/step_04/macos/Flutter/GeneratedPluginRegistrant.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@
55
import FlutterMacOS
66
import Foundation
77

8+
import app_links
89
import cloud_firestore
910
import desktop_webview_auth
1011
import firebase_auth
1112
import firebase_core
1213
import path_provider_foundation
1314

1415
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
16+
AppLinksMacosPlugin.register(with: registry.registrar(forPlugin: "AppLinksMacosPlugin"))
1517
FLTFirebaseFirestorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseFirestorePlugin"))
1618
DesktopWebviewAuthPlugin.register(with: registry.registrar(forPlugin: "DesktopWebviewAuthPlugin"))
1719
FLTFirebaseAuthPlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseAuthPlugin"))

0 commit comments

Comments
 (0)