Skip to content

Commit

Permalink
Merge pull request #8 from codykerns/fix-migration
Browse files Browse the repository at this point in the history
Fixes CompatibilityAccessManager's receipt migration.
  • Loading branch information
codykerns authored Nov 23, 2020
2 parents ac48e71 + 4239afb commit ec9b9cc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"repositoryURL": "https://github.com/RevenueCat/purchases-ios.git",
"state": {
"branch": null,
"revision": "73745542e20a348abe4092c8b4c96c223f753d1e",
"version": "3.5.0"
"revision": "1e65086790d4c0cc63712fcc6e8a1a27391223e8",
"version": "3.8.0"
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let package = Package(
],
dependencies: [
// Dependencies declare other packages that this package depends on.
.package(name: "Purchases", url: "https://github.com/RevenueCat/purchases-ios.git", from: "3.1.0"),
.package(name: "Purchases", url: "https://github.com/RevenueCat/purchases-ios.git", from: "3.8.0"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
Expand Down
2 changes: 1 addition & 1 deletion Sources/PurchasesHelper/CompatibilityAccessManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class CompatibilityAccessManager {
let _ = try? Data(contentsOf: receiptURL) {
self.log("Receipt data found. Syncing with Purchases..")

Purchases.shared.restoreTransactions { (info, error) in
Purchases.shared.syncPurchases { (info, error) in
if error == nil {
self.log("Receipt synced.")
}
Expand Down

0 comments on commit ec9b9cc

Please sign in to comment.