# Run with tooling from https://github.com/flutter/codelabs/tree/main/tooling/codelab_rebuild
name: Place Tracker rebuild script
steps:
- name: Remove runner
rmdirs:
- android
- ios
- web
- name: Rebuild Runner
flutter: create --org dev.flutter --platform android,ios,web .
- name: Strip DEVELOPMENT_TEAM
strip-lines-containing: DEVELOPMENT_TEAM =
path: ios/Runner.xcodeproj/project.pbxproj
- name: Update deps
flutter: pub upgrade --major-versions
- name: Patch android/app/build.gradle
path: android/app/build.gradle
patch-u: |
--- b/place_tracker/android/app/build.gradle
+++ a/place_tracker/android/app/build.gradle
@@ -43,9 +43,8 @@ android {
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "dev.flutter.place_tracker"
- // You can update the following values to match your application needs.
- // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
- minSdkVersion flutter.minSdkVersion
+ // Google Maps requires a minimum SDK version of 20
+ minSdkVersion 20
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
- name: Patch android/app/src/main/AndroidManifest.xml
path: android/app/src/main/AndroidManifest.xml
patch-u: |
--- b/place_tracker/android/app/src/main/AndroidManifest.xml
+++ a/place_tracker/android/app/src/main/AndroidManifest.xml
@@ -3,6 +3,12 @@
android:label="place_tracker"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
+
+
Bool {
+ GMSServices.provideAPIKey("YOUR KEY HERE")
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
- name: Patch ios/Flutter/AppFrameworkInfo.plist
path: ios/Flutter/AppFrameworkInfo.plist
patch-u: |
--- b/place_tracker/ios/Flutter/AppFrameworkInfo.plist
+++ a/place_tracker/ios/Flutter/AppFrameworkInfo.plist
@@ -21,6 +21,6 @@
CFBundleVersion
1.0
MinimumOSVersion
- 11.0
+ 13.0
- name: Patch ios/Podfile
path: ios/Podfile
patch-u: |
--- b/place_tracker/ios/Podfile
+++ a/place_tracker/ios/Podfile
@@ -1,5 +1,5 @@
-# Uncomment this line to define a global platform for your project
-# platform :ios, '11.0'
+# Google Maps requires iOS 13: https://developers.google.com/maps/documentation/ios-sdk/overview#supported_platforms
+platform :ios, '13.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
- name: Patch web/index.html
path: web/index.html
patch-u: |
--- b/place_tracker/web/index.html
+++ a/place_tracker/web/index.html
@@ -32,6 +32,9 @@
place_tracker
+
+
+