Skip to content
This repository was archived by the owner on Apr 2, 2025. It is now read-only.

Commit 54e9157

Browse files
VladislavJevremovicArtSabintsev
authored andcommitted
'characters' is deprecated in Swift 4 (#176)
1 parent 171250c commit 54e9157

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Siren.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,8 @@ private extension Siren {
358358
return .option
359359
}
360360

361-
let oldVersion = (currentInstalledVersion).characters.split {$0 == "."}.map { String($0) }.map {Int($0) ?? 0}
362-
let newVersion = (currentAppStoreVersion).characters.split {$0 == "."}.map { String($0) }.map {Int($0) ?? 0}
361+
let oldVersion = (currentInstalledVersion).split {$0 == "."}.map { String($0) }.map {Int($0) ?? 0}
362+
let newVersion = (currentAppStoreVersion).split {$0 == "."}.map { String($0) }.map {Int($0) ?? 0}
363363

364364
guard let newVersionFirst = newVersion.first, let oldVersionFirst = oldVersion.first else {
365365
return alertType // Default value is .Option

0 commit comments

Comments
 (0)