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:
Jenn Magder 2024-01-16 15:09:58 -08:00 committed by GitHub
parent 5e407c3f36
commit a7e652c7d8

View File

@ -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;
}