@capgo/native-purchases 7.12.4 → 7.12.5
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.
|
@@ -39,7 +39,7 @@ import org.json.JSONArray;
|
|
|
39
39
|
@CapacitorPlugin(name = "NativePurchases")
|
|
40
40
|
public class NativePurchasesPlugin extends Plugin {
|
|
41
41
|
|
|
42
|
-
private final String
|
|
42
|
+
private final String pluginVersion = "7.12.5";
|
|
43
43
|
public static final String TAG = "NativePurchases";
|
|
44
44
|
private static final Phaser semaphoreReady = new Phaser(1);
|
|
45
45
|
private BillingClient billingClient;
|
|
@@ -289,8 +289,8 @@ public class NativePurchasesPlugin extends Plugin {
|
|
|
289
289
|
Log.d(TAG, "getPluginVersion() called");
|
|
290
290
|
try {
|
|
291
291
|
final JSObject ret = new JSObject();
|
|
292
|
-
ret.put("version", this.
|
|
293
|
-
Log.d(TAG, "Returning plugin version: " + this.
|
|
292
|
+
ret.put("version", this.pluginVersion);
|
|
293
|
+
Log.d(TAG, "Returning plugin version: " + this.pluginVersion);
|
|
294
294
|
call.resolve(ret);
|
|
295
295
|
} catch (final Exception e) {
|
|
296
296
|
Log.d(TAG, "Error getting plugin version: " + e.getMessage());
|
|
@@ -21,11 +21,11 @@ public class NativePurchasesPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
|
21
21
|
CAPPluginMethod(name: "manageSubscriptions", returnType: CAPPluginReturnPromise)
|
|
22
22
|
]
|
|
23
23
|
|
|
24
|
-
private let
|
|
24
|
+
private let pluginVersion: String = "7.12.5"
|
|
25
25
|
private var transactionUpdatesTask: Task<Void, Never>?
|
|
26
26
|
|
|
27
27
|
@objc func getPluginVersion(_ call: CAPPluginCall) {
|
|
28
|
-
call.resolve(["version": self.
|
|
28
|
+
call.resolve(["version": self.pluginVersion])
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
override public func load() {
|