You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3d53cf9
Browse filesBrowse the repository at this point in the historyBrowse files
[in_app_purchase] Fixes StoreKit 2 date format does not match in_app_purchase_platform_interface
- As per `PurchaseDetails.transactionDate` api documentation, date should be `Milliseconds since epoch` but the migration to StoreKit2 probably mistakenly changed the date format to "yyyy-MM-dd HH:mm:ss". The issue originated in StoreKit2Translators.swift `extension Transaction convertToPigeon` which was using a magic hardcoded formatter dateFormatter.dateFormat = "yyyy-MM-dd HH:mm:ss"
- Fixes both `SK2Transaction.purchaseDate` and `SK2Transaction.expirationDate` and ultimately `PurchaseDetails.transactionDate`
Fixesflutter/flutter#175072
Copy file name to clipboardExpand all lines: packages/in_app_purchase/in_app_purchase_storekit/darwin/in_app_purchase_storekit/Sources/in_app_purchase_storekit/StoreKit2/StoreKit2Messages.g.swift
Copy file name to clipboardExpand all lines: packages/in_app_purchase/in_app_purchase_storekit/darwin/in_app_purchase_storekit/Sources/in_app_purchase_storekit/StoreKit2/StoreKit2Translators.swift
Copy file name to clipboardExpand all lines: packages/in_app_purchase/in_app_purchase_storekit/lib/src/store_kit_2_wrappers/sk2_transaction_wrapper.dart
+16-3Lines changed: 16 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -44,9 +44,13 @@ class SK2Transaction {
44
44
45
45
/// The date that the App Store charged the user's account for a purchased or
46
46
/// restored product, or for a subscription purchase or renewal after a lapse.
47
+
///
48
+
/// Milliseconds since epoch.
47
49
finalString purchaseDate;
48
50
49
51
/// The date the subscription expires or renews.
52
+
///
53
+
/// Milliseconds since epoch.
50
54
finalString? expirationDate;
51
55
52
56
/// The number of consumable products purchased.
@@ -124,8 +128,12 @@ extension on SK2TransactionMessage {
0 commit comments