File tree Expand file tree Collapse file tree 7 files changed +7
-30
lines changed
EmailAuth/FirebaseEmailAuthUI Expand file tree Collapse file tree 7 files changed +7
-30
lines changed Original file line number Diff line number Diff line change @@ -49,9 +49,4 @@ extern NSString *const FUIAuthBundleName;
49
49
*/
50
50
+ (UIImage *)imageNamed : (NSString *)name fromBundle : (nullable NSBundle *)bundle ;
51
51
52
- /* * @fn isFirebasePerformanceAvailable
53
- * @brief Used to work around https://github.com/firebase/firebase-ios-sdk/issues/2283
54
- */
55
- + (BOOL )isFirebasePerformanceAvailable ;
56
-
57
52
@end
Original file line number Diff line number Diff line change @@ -56,8 +56,4 @@ + (UIImage *)imageNamed:(NSString *)name fromBundleNameOrNil:(nullable NSString
56
56
return [UIImage imageWithContentsOfFile: path];
57
57
}
58
58
59
- + (BOOL )isFirebasePerformanceAvailable {
60
- return NSClassFromString (@" FIRPerformance" ) != nil ;
61
- }
62
-
63
59
@end
Original file line number Diff line number Diff line change @@ -291,9 +291,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView
291
291
cell.textField .returnKeyType = UIReturnKeyNext;
292
292
cell.textField .keyboardType = UIKeyboardTypeEmailAddress;
293
293
if (@available (iOS 11.0 , *)) {
294
- if (![FUIAuthUtils isFirebasePerformanceAvailable ]) {
295
- cell.textField .textContentType = UITextContentTypeUsername;
296
- }
294
+ cell.textField .textContentType = UITextContentTypeUsername;
297
295
}
298
296
[cell.textField addTarget: self
299
297
action: @selector (textFieldDidChange )
Original file line number Diff line number Diff line change @@ -182,9 +182,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView
182
182
_emailField.autocorrectionType = UITextAutocorrectionTypeNo;
183
183
_emailField.autocapitalizationType = UITextAutocapitalizationTypeNone;
184
184
if (@available (iOS 11.0 , *)) {
185
- if (![FUIAuthUtils isFirebasePerformanceAvailable ]) {
186
- _emailField.textContentType = UITextContentTypeUsername;
187
- }
185
+ _emailField.textContentType = UITextContentTypeUsername;
188
186
}
189
187
[cell.textField addTarget: self
190
188
action: @selector (textFieldDidChange )
Original file line number Diff line number Diff line change @@ -258,9 +258,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView
258
258
_emailField.autocorrectionType = UITextAutocorrectionTypeNo;
259
259
_emailField.autocapitalizationType = UITextAutocapitalizationTypeNone;
260
260
if (@available (iOS 11.0 , *)) {
261
- if (![FUIAuthUtils isFirebasePerformanceAvailable ]) {
262
- _emailField.textContentType = UITextContentTypeUsername;
263
- }
261
+ _emailField.textContentType = UITextContentTypeUsername;
264
262
}
265
263
} else if (indexPath.row == 1 ) {
266
264
cell.label .text = FUILocalizedString (kStr_Password );
@@ -270,9 +268,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView
270
268
_passwordField.returnKeyType = UIReturnKeyNext;
271
269
_passwordField.keyboardType = UIKeyboardTypeDefault;
272
270
if (@available (iOS 11.0 , *)) {
273
- if (![FUIAuthUtils isFirebasePerformanceAvailable ]) {
274
- _passwordField.textContentType = UITextContentTypePassword;
275
- }
271
+ _passwordField.textContentType = UITextContentTypePassword;
276
272
}
277
273
}
278
274
[cell.textField addTarget: self
Original file line number Diff line number Diff line change @@ -268,9 +268,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView
268
268
_emailField.autocorrectionType = UITextAutocorrectionTypeNo;
269
269
_emailField.autocapitalizationType = UITextAutocapitalizationTypeNone;
270
270
if (@available (iOS 11.0 , *)) {
271
- if (![FUIAuthUtils isFirebasePerformanceAvailable ]) {
272
- _emailField.textContentType = UITextContentTypeUsername;
273
- }
271
+ _emailField.textContentType = UITextContentTypeUsername;
274
272
}
275
273
} else if (indexPath.row == 1 ) {
276
274
cell.label .text = FUILocalizedString (kStr_Name );
@@ -294,9 +292,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView
294
292
_passwordField.returnKeyType = UIReturnKeyNext;
295
293
_passwordField.keyboardType = UIKeyboardTypeDefault;
296
294
if (@available (iOS 11.0 , *)) {
297
- if (![FUIAuthUtils isFirebasePerformanceAvailable ]) {
298
- _passwordField.textContentType = UITextContentTypePassword;
299
- }
295
+ _passwordField.textContentType = UITextContentTypePassword;
300
296
}
301
297
}
302
298
[cell.textField addTarget: self
Original file line number Diff line number Diff line change @@ -222,9 +222,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView
222
222
_passwordField.returnKeyType = UIReturnKeyNext;
223
223
_passwordField.keyboardType = UIKeyboardTypeDefault;
224
224
if (@available (iOS 11.0 , *)) {
225
- if (![FUIAuthUtils isFirebasePerformanceAvailable ]) {
226
- _passwordField.textContentType = UITextContentTypePassword;
227
- }
225
+ _passwordField.textContentType = UITextContentTypePassword;
228
226
}
229
227
[cell.textField addTarget: self
230
228
action: @selector (textFieldDidChange )
You can’t perform that action at this time.
0 commit comments