cordova-plugin-googlepay-button 0.0.4 → 0.0.6

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
@@ -11,7 +11,7 @@ cordova plugin add cordova-plugin-googlepay-button
11
11
  or for Cordova build service, e.g. [VoltBuilder](https://volt.build/), add the following to config.xml:
12
12
 
13
13
  ```
14
- <plugin name="cordova-plugin-googlepay-button" source="npm" spec="0.0.4" />
14
+ <plugin name="cordova-plugin-googlepay-button" source="npm" spec="0.0.6" />
15
15
  ```
16
16
 
17
17
  ## Usage
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cordova-plugin-googlepay-button",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "Cordova plugin for implementing the Google PayButton API",
5
5
  "cordova": {
6
6
  "id": "cordova-plugin-googlepay-button",
package/plugin.xml CHANGED
@@ -2,7 +2,7 @@
2
2
  <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
3
3
  xmlns:android="http://schemas.android.com/apk/res/android"
4
4
  id="cordova-plugin-googlepay-button"
5
- version="0.0.4">
5
+ version="0.0.6">
6
6
 
7
7
  <name>Google Pay Button Plugin</name>
8
8
  <description>Cordova plugin for Google Pay PayButton API integration</description>
@@ -15,8 +15,9 @@
15
15
 
16
16
  <platform name="android">
17
17
  <config-file target="res/xml/config.xml" parent="/*">
18
- <feature name="GooglePayButtonPlugin">
19
- <param name="android-package" value="com.plugin.googlepaybutton.GooglePayButtonPlugin" />
18
+ <feature name="GooglePayButton">
19
+ <param name="android-package" value="com.plugin.googlepay.GooglePayButton" />
20
+ <param name="onload" value="false" />
20
21
  </feature>
21
22
  </config-file>
22
23
 
@@ -24,7 +25,7 @@
24
25
  <framework src="src/android/build.gradle" custom="true" type="gradleReference" />
25
26
 
26
27
  <!-- Source files -->
27
- <source-file src="src/android/GooglePayButtonPlugin.java"
28
+ <source-file src="src/android/GooglePayButton.java"
28
29
  target-dir="src/com/plugin/googlepaybutton" />
29
30
  </platform>
30
31
  </plugin>
@@ -1,4 +1,4 @@
1
- package com.plugin.googlepaybutton;
1
+ package com.plugin.googlepay;
2
2
 
3
3
  import org.apache.cordova.CordovaPlugin;
4
4
  import org.apache.cordova.CallbackContext;
@@ -20,9 +20,9 @@ import com.google.android.gms.wallet.button.ButtonConstants;
20
20
  import com.google.android.gms.wallet.button.ButtonOptions;
21
21
  import com.google.android.gms.wallet.button.PayButton;
22
22
 
23
- public class GooglePayButtonPlugin extends CordovaPlugin {
23
+ public class GooglePayButton extends CordovaPlugin {
24
24
 
25
- private static final String TAG = "GooglePayButtonPlugin";
25
+ private static final String TAG = "GooglePayButton";
26
26
  private PayButton payButton;
27
27
  private CallbackContext callbackContext;
28
28
  private CordovaWebView webView;
@@ -7,6 +7,6 @@ dependencies {
7
7
  See https://developers.google.com/pay/api/android/guides/setup#dependencies for more info.
8
8
  */
9
9
  implementation 'com.google.android.gms:play-services-wallet:19.2.1'
10
- implementation 'com.android.support:appcompat-v7:28.0.0'
11
- implementation "net.sourceforge.streamsupport:streamsupport:1.5.1"
10
+ // implementation 'com.android.support:appcompat-v7:28.0.0'
11
+ // implementation "net.sourceforge.streamsupport:streamsupport:1.5.1"
12
12
  }
@@ -41,7 +41,7 @@ class GooglePayButton {
41
41
  }
42
42
  },
43
43
  (error) => reject(error),
44
- 'GooglePayButtonPlugin',
44
+ 'GooglePayButton',
45
45
  'createPayButton',
46
46
  [options]
47
47
  );
@@ -66,7 +66,7 @@ class GooglePayButton {
66
66
  cordova.exec(
67
67
  resolve,
68
68
  reject,
69
- 'GooglePayButtonPlugin',
69
+ 'GooglePayButton',
70
70
  'showPayButton',
71
71
  [position]
72
72
  );
@@ -86,7 +86,7 @@ class GooglePayButton {
86
86
  cordova.exec(
87
87
  resolve,
88
88
  reject,
89
- 'GooglePayButtonPlugin',
89
+ 'GooglePayButton',
90
90
  'hidePayButton',
91
91
  []
92
92
  );
@@ -107,7 +107,7 @@ class GooglePayButton {
107
107
  cordova.exec(
108
108
  resolve,
109
109
  reject,
110
- 'GooglePayButtonPlugin',
110
+ 'GooglePayButton',
111
111
  'updatePayButton',
112
112
  [options]
113
113
  );