File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
FirebaseFacebookAuthUI/Sources Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -318,10 +318,10 @@ - (void)configureProvider {
318318 NSString *facebookDisplayName = [bundle objectForInfoDictionaryKey: kFacebookDisplayName ];
319319
320320 if (facebookAppId == nil || facebookDisplayName == nil ) {
321- // Always use the app bundle to look up Facebook values.
322- bundle = [ NSBundle mainBundle ];
323- facebookAppId = [bundle objectForInfoDictionaryKey: kFacebookAppId ];
324- facebookDisplayName = [bundle objectForInfoDictionaryKey: kFacebookDisplayName ];
321+ bundle = [FUIAuthUtils authUIBundle ]; // triggered in tests
322+ facebookAppId = facebookAppId ?: [bundle objectForInfoDictionaryKey: kFacebookAppId ];
323+ facebookDisplayName = facebookDisplayName ?:
324+ [bundle objectForInfoDictionaryKey: kFacebookDisplayName ];
325325 }
326326
327327 if (!(facebookAppId && facebookDisplayName)) {
You can’t perform that action at this time.
0 commit comments