File tree Expand file tree Collapse file tree 3 files changed +14
-7
lines changed
samples/objc/FirebaseUI-demo-objc/Samples/Auth Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -204,8 +204,7 @@ __attribute__((deprecated("Instead use authUI:didSignInWithAuthDataResult:error:
204
204
/* * @property shouldAutoUpgradeAnonymousUsers
205
205
@brief Whether to enable auto upgrading of anonymous accounts, defaults to NO.
206
206
*/
207
- @property (nonatomic , assign , getter =shouldAutoUpgradeAnonymousUsers) BOOL
208
- shouldAutoUpgradeAnonymousUsers;
207
+ @property (nonatomic , assign , getter =shouldAutoUpgradeAnonymousUsers) BOOL autoUpgradeAnonymousUsers;
209
208
210
209
/* * @property privacyPolicyURL
211
210
@brief The URL of your app's Privacy Policy. If not nil, a privacy policy notice is
Original file line number Diff line number Diff line change @@ -256,14 +256,18 @@ + (void)showAlertWithTitle:(nullable NSString *)title
256
256
[UIAlertAction actionWithTitle: actionTitle
257
257
style: UIAlertActionStyleDefault
258
258
handler: ^(UIAlertAction *_Nonnull action) {
259
- actionHandler ();
259
+ if (actionHandler) {
260
+ actionHandler ();
261
+ }
260
262
}];
261
263
[alertController addAction: okAction];
262
264
UIAlertAction *cancelAction =
263
265
[UIAlertAction actionWithTitle: FUILocalizedString (kStr_Cancel )
264
266
style: UIAlertActionStyleCancel
265
267
handler: ^(UIAlertAction * _Nonnull action) {
266
- cancelHandler ();
268
+ if (cancelHandler) {
269
+ cancelHandler ();
270
+ }
267
271
}];
268
272
[alertController addAction: cancelAction];
269
273
[presentingViewController presentViewController: alertController animated: YES completion: nil ];
@@ -299,14 +303,18 @@ + (void)showSignInAlertWithEmail:(NSString *)email
299
303
[UIAlertAction actionWithTitle: providerSignInLabel
300
304
style: UIAlertActionStyleDefault
301
305
handler: ^(UIAlertAction *_Nonnull action) {
302
- signinHandler ();
306
+ if (signinHandler) {
307
+ signinHandler ();
308
+ }
303
309
}];
304
310
[alertController addAction: signInAction];
305
311
UIAlertAction *cancelAction =
306
312
[UIAlertAction actionWithTitle: FUILocalizedString (kStr_Cancel )
307
313
style: UIAlertActionStyleCancel
308
314
handler: ^(UIAlertAction * _Nonnull action) {
309
- cancelHandler ();
315
+ if (cancelHandler) {
316
+ cancelHandler ();
317
+ }
310
318
}];
311
319
[alertController addAction: cancelAction];
312
320
[presentingViewController presentViewController: alertController animated: YES completion: nil ];
Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ - (IBAction)onAuthUIDelegateChanged:(UISwitch *)sender {
231
231
232
232
- (IBAction )onAuthorization : (id )sender {
233
233
if (!_auth.currentUser || _auth.currentUser .isAnonymous ) {
234
- FUIAuth.defaultAuthUI .shouldAutoUpgradeAnonymousUsers = YES ;
234
+ FUIAuth.defaultAuthUI .autoUpgradeAnonymousUsers = YES ;
235
235
_authUI.providers = [self getListOfIDPs ];
236
236
_authUI.signInWithEmailHidden = ![self isEmailEnabled ];
237
237
You can’t perform that action at this time.
0 commit comments