@capgo/native-purchases 0.0.43 → 0.0.45

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.
@@ -49,7 +49,7 @@ repositories {
49
49
 
50
50
 
51
51
  dependencies {
52
- implementation "com.google.guava:guava:31.1-android"
52
+ implementation "com.google.guava:guava:31.1-jre"
53
53
  def billing_version = "6.0.1"
54
54
  implementation "com.android.billingclient:billing:$billing_version"
55
55
  implementation fileTree(dir: 'libs', include: ['*.jar'])
@@ -82,10 +82,10 @@ public class NativePurchasesPlugin: CAPPlugin {
82
82
  Task {
83
83
  do {
84
84
  try await AppStore.sync()
85
- // make finish() calls for all transactions
86
- // for transaction in AppStore.transactions {
87
- // await transaction.finish()
88
- // }
85
+ // make finish() calls for all transactions and consume all consumables
86
+ for transaction in SKPaymentQueue.default().transactions {
87
+ SKPaymentQueue.default().finishTransaction(transaction)
88
+ }
89
89
  call.resolve()
90
90
  } catch {
91
91
  call.reject(error.localizedDescription)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/native-purchases",
3
- "version": "0.0.43",
3
+ "version": "0.0.45",
4
4
  "description": "In-app Subscriptions Made Easy",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",