Fix: Set ios target version 12
Signed-off-by: dab246 <tdvu@linagora.com> (cherry picked from commit 8ff76350eacc720c422954647682caac9da53618)
This commit is contained in:
@@ -23,9 +23,16 @@ struct AuthenticationSSO: Authentication {
|
||||
return false
|
||||
}
|
||||
|
||||
guard let expireDate = expireTime.convertISO8601StringToDate(),
|
||||
expireDate.isBefore(Date.now) else {
|
||||
return true
|
||||
if #available(iOSApplicationExtension 15, *) {
|
||||
guard let expireDate = expireTime.convertISO8601StringToDate(),
|
||||
expireDate.isBefore(Date.now) else {
|
||||
return true
|
||||
}
|
||||
} else {
|
||||
guard let expireDate = expireTime.convertISO8601StringToDate(),
|
||||
expireDate.isBefore(Date()) else {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user