Skip to content

Commit

Permalink
added localizedPricePerWeek, month and year in a couple more places
Browse files Browse the repository at this point in the history
  • Loading branch information
aboedo committed Jan 4, 2024
1 parent 601c15b commit 884b54e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ public struct TestStoreProduct {
public var localizedTitle: String
public var price: Decimal
public var localizedPriceString: String
public var localizedPricePerWeek: String?
public var localizedPricePerMonth: String?
public var localizedPricePerYear: String?
public var productIdentifier: String
public var productType: StoreProduct.ProductType
public var localizedDescription: String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ + (void)checkAPI {
NSString *currencyCode __unused = product.currencyCode;
NSDecimalNumber *price __unused = product.price;
NSString *localizedPriceString __unused = product.localizedPriceString;
NSString *localizedPricePerWeek __unused = product.localizedPricePerWeek;
NSString *localizedPricePerMonth __unused = product.localizedPricePerMonth;
NSString *localizedPricePerYear __unused = product.localizedPricePerYear;
NSString *productIdentifier __unused = product.productIdentifier;
if (@available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *)) {
BOOL isFamilyShareable __unused = product.isFamilyShareable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ func checkStoreProductAPI() {
// This is mainly for Objective-C
let _: NSDecimalNumber = product.priceDecimalNumber
let _: String = product.localizedPriceString
let _: String? = product.localizedPricePerWeek
let _: String? = product.localizedPricePerMonth
let _: String? = product.localizedPricePerYear

let _: String = product.productIdentifier
if #available(iOS 14.0, macOS 11.0, tvOS 14.0, watchOS 7.0, *) {
let _: Bool = product.isFamilyShareable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ func checkTestStoreProductAPI() {
let localizedTitle: String = testProduct.localizedTitle
let price: Decimal = testProduct.price
let localizedPriceString: String = testProduct.localizedPriceString
let localizedPricePerWeek: String = testProduct.localizedPricePerWeek
let localizedPricePerMonth: String = testProduct.localizedPricePerMonth
let localizedPricePerYear: String = testProduct.localizedPricePerYear
let productIdentifier: String = testProduct.productIdentifier
let productType: StoreProduct.ProductType = testProduct.productType
let localizedDescription: String = testProduct.localizedDescription
Expand Down

0 comments on commit 884b54e

Please sign in to comment.