expo-iap 2.3.5-rc.2 → 2.3.5-rc.4

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.
package/README.md CHANGED
@@ -10,10 +10,9 @@ The `expo-iap` module has been migrated from [react-native-iap](https://github.c
10
10
 
11
11
  # API documentation
12
12
 
13
- - [Documentation for the main branch](https://github.com/expo/expo/blob/main/docs/pages/versions/unversioned/sdk/iap.md)
14
- - [Documentation for the latest stable release](https://docs.expo.dev/versions/latest/sdk/iap/)
13
+ - [Documentation](./iap.md)
15
14
 
16
- > The updated documentation hasn’t been published to Expo yet. I’d love for you to take a look at [iap.md](./iap.md) and share your thoughts—any feedback would be greatly appreciated!
15
+ > Sharing your thoughts—any feedback would be greatly appreciated!
17
16
 
18
17
  ## Sponsors
19
18
 
@@ -381,8 +381,13 @@ public class ExpoIapModule: Module {
381
381
  let transaction = try self.checkVerified(verification)
382
382
 
383
383
  // Debug: Log JWS representation
384
- logDebug("buyProduct JWS: exists")
385
- logDebug("buyProduct JWS length: \(verification.jwsRepresentation.count)")
384
+ let jwsRepresentation = verification.jwsRepresentation
385
+ if !jwsRepresentation.isEmpty {
386
+ logDebug("buyProduct JWS: exists")
387
+ logDebug("buyProduct JWS length: \(jwsRepresentation.count)")
388
+ } else {
389
+ logDebug("buyProduct JWS: empty string")
390
+ }
386
391
 
387
392
  if andDangerouslyFinishTransactionAutomatically {
388
393
  await transaction.finish()
@@ -870,7 +875,8 @@ public class ExpoIapModule: Module {
870
875
  if let previousWillAutoRenew = previousStatuses[sku],
871
876
  previousWillAutoRenew != currentWillAutoRenew {
872
877
 
873
- var purchaseMap = serializeTransaction(transaction)
878
+ // Use the jwsRepresentation when serializing the transaction
879
+ var purchaseMap = serializeTransaction(transaction, jwsRepresentationIos: result.jwsRepresentation)
874
880
 
875
881
  if case .verified(let renewalInfo) = status.renewalInfo {
876
882
  if let renewalInfoDict = serializeRenewalInfo(.verified(renewalInfo)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-iap",
3
- "version": "2.3.5-rc.2",
3
+ "version": "2.3.5-rc.4",
4
4
  "description": "In App Purchase module in Expo",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",