expo-iap 2.2.5 → 2.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -90,6 +90,7 @@ class ExpoIapModule :
90
90
  "purchaseStateAndroid" to purchase.purchaseState,
91
91
  "packageNameAndroid" to purchase.packageName,
92
92
  "developerPayloadAndroid" to purchase.developerPayload,
93
+ "platform" to "android",
93
94
  )
94
95
  purchase.accountIdentifiers?.let { accountIdentifiers ->
95
96
  item["obfuscatedAccountIdAndroid"] = accountIdentifiers.obfuscatedAccountId
@@ -106,6 +107,7 @@ class ExpoIapModule :
106
107
  } else {
107
108
  val result =
108
109
  mutableMapOf<String, Any?>(
110
+ "platform" to "android",
109
111
  "responseCode" to billingResult.responseCode,
110
112
  "debugMessage" to billingResult.debugMessage,
111
113
  "extraMessage" to
@@ -181,7 +183,7 @@ class ExpoIapModule :
181
183
  "description" to productDetails.description,
182
184
  "type" to productDetails.productType,
183
185
  "displayName" to productDetails.name,
184
- "platform" to "android", // Add platform identifier
186
+ "platform" to "android",
185
187
  "oneTimePurchaseOfferDetails" to
186
188
  productDetails.oneTimePurchaseOfferDetails?.let {
187
189
  mapOf(
@@ -251,6 +253,7 @@ class ExpoIapModule :
251
253
  "packageNameAndroid" to purchase.packageName,
252
254
  "obfuscatedAccountIdAndroid" to purchase.accountIdentifiers?.obfuscatedAccountId,
253
255
  "obfuscatedProfileIdAndroid" to purchase.accountIdentifiers?.obfuscatedProfileId,
256
+ "platform" to "android",
254
257
  )
255
258
  if (type == BillingClient.ProductType.SUBS) {
256
259
  item["autoRenewingAndroid"] = purchase.isAutoRenewing
@@ -293,6 +296,7 @@ class ExpoIapModule :
293
296
  "dataAndroid" to purchase.originalJson,
294
297
  "signatureAndroid" to purchase.signature,
295
298
  "developerPayload" to purchase.developerPayload,
299
+ "platform" to "android",
296
300
  )
297
301
  items.add(item)
298
302
  }
@@ -47,6 +47,7 @@ func serializeTransaction(_ transaction: Transaction) -> [String: Any?] {
47
47
  "transactionId": String(transaction.id),
48
48
  "transactionDate": transaction.purchaseDate.timeIntervalSince1970 * 1000,
49
49
  "transactionReceipt": jwsReceipt,
50
+ "platform": "ios",
50
51
 
51
52
  "quantityIos": transaction.purchasedQuantity,
52
53
  "originalTransactionDateIos": transaction.originalPurchaseDate.timeIntervalSince1970 * 1000,
@@ -136,6 +137,7 @@ func serializeSubscriptionStatus(_ status: Product.SubscriptionInfo.Status) -> [
136
137
  return [
137
138
  "state": status.state.rawValue,
138
139
  "renewalInfo": serializeRenewalInfo(status.renewalInfo),
140
+ "platform": "ios",
139
141
  ]
140
142
  }
141
143
 
@@ -155,6 +157,7 @@ func serializeRenewalInfo(_ renewalInfo: VerificationResult<Product.Subscription
155
157
  "currentProductID": info.currentProductID,
156
158
  "debugDescription": info.debugDescription,
157
159
  "gracePeriodExpirationDate": info.gracePeriodExpirationDate,
160
+ "platform": "ios",
158
161
  ]
159
162
  }
160
163
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-iap",
3
- "version": "2.2.5",
3
+ "version": "2.2.6",
4
4
  "description": "In App Purchase module in Expo",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",