-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
63 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -144,9 +144,6 @@ | |
} | ||
} | ||
} | ||
}, | ||
"Restore a purchase" : { | ||
|
||
}, | ||
"Status" : { | ||
"localizations" : { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
Packages/MatchCore/Sources/ProductPurchaseLogic/MembershipProduct.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import API | ||
import Foundation | ||
import StoreKit | ||
|
||
public struct MembershipProduct: Equatable { | ||
public let appleProduct: StoreKit.Product | ||
|
||
public var id: String { | ||
appleProduct.id | ||
} | ||
|
||
let isRecommended: Bool | ||
let isMostPopular: Bool | ||
|
||
init(appleProduct: StoreKit.Product, data: API.ProductListQuery.Data.ProductList.MembershipProduct?) { | ||
self.appleProduct = appleProduct | ||
self.isRecommended = data?.isRecommended ?? false | ||
self.isMostPopular = data?.isMostPopular ?? false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters