Skip to content

Commit 9cc3c67

Browse files
authored
refactor(ios): debug if google file not found (#104)
1 parent fdcbbf8 commit 9cc3c67

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ios/Plugin/Plugin.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ public class GoogleAuth: CAPPlugin {
1313
var forceAuthCode: Bool = false;
1414

1515
public override func load() {
16-
guard let path = Bundle.main.path(forResource: "GoogleService-Info", ofType: "plist") else {return}
16+
guard let path = Bundle.main.path(forResource: "GoogleService-Info", ofType: "plist") else {
17+
print("GoogleService-Info.plist not found");
18+
return;
19+
}
1720
guard let dict = NSDictionary(contentsOfFile: path) as? [String: AnyObject] else {return}
1821
guard let clientId = dict["CLIENT_ID"] as? String else {return}
1922
googleSignIn.clientID = clientId;

0 commit comments

Comments
 (0)