Skip to content

Commit dd5724b

Browse files
authored
chore: add firebase to ios (fireship-io#15)
1 parent 6b1e73c commit dd5724b

File tree

10 files changed

+180
-14
lines changed

10 files changed

+180
-14
lines changed

ios/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ Runner/GeneratedPluginRegistrant.*
3030
!default.mode2v3
3131
!default.pbxuser
3232
!default.perspectivev3
33+
34+
/**/GoogleService-Info.plist

ios/Flutter/Debug.xcconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
12
#include "Generated.xcconfig"

ios/Flutter/Release.xcconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
12
#include "Generated.xcconfig"

ios/Podfile

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Uncomment this line to define a global platform for your project
2+
platform :ios, '10.0'
3+
$FirebaseSDKVersion = '8.3.0'
4+
5+
require 'yaml'
6+
7+
pubspec = YAML.load_file(File.join('..', 'packages/data_providers/pubspec.yaml'))
8+
9+
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
10+
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
11+
12+
project 'Runner', {
13+
'Debug' => :debug,
14+
'Profile' => :release,
15+
'Release' => :release,
16+
}
17+
18+
def flutter_root
19+
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
20+
unless File.exist?(generated_xcode_build_settings_path)
21+
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
22+
end
23+
24+
File.foreach(generated_xcode_build_settings_path) do |line|
25+
matches = line.match(/FLUTTER_ROOT\=(.*)/)
26+
return matches[1].strip if matches
27+
end
28+
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
29+
end
30+
31+
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
32+
33+
flutter_ios_podfile_setup
34+
35+
target 'Runner' do
36+
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
37+
38+
if defined?($FirebaseSDKVersion)
39+
Pod::UI.puts "#{pubspec['name']}: Using user specified Firebase SDK version for FirebaseFirestore framework: '#{$FirebaseSDKVersion}'"
40+
firebase_sdk_version = $FirebaseSDKVersion
41+
else
42+
firebase_core_script = File.join(File.expand_path('..', File.expand_path('..', File.expand_path('..', File.expand_path('..', File.dirname(__FILE__))))), 'firebase_core/firebase_core/ios/firebase_sdk_version.rb')
43+
if File.exist?(firebase_core_script)
44+
require firebase_core_script
45+
firebase_sdk_version = firebase_sdk_version!
46+
Pod::UI.puts "#{pubspec['name']}: Using Firebase SDK version '#{firebase_sdk_version}' defined in 'firebase_core for FirebaseFirestore framework'"
47+
else
48+
raise "Error - unable to locate firebase_ios_sdk.rb script in firebase_core, and no FirebaseSDKVersion specified"
49+
end
50+
end
51+
52+
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => "#{firebase_sdk_version}"
53+
end
54+
55+
post_install do |installer|
56+
installer.pods_project.targets.each do |target|
57+
flutter_additional_ios_build_settings(target)
58+
end
59+
end

ios/Runner.xcodeproj/project.pbxproj

Lines changed: 95 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 50;
6+
objectVersion = 51;
77
objects = {
88

99
/* Begin PBXBuildFile section */
@@ -13,6 +13,8 @@
1313
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
1414
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
1515
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
16+
D520A3F699469DE80A4B7BA7 /* libPods-Runner.a in Frameworks */ = {isa = PBXBuildFile; fileRef = CAD418DB23374B0C3BB355E8 /* libPods-Runner.a */; };
17+
F8A72D4426CCF5DE00016A8B /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = F8A72D4326CCF5DE00016A8B /* GoogleService-Info.plist */; };
1618
/* End PBXBuildFile section */
1719

1820
/* Begin PBXCopyFilesBuildPhase section */
@@ -31,30 +33,48 @@
3133
/* Begin PBXFileReference section */
3234
1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
3335
1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
36+
335DAB3C6A1CF23276B97399 /* Pods-Runner.release-production.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release-production.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release-production.xcconfig"; sourceTree = "<group>"; };
3437
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
38+
4965F3A3BE8CC84D249BA013 /* Pods-Runner.debug-production.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug-production.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug-production.xcconfig"; sourceTree = "<group>"; };
39+
5350D659CEDDB723A7337A99 /* Pods-Runner.profile-production.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile-production.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile-production.xcconfig"; sourceTree = "<group>"; };
3540
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
3641
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
42+
75139CF5C261826C4783932D /* Pods-Runner.debug-development.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.debug-development.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.debug-development.xcconfig"; sourceTree = "<group>"; };
3743
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
44+
88CDF535930532E1A29D26D2 /* Pods-Runner.release-development.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release-development.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release-development.xcconfig"; sourceTree = "<group>"; };
3845
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
3946
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
4047
97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
4148
97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
4249
97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
4350
97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
4451
97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
52+
CAD418DB23374B0C3BB355E8 /* libPods-Runner.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Runner.a"; sourceTree = BUILT_PRODUCTS_DIR; };
53+
F859B3C4CAD530A1436FD780 /* Pods-Runner.profile-development.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile-development.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile-development.xcconfig"; sourceTree = "<group>"; };
54+
F8A72D4326CCF5DE00016A8B /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
55+
F8DC910326CCF90B00C05F7B /* Runner.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Runner.entitlements; sourceTree = "<group>"; };
4556
/* End PBXFileReference section */
4657

4758
/* Begin PBXFrameworksBuildPhase section */
4859
97C146EB1CF9000F007C117D /* Frameworks */ = {
4960
isa = PBXFrameworksBuildPhase;
5061
buildActionMask = 2147483647;
5162
files = (
63+
D520A3F699469DE80A4B7BA7 /* libPods-Runner.a in Frameworks */,
5264
);
5365
runOnlyForDeploymentPostprocessing = 0;
5466
};
5567
/* End PBXFrameworksBuildPhase section */
5668

5769
/* Begin PBXGroup section */
70+
2D39969FCA1D478F16971F89 /* Frameworks */ = {
71+
isa = PBXGroup;
72+
children = (
73+
CAD418DB23374B0C3BB355E8 /* libPods-Runner.a */,
74+
);
75+
name = Frameworks;
76+
sourceTree = "<group>";
77+
};
5878
9740EEB11CF90186004384FC /* Flutter */ = {
5979
isa = PBXGroup;
6080
children = (
@@ -72,6 +92,8 @@
7292
9740EEB11CF90186004384FC /* Flutter */,
7393
97C146F01CF9000F007C117D /* Runner */,
7494
97C146EF1CF9000F007C117D /* Products */,
95+
C0F498B029EC05F6D791991F /* Pods */,
96+
2D39969FCA1D478F16971F89 /* Frameworks */,
7597
);
7698
sourceTree = "<group>";
7799
};
@@ -86,6 +108,8 @@
86108
97C146F01CF9000F007C117D /* Runner */ = {
87109
isa = PBXGroup;
88110
children = (
111+
F8DC910326CCF90B00C05F7B /* Runner.entitlements */,
112+
F8A72D4326CCF5DE00016A8B /* GoogleService-Info.plist */,
89113
97C146FA1CF9000F007C117D /* Main.storyboard */,
90114
97C146FD1CF9000F007C117D /* Assets.xcassets */,
91115
97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
@@ -98,19 +122,34 @@
98122
path = Runner;
99123
sourceTree = "<group>";
100124
};
125+
C0F498B029EC05F6D791991F /* Pods */ = {
126+
isa = PBXGroup;
127+
children = (
128+
4965F3A3BE8CC84D249BA013 /* Pods-Runner.debug-production.xcconfig */,
129+
75139CF5C261826C4783932D /* Pods-Runner.debug-development.xcconfig */,
130+
335DAB3C6A1CF23276B97399 /* Pods-Runner.release-production.xcconfig */,
131+
88CDF535930532E1A29D26D2 /* Pods-Runner.release-development.xcconfig */,
132+
5350D659CEDDB723A7337A99 /* Pods-Runner.profile-production.xcconfig */,
133+
F859B3C4CAD530A1436FD780 /* Pods-Runner.profile-development.xcconfig */,
134+
);
135+
path = Pods;
136+
sourceTree = "<group>";
137+
};
101138
/* End PBXGroup section */
102139

103140
/* Begin PBXNativeTarget section */
104141
97C146ED1CF9000F007C117D /* Runner */ = {
105142
isa = PBXNativeTarget;
106143
buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
107144
buildPhases = (
145+
F11C10861E2DEB2A11368661 /* [CP] Check Pods Manifest.lock */,
108146
9740EEB61CF901F6004384FC /* Run Script */,
109147
97C146EA1CF9000F007C117D /* Sources */,
110148
97C146EB1CF9000F007C117D /* Frameworks */,
111149
97C146EC1CF9000F007C117D /* Resources */,
112150
9705A1C41CF9048500538489 /* Embed Frameworks */,
113151
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
152+
2F79261DC6ED9BD6852C43EF /* [CP] Copy Pods Resources */,
114153
);
115154
buildRules = (
116155
);
@@ -161,6 +200,7 @@
161200
files = (
162201
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
163202
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
203+
F8A72D4426CCF5DE00016A8B /* GoogleService-Info.plist in Resources */,
164204
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
165205
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
166206
);
@@ -169,6 +209,23 @@
169209
/* End PBXResourcesBuildPhase section */
170210

171211
/* Begin PBXShellScriptBuildPhase section */
212+
2F79261DC6ED9BD6852C43EF /* [CP] Copy Pods Resources */ = {
213+
isa = PBXShellScriptBuildPhase;
214+
buildActionMask = 2147483647;
215+
files = (
216+
);
217+
inputFileListPaths = (
218+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-input-files.xcfilelist",
219+
);
220+
name = "[CP] Copy Pods Resources";
221+
outputFileListPaths = (
222+
"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources-${CONFIGURATION}-output-files.xcfilelist",
223+
);
224+
runOnlyForDeploymentPostprocessing = 0;
225+
shellPath = /bin/sh;
226+
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-resources.sh\"\n";
227+
showEnvVarsInLog = 0;
228+
};
172229
3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
173230
isa = PBXShellScriptBuildPhase;
174231
buildActionMask = 2147483647;
@@ -197,6 +254,28 @@
197254
shellPath = /bin/sh;
198255
shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
199256
};
257+
F11C10861E2DEB2A11368661 /* [CP] Check Pods Manifest.lock */ = {
258+
isa = PBXShellScriptBuildPhase;
259+
buildActionMask = 2147483647;
260+
files = (
261+
);
262+
inputFileListPaths = (
263+
);
264+
inputPaths = (
265+
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
266+
"${PODS_ROOT}/Manifest.lock",
267+
);
268+
name = "[CP] Check Pods Manifest.lock";
269+
outputFileListPaths = (
270+
);
271+
outputPaths = (
272+
"$(DERIVED_FILE_DIR)/Pods-Runner-checkManifestLockResult.txt",
273+
);
274+
runOnlyForDeploymentPostprocessing = 0;
275+
shellPath = /bin/sh;
276+
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
277+
showEnvVarsInLog = 0;
278+
};
200279
/* End PBXShellScriptBuildPhase section */
201280

202281
/* Begin PBXSourcesBuildPhase section */
@@ -288,9 +367,10 @@
288367
buildSettings = {
289368
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
290369
CLANG_ENABLE_MODULES = YES;
370+
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
291371
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
292372
ENABLE_BITCODE = NO;
293-
FLAVOR_APP_NAME = "Quizapp";
373+
FLAVOR_APP_NAME = Quizapp;
294374
INFOPLIST_FILE = Runner/Info.plist;
295375
LD_RUNPATH_SEARCH_PATHS = (
296376
"$(inherited)",
@@ -419,9 +499,10 @@
419499
buildSettings = {
420500
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
421501
CLANG_ENABLE_MODULES = YES;
502+
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
422503
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
423504
ENABLE_BITCODE = NO;
424-
FLAVOR_APP_NAME = "Quizapp";
505+
FLAVOR_APP_NAME = Quizapp;
425506
INFOPLIST_FILE = Runner/Info.plist;
426507
LD_RUNPATH_SEARCH_PATHS = (
427508
"$(inherited)",
@@ -442,9 +523,10 @@
442523
buildSettings = {
443524
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
444525
CLANG_ENABLE_MODULES = YES;
526+
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
445527
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
446528
ENABLE_BITCODE = NO;
447-
FLAVOR_APP_NAME = "Quizapp";
529+
FLAVOR_APP_NAME = Quizapp;
448530
INFOPLIST_FILE = Runner/Info.plist;
449531
LD_RUNPATH_SEARCH_PATHS = (
450532
"$(inherited)",
@@ -520,9 +602,11 @@
520602
buildSettings = {
521603
ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-dev";
522604
CLANG_ENABLE_MODULES = YES;
605+
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
523606
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
607+
DEVELOPMENT_TEAM = B7U8436N6H;
524608
ENABLE_BITCODE = NO;
525-
FLAVOR_APP_NAME = "Quizapp";
609+
FLAVOR_APP_NAME = Quizapp;
526610
INFOPLIST_FILE = Runner/Info.plist;
527611
LD_RUNPATH_SEARCH_PATHS = (
528612
"$(inherited)",
@@ -596,9 +680,11 @@
596680
buildSettings = {
597681
ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-dev";
598682
CLANG_ENABLE_MODULES = YES;
683+
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
599684
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
685+
DEVELOPMENT_TEAM = B7U8436N6H;
600686
ENABLE_BITCODE = NO;
601-
FLAVOR_APP_NAME = "Quizapp";
687+
FLAVOR_APP_NAME = Quizapp;
602688
INFOPLIST_FILE = Runner/Info.plist;
603689
LD_RUNPATH_SEARCH_PATHS = (
604690
"$(inherited)",
@@ -669,9 +755,11 @@
669755
buildSettings = {
670756
ASSETCATALOG_COMPILER_APPICON_NAME = "AppIcon-dev";
671757
CLANG_ENABLE_MODULES = YES;
758+
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
672759
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
760+
DEVELOPMENT_TEAM = B7U8436N6H;
673761
ENABLE_BITCODE = NO;
674-
FLAVOR_APP_NAME = "Quizapp";
762+
FLAVOR_APP_NAME = Quizapp;
675763
INFOPLIST_FILE = Runner/Info.plist;
676764
LD_RUNPATH_SEARCH_PATHS = (
677765
"$(inherited)",

ios/Runner.xcworkspace/contents.xcworkspacedata

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ios/Runner/AppDelegate.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
import UIKit
22
import Flutter
3+
import Firebase
34

45
@UIApplicationMain
56
@objc class AppDelegate: FlutterAppDelegate {
67
override func application(
78
_ application: UIApplication,
89
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
910
) -> Bool {
11+
FirebaseApp.configure()
1012
GeneratedPluginRegistrant.register(with: self)
1113
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
1214
}

ios/Runner/Info.plist

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5-
<key>CFBundleLocalizations</key>
6-
<array>
7-
<string>en</string>
8-
</array>
95
<key>CFBundleDevelopmentRegion</key>
106
<string>$(DEVELOPMENT_LANGUAGE)</string>
117
<key>CFBundleDisplayName</key>
@@ -16,6 +12,10 @@
1612
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
1713
<key>CFBundleInfoDictionaryVersion</key>
1814
<string>6.0</string>
15+
<key>CFBundleLocalizations</key>
16+
<array>
17+
<string>en</string>
18+
</array>
1919
<key>CFBundleName</key>
2020
<string>Quizapp</string>
2121
<key>CFBundlePackageType</key>

ios/Runner/Runner.entitlements

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>com.apple.developer.applesignin</key>
6+
<array>
7+
<string>Default</string>
8+
</array>
9+
</dict>
10+
</plist>

packages/data_providers/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ environment:
66
sdk: '>=2.12.0 <3.0.0'
77

88
dependencies:
9-
cloud_firestore: ^2.4.0
10-
firebase_auth: ^3.0.1
11-
firebase_core: ^1.4.0
9+
cloud_firestore: ^2.5.0
10+
firebase_auth: ^3.0.2
11+
firebase_core: ^1.5.0
1212
flutter:
1313
sdk: flutter
1414
google_sign_in: ^5.0.7

0 commit comments

Comments
 (0)