Skip to content

Commit 39542fe

Browse files
committed
Integrasikan firebase auth untuk platform macOS
1 parent 23d54bb commit 39542fe

File tree

4 files changed

+51
-4
lines changed

4 files changed

+51
-4
lines changed

macos/Flutter/GeneratedPluginRegistrant.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@
55
import FlutterMacOS
66
import Foundation
77

8+
import firebase_auth
9+
import firebase_core
810
import path_provider_macos
911

1012
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
13+
FLTFirebaseAuthPlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseAuthPlugin"))
14+
FLTFirebaseCorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseCorePlugin"))
1115
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
1216
}

macos/Runner.xcodeproj/project.pbxproj

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; };
2727
33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; };
2828
33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; };
29+
DB1B49B4264F6894007958C1 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = DB1B49B3264F6894007958C1 /* GoogleService-Info.plist */; };
2930
F472ABB2ECF88F61B90AAEB4 /* Pods_Runner.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 49CCF52329CB4839FD25F41A /* Pods_Runner.framework */; };
3031
/* End PBXBuildFile section */
3132

@@ -72,6 +73,7 @@
7273
5D4BFA4C3C58266FA63C466B /* Pods-Runner.profile.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.profile.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig"; sourceTree = "<group>"; };
7374
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = "<group>"; };
7475
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = "<group>"; };
76+
DB1B49B3264F6894007958C1 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
7577
E0D8B1EDC5B442B6F0DDEC1E /* Pods-Runner.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Runner.release.xcconfig"; path = "Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"; sourceTree = "<group>"; };
7678
/* End PBXFileReference section */
7779

@@ -142,6 +144,7 @@
142144
33FAB671232836740065AC1E /* Runner */ = {
143145
isa = PBXGroup;
144146
children = (
147+
DB1B49B3264F6894007958C1 /* GoogleService-Info.plist */,
145148
33CC10F02044A3C60003C045 /* AppDelegate.swift */,
146149
33CC11122044BFA00003C045 /* MainFlutterWindow.swift */,
147150
33E51913231747F40026EE4D /* DebugProfile.entitlements */,
@@ -159,7 +162,6 @@
159162
E0D8B1EDC5B442B6F0DDEC1E /* Pods-Runner.release.xcconfig */,
160163
5D4BFA4C3C58266FA63C466B /* Pods-Runner.profile.xcconfig */,
161164
);
162-
name = Pods;
163165
path = Pods;
164166
sourceTree = "<group>";
165167
};
@@ -248,6 +250,7 @@
248250
files = (
249251
33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */,
250252
33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */,
253+
DB1B49B4264F6894007958C1 /* GoogleService-Info.plist in Resources */,
251254
);
252255
runOnlyForDeploymentPostprocessing = 0;
253256
};
@@ -404,7 +407,7 @@
404407
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
405408
GCC_WARN_UNUSED_FUNCTION = YES;
406409
GCC_WARN_UNUSED_VARIABLE = YES;
407-
MACOSX_DEPLOYMENT_TARGET = 10.11;
410+
MACOSX_DEPLOYMENT_TARGET = 10.12;
408411
MTL_ENABLE_DEBUG_INFO = NO;
409412
SDKROOT = macosx;
410413
SWIFT_COMPILATION_MODE = wholemodule;
@@ -483,7 +486,7 @@
483486
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
484487
GCC_WARN_UNUSED_FUNCTION = YES;
485488
GCC_WARN_UNUSED_VARIABLE = YES;
486-
MACOSX_DEPLOYMENT_TARGET = 10.11;
489+
MACOSX_DEPLOYMENT_TARGET = 10.12;
487490
MTL_ENABLE_DEBUG_INFO = YES;
488491
ONLY_ACTIVE_ARCH = YES;
489492
SDKROOT = macosx;
@@ -530,7 +533,7 @@
530533
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
531534
GCC_WARN_UNUSED_FUNCTION = YES;
532535
GCC_WARN_UNUSED_VARIABLE = YES;
533-
MACOSX_DEPLOYMENT_TARGET = 10.11;
536+
MACOSX_DEPLOYMENT_TARGET = 10.12;
534537
MTL_ENABLE_DEBUG_INFO = NO;
535538
SDKROOT = macosx;
536539
SWIFT_COMPILATION_MODE = wholemodule;

macos/Runner/DebugProfile.entitlements

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
<true/>
77
<key>com.apple.security.cs.allow-jit</key>
88
<true/>
9+
<key>com.apple.security.network.client</key>
10+
<true/>
911
<key>com.apple.security.network.server</key>
1012
<true/>
1113
</dict>
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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>CLIENT_ID</key>
6+
<string>396467899033-as841terfhkd7ffkpdrr7sd7amrljsam.apps.googleusercontent.com</string>
7+
<key>REVERSED_CLIENT_ID</key>
8+
<string>com.googleusercontent.apps.396467899033-as841terfhkd7ffkpdrr7sd7amrljsam</string>
9+
<key>ANDROID_CLIENT_ID</key>
10+
<string>396467899033-f369devr0bkl7mretk44m7u2gouv12sj.apps.googleusercontent.com</string>
11+
<key>API_KEY</key>
12+
<string>AIzaSyAv-t7INr3Rm0R-7FCqHUYsAjZCHkjDOGo</string>
13+
<key>GCM_SENDER_ID</key>
14+
<string>396467899033</string>
15+
<key>PLIST_VERSION</key>
16+
<string>1</string>
17+
<key>BUNDLE_ID</key>
18+
<string>id.net.bengkelrobot.flutterMuzikApp</string>
19+
<key>PROJECT_ID</key>
20+
<string>flutter-all-in-one-testing</string>
21+
<key>STORAGE_BUCKET</key>
22+
<string>flutter-all-in-one-testing.appspot.com</string>
23+
<key>IS_ADS_ENABLED</key>
24+
<false></false>
25+
<key>IS_ANALYTICS_ENABLED</key>
26+
<false></false>
27+
<key>IS_APPINVITE_ENABLED</key>
28+
<true></true>
29+
<key>IS_GCM_ENABLED</key>
30+
<true></true>
31+
<key>IS_SIGNIN_ENABLED</key>
32+
<true></true>
33+
<key>GOOGLE_APP_ID</key>
34+
<string>1:396467899033:ios:451a2b6c4df88c7a664608</string>
35+
<key>DATABASE_URL</key>
36+
<string>https://flutter-all-in-one-testing.firebaseio.com</string>
37+
</dict>
38+
</plist>

0 commit comments

Comments
 (0)