Skip to content

Commit 30465fc

Browse files
committed
Update firebase-get-to-know-flutter
1 parent 10a2a75 commit 30465fc

File tree

79 files changed

+1025
-873
lines changed

Some content is hidden

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

79 files changed

+1025
-873
lines changed

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

Lines changed: 54 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ steps:
3232
# The following line prevents the package from being accidentally published to
3333
# pub.dev using `flutter pub publish`. This is preferred for private packages.
3434
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
35-
@@ -59,6 +60,8 @@ flutter:
35+
@@ -58,6 +59,8 @@ flutter:
3636
# included with your application, so that you can use the icons in
3737
# the material Icons class.
3838
uses-material-design: true
@@ -51,10 +51,39 @@ steps:
5151
// You can update the following values to match your application needs.
5252
// For more information, see: https://flutter.dev/to/review-gradle-config.
5353
- minSdk = flutter.minSdkVersion
54-
+ minSdk = 21
54+
+ minSdk = 23
5555
targetSdk = flutter.targetSdkVersion
5656
versionCode = flutter.versionCode
5757
versionName = flutter.versionName
58+
- name: Patch macos/Podfile
59+
path: gtk_flutter/macos/Podfile
60+
patch-u: |
61+
--- b/gtk_flutter/step_02/macos/Podfile
62+
+++ a/gtk_flutter/step_02/macos/Podfile
63+
@@ -1,4 +1,4 @@
64+
-platform :osx, '10.14'
65+
+platform :osx, '10.15'
66+
67+
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
68+
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
69+
- name: Patch macos/Runner.xcodeproj/project.pbxproj
70+
xcode-project-path: gtk_flutter/macos/Runner.xcodeproj
71+
macosx-deployment-target: '10.15'
72+
- name: Patch ios/Podfile
73+
path: gtk_flutter/ios/Podfile
74+
patch-u: |
75+
--- a/firebase-get-to-know-flutter/step_02/ios/Podfile
76+
+++ b/firebase-get-to-know-flutter/step_02/ios/Podfile
77+
@@ -1,5 +1,5 @@
78+
# Uncomment this line to define a global platform for your project
79+
-# platform :ios, '12.0'
80+
+platform :ios, '13.0'
81+
82+
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
83+
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
84+
- name: Patch ios/Runner.xcodeproj/project.pbxproj
85+
xcode-project-path: gtk_flutter/ios/Runner.xcodeproj
86+
iphoneos-deployment-target: '13.0'
5887
- name: Remove the README.md
5988
rm: gtk_flutter/README.md
6089
- name: VSCode config
@@ -1670,10 +1699,11 @@ steps:
16701699
platforms: [ macos ]
16711700
path: gtk_flutter
16721701
flutter: build apk
1673-
- name: Build for macOS
1674-
platforms: [ macos ]
1675-
path: gtk_flutter
1676-
flutter: build macos --debug
1702+
# TODO: Re-enable once macOS Firebase configuration builds
1703+
# - name: Build for macOS
1704+
# platforms: [ macos ]
1705+
# path: gtk_flutter
1706+
# flutter: build macos --debug
16771707
- name: Copy step_02
16781708
copydir:
16791709
from: gtk_flutter
@@ -1787,6 +1817,19 @@ steps:
17871817
- name: Add cloud_firestore firebase_auth firebase_core provider firebase_ui_auth
17881818
path: gtk_flutter
17891819
flutter: pub add cloud_firestore firebase_auth firebase_core provider firebase_ui_auth
1820+
- name: Build for iOS
1821+
platforms: [ macos ]
1822+
path: gtk_flutter
1823+
flutter: build ios --debug --simulator
1824+
- name: Build for Android
1825+
platforms: [ macos ]
1826+
path: gtk_flutter
1827+
flutter: build apk
1828+
# TODO: Re-enable once macOS Firebase configuration builds
1829+
# - name: Build for macOS
1830+
# platforms: [ macos ]
1831+
# path: gtk_flutter
1832+
# flutter: build macos --debug
17901833
- name: Copy step_04
17911834
copydir:
17921835
from: gtk_flutter
@@ -2791,10 +2834,11 @@ steps:
27912834
platforms: [ macos ]
27922835
path: gtk_flutter
27932836
flutter: build apk
2794-
- name: Build for macOS
2795-
platforms: [ macos ]
2796-
path: gtk_flutter
2797-
flutter: build macos --debug
2837+
# TODO: Re-enable once macOS Firebase configuration builds
2838+
# - name: Build for macOS
2839+
# platforms: [ macos ]
2840+
# path: gtk_flutter
2841+
# flutter: build macos --debug
27982842
- name: Build for iOS
27992843
platforms: [ macos ]
28002844
path: gtk_flutter

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
*.swp
66
.DS_Store
77
.atom/
8+
.build/
89
.buildlog/
910
.history
1011
.svn/
12+
.swiftpm/
1113
migrate_working_dir/
1214

1315
# IntelliJ related

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

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 = 21
27+
minSdk = 23
2828
targetSdk = flutter.targetSdkVersion
2929
versionCode = flutter.versionCode
3030
versionName = flutter.versionName
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
org.gradle.jvmargs=-Xmx4G -XX:MaxMetaspaceSize=2G -XX:+HeapDumpOnOutOfMemoryError
1+
org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError
22
android.useAndroidX=true
33
android.enableJetifier=true

firebase-get-to-know-flutter/step_02/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip

firebase-get-to-know-flutter/step_02/android/settings.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ pluginManagement {
1818

1919
plugins {
2020
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
21-
id "com.android.application" version "7.3.0" apply false
22-
id "org.jetbrains.kotlin.android" version "1.7.10" apply false
21+
id "com.android.application" version "8.1.0" apply false
22+
id "org.jetbrains.kotlin.android" version "1.8.22" apply false
2323
}
2424

2525
include ":app"

firebase-get-to-know-flutter/step_02/ios/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Uncomment this line to define a global platform for your project
2-
# platform :ios, '12.0'
2+
platform :ios, '13.0'
33

44
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
55
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

0 commit comments

Comments
 (0)