mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-02-07 08:22:07 +00:00
Bind migrations to build numbers
This commit is contained in:
parent
082ffa3cb1
commit
12e0a55f7a
@ -46,9 +46,12 @@ extension ConnectionService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// replace migration logic here
|
// replace migration logic here
|
||||||
|
let build = json["build"] as? Int ?? 0
|
||||||
|
if build <= 1084 {
|
||||||
try migrateToWrappedSessionConfiguration(&json)
|
try migrateToWrappedSessionConfiguration(&json)
|
||||||
try migrateToBaseConfiguration(&json)
|
try migrateToBaseConfiguration(&json)
|
||||||
try migrateToBuildNumber(&json)
|
try migrateToBuildNumber(&json)
|
||||||
|
}
|
||||||
|
|
||||||
return try JSONSerialization.data(withJSONObject: json, options: [])
|
return try JSONSerialization.data(withJSONObject: json, options: [])
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user