Add iOS 18.4 and Unicode 16 support
This commit is contained in:
@@ -17,6 +17,7 @@ public enum EmojiManager {
|
||||
case v14 = 14
|
||||
case v15 = 15
|
||||
case v15_1 = 15.1
|
||||
case v16 = 16
|
||||
|
||||
public var fileName: String {
|
||||
return "emojis_v\(versionIdentifier)"
|
||||
@@ -32,11 +33,15 @@ public enum EmojiManager {
|
||||
return "15.0"
|
||||
case .v15_1:
|
||||
return "15.1"
|
||||
case .v16:
|
||||
return "16.0"
|
||||
}
|
||||
}
|
||||
|
||||
public static func getSupportedVersion() -> Version {
|
||||
if #available(iOS 17.4, *) {
|
||||
if #available(iOS 18.4, *) {
|
||||
return .v16
|
||||
} else if #available(iOS 17.4, *) {
|
||||
return .v15_1
|
||||
} else if #available(iOS 16.4, *) {
|
||||
return .v15
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -18,7 +18,7 @@ struct EmojiDownloader: ParsableCommand, AsyncParsableCommand {
|
||||
)
|
||||
|
||||
@Argument var path: String
|
||||
@Option(name: .shortAndLong) var version: EmojiManager.Version = .v15
|
||||
@Option(name: .shortAndLong) var version: EmojiManager.Version = .v16
|
||||
|
||||
private func getPath() -> String {
|
||||
#if DEBUG
|
||||
|
||||
Reference in New Issue
Block a user