Skip to content

Commit

Permalink
Exposed app purchase date in objc interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
czarny committed Jan 30, 2024
1 parent a4ee5c3 commit cac248c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion Sources/InAppReceipt.swift
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,13 @@ public extension InAppReceipt
{
return payload.originalAppVersion
}


/// The date of the app that was originally purchased.
var originalPurchaseDate: Date?
{
return payload.originalPurchaseDate
}

/// In-app purchase's receipts
var purchases: [InAppPurchase]
{
Expand Down
8 changes: 7 additions & 1 deletion Sources/Objc/InAppReceipt+Objc.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,13 @@ import TPInAppReceipt
{
return wrappedReceipt.originalAppVersion
}


/// The date of the app that was originally purchased.
var originalPurchaseDate: Date?
{
return wrappedReceipt.originalPurchaseDate
}

/// In-app purchase's receipts
var purchases: [InAppPurchase_Objc]
{
Expand Down

0 comments on commit cac248c

Please sign in to comment.