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 +2 -3
- package/ios/ExpoIapModule.swift +9 -3
- package/package.json +1 -1
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
|
|
14
|
-
- [Documentation for the latest stable release](https://docs.expo.dev/versions/latest/sdk/iap/)
|
|
13
|
+
- [Documentation](./iap.md)
|
|
15
14
|
|
|
16
|
-
>
|
|
15
|
+
> Sharing your thoughts—any feedback would be greatly appreciated!
|
|
17
16
|
|
|
18
17
|
## Sponsors
|
|
19
18
|
|
package/ios/ExpoIapModule.swift
CHANGED
|
@@ -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
|
-
|
|
385
|
-
|
|
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
|
-
|
|
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)) {
|