Skip to content

Commit 60b9765

Browse files
committed
fix: pluginVersion lint issue
1 parent ec80f87 commit 60b9765

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

android/src/main/java/app/capgo/pay/PayPlugin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
@CapacitorPlugin(name = "Pay")
2727
public class PayPlugin extends Plugin {
2828

29-
private final String PLUGIN_VERSION = "7.1.6";
29+
private final String pluginVersion = "7.1.6";
3030

3131
private static final int LOAD_PAYMENT_DATA_REQUEST_CODE = 8001;
3232

@@ -242,7 +242,7 @@ private static JSONObject defaultIsReadyToPayRequest() throws JSONException {
242242
public void getPluginVersion(final PluginCall call) {
243243
try {
244244
final JSObject ret = new JSObject();
245-
ret.put("version", this.PLUGIN_VERSION);
245+
ret.put("version", this.pluginVersion);
246246
call.resolve(ret);
247247
} catch (final Exception e) {
248248
call.reject("Could not get plugin version", e);

ios/Sources/PayPlugin/PayPlugin.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import PassKit
55

66
@objc(PayPlugin)
77
public class PayPlugin: CAPPlugin, CAPBridgedPlugin, PKPaymentAuthorizationControllerDelegate {
8-
private let PLUGIN_VERSION: String = "7.1.6"
8+
private let pluginVersion: String = "7.1.6"
99
public let identifier = "PayPlugin"
1010
public let jsName = "Pay"
1111
public let pluginMethods: [CAPPluginMethod] = [
@@ -444,7 +444,7 @@ public class PayPlugin: CAPPlugin, CAPBridgedPlugin, PKPaymentAuthorizationContr
444444
}
445445

446446
@objc func getPluginVersion(_ call: CAPPluginCall) {
447-
call.resolve(["version": self.PLUGIN_VERSION])
447+
call.resolve(["version": self.pluginVersion])
448448
}
449449
}
450450

0 commit comments

Comments
 (0)