mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Remove iOS 12 availability checks (flutter/engine#49771)
iOS minimum is now 12: https://github.com/flutter/buildroot/pull/808. Remove `@available` checks for that version. Part of https://github.com/flutter/flutter/issues/140474 [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
This commit is contained in:
parent
5e407c3f36
commit
a7e652c7d8
@ -304,14 +304,12 @@ static UITextContentType ToUITextContentType(NSArray<NSString*>* hints) {
|
||||
return UITextContentTypePassword;
|
||||
}
|
||||
|
||||
if (@available(iOS 12.0, *)) {
|
||||
if ([hint isEqualToString:@"oneTimeCode"]) {
|
||||
return UITextContentTypeOneTimeCode;
|
||||
}
|
||||
if ([hint isEqualToString:@"oneTimeCode"]) {
|
||||
return UITextContentTypeOneTimeCode;
|
||||
}
|
||||
|
||||
if ([hint isEqualToString:@"newPassword"]) {
|
||||
return UITextContentTypeNewPassword;
|
||||
}
|
||||
if ([hint isEqualToString:@"newPassword"]) {
|
||||
return UITextContentTypeNewPassword;
|
||||
}
|
||||
|
||||
return hints[0];
|
||||
@ -407,11 +405,10 @@ static BOOL IsFieldPasswordRelated(NSDictionary* configuration) {
|
||||
return YES;
|
||||
}
|
||||
|
||||
if (@available(iOS 12.0, *)) {
|
||||
if ([contentType isEqualToString:UITextContentTypeNewPassword]) {
|
||||
return YES;
|
||||
}
|
||||
if ([contentType isEqualToString:UITextContentTypeNewPassword]) {
|
||||
return YES;
|
||||
}
|
||||
|
||||
return NO;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user