Skip to content

Commit

Permalink
Fix macOS build (#394)
Browse files Browse the repository at this point in the history
There were multiple problems:

1. Firestore iOS SDK needed be upgraded to `10.3.0` in `macos/Podfile`
2. `google_sign_in_dartio ` needed to be upgraded to the latest version
3. Build Phrase script for Firebase produced an error. Therefore, I
removed this build phrase script (is only needed for crashlytics). Will
be fixed, when I try the alpha version of
invertase/flutterfire_cli#14

Closes #393
  • Loading branch information
nilsreichardt authored Feb 27, 2023
1 parent 272fb4f commit 3bacd31
Show file tree
Hide file tree
Showing 10 changed files with 273 additions and 223 deletions.
3 changes: 3 additions & 0 deletions app/macos/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@

# Xcode-related
**/xcuserdata/

# Build artifacts
build/
2 changes: 0 additions & 2 deletions app/macos/Flutter/GeneratedPluginRegistrant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import path_provider_foundation
import pdfx
import purchases_flutter
import shared_preferences_foundation
import shared_preferences_macos
import sign_in_with_apple
import sqflite
import url_launcher_macos
Expand All @@ -48,7 +47,6 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
PdfxPlugin.register(with: registry.registrar(forPlugin: "PdfxPlugin"))
PurchasesFlutterPlugin.register(with: registry.registrar(forPlugin: "PurchasesFlutterPlugin"))
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
SignInWithApplePlugin.register(with: registry.registrar(forPlugin: "SignInWithApplePlugin"))
SqflitePlugin.register(with: registry.registrar(forPlugin: "SqflitePlugin"))
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin"))
Expand Down
2 changes: 1 addition & 1 deletion app/macos/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelpe
flutter_macos_podfile_setup

target 'Runner' do
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '8.9.0'
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '10.3.0'

use_frameworks!
use_modular_headers!
Expand Down
Loading

0 comments on commit 3bacd31

Please sign in to comment.