mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-21 22:05:59 +00:00
Fix IA Converter
This commit is contained in:
1 parent
4929a96134
commit
406f1ab78b
1 file changed
+2
-2
@@ -8,7 +8,7 @@ import StoreKit
|
|||||||
|
|
||||||
class IAPConverter: NSObject, SKRequestDelegate {
|
class IAPConverter: NSObject, SKRequestDelegate {
|
||||||
|
|
||||||
let switchToIAPAfterBundleVersion = "6"
|
let switchToIAPAfterAppVersion = "1.2"
|
||||||
|
|
||||||
static let shared = IAPConverter()
|
static let shared = IAPConverter()
|
||||||
|
|
||||||
@@ -27,7 +27,7 @@ class IAPConverter: NSObject, SKRequestDelegate {
|
|||||||
if case .verified(let appTransaction) = shared {
|
if case .verified(let appTransaction) = shared {
|
||||||
|
|
||||||
let originalVersion = appTransaction.originalAppVersion
|
let originalVersion = appTransaction.originalAppVersion
|
||||||
let newModelVersion = switchToIAPAfterBundleVersion
|
let newModelVersion = switchToIAPAfterAppVersion
|
||||||
log("[LUI] Original Purchased Version: \(originalVersion) | New Model Version: \(newModelVersion)")
|
log("[LUI] Original Purchased Version: \(originalVersion) | New Model Version: \(newModelVersion)")
|
||||||
|
|
||||||
if originalVersion.compare(newModelVersion, options: .numeric) == .orderedAscending {
|
if originalVersion.compare(newModelVersion, options: .numeric) == .orderedAscending {
|
||||||
|
|||||||
Reference in new issue
Block a user