cordova-plugin-netcontroll-integration 1.0.96 → 1.0.98

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
@@ -1,4 +1,4 @@
1
- Versao 1.0.96
1
+ Versao 1.0.98
2
2
 
3
3
  Funções internas de integração XMenu / NetControll
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cordova-plugin-netcontroll-integration",
3
- "version": "1.0.96",
3
+ "version": "1.0.98",
4
4
  "description": "Plugin cordova de integracao para uso interno (NetControll/ XMenu)",
5
5
  "cordova": {
6
6
  "id": "cordova-plugin-netcontroll-integration",
package/plugin.xml CHANGED
@@ -1,5 +1,5 @@
1
1
  <?xml version='1.0' encoding='utf-8'?>
2
- <plugin id="cordova-plugin-netcontroll-integration" version="1.0.96"
2
+ <plugin id="cordova-plugin-netcontroll-integration" version="1.0.98"
3
3
  xmlns="http://apache.org/cordova/ns/plugins/1.0"
4
4
  xmlns:android="http://schemas.android.com/apk/res/android">
5
5
 
@@ -21,12 +21,6 @@
21
21
  <clobbers target="cordova.plugins.NetControllCordovaPluginsIntegration.ElginSmartPay" />
22
22
  </js-module>
23
23
 
24
-
25
-
26
- <js-module name="StoneSumni" src="www/Stone/Sumni.js">
27
- <clobbers target="cordova.plugins.NetControllCordovaPluginsIntegration.StoneSumni" />
28
- </js-module>
29
-
30
24
  <js-module name="RedeGPos700" src="www/Rede/RedeGpos700.js">
31
25
  <clobbers target="cordova.plugins.NetControllCordovaPluginsIntegration.RedeGPos700" />
32
26
  </js-module>
@@ -72,9 +66,6 @@
72
66
  <resource-file src="src/libs/InterfaceAutomacao-v2.0.0.9.aar" target="libs/InterfaceAutomacao-v2.0.0.9.aar" />
73
67
 
74
68
 
75
- <!--______________________________Stone______________________________-->
76
- <source-file src="src/android/Stone/StoneSumni.java" target-dir="src/cordova-plugin-netcontroll-integration/Stone" />
77
-
78
69
  <!--_____________________________UseRede_____________________________-->
79
70
  <source-file src="src/android/Rede/RedeGPos700.java" target-dir="src/cordova-plugin-netcontroll-integration/UseRede" />
80
71
 
@@ -845,28 +845,6 @@ public class CieloLioLocal {
845
845
  0,
846
846
  callbackContext);
847
847
  callbackContext.success("ImpressoOk");
848
- // // PosPrintProvider customPosPrintProvider = new PosPrintProvider(mContext);
849
- // // // PosPrintProvider posPrintReceiptProvider = new PosPrintProvider(mContext, transactionObject, receiptType);
850
- // // customPosPrintProvider.addBitmap(bitmap);
851
- // ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
852
- // bitmap.compress(Bitmap.CompressFormat.PNG, 100, byteArrayOutputStream);
853
- // byte[] byteArray = byteArrayOutputStream.toByteArray();
854
- // String encoded = Base64.encodeToString(byteArray, Base64.DEFAULT);
855
-
856
-
857
-
858
- // customPosPrintProvider.setConnectionCallback(new StoneCallbackInterface() {
859
- // @Override
860
- // public void onSuccess() {
861
- // callbackContext.success("ImpressoOk");
862
- // }
863
-
864
- // @Override
865
- // public void onError() {
866
- // callbackContext.error("Erro ao imprimir: " + customPosPrintProvider.getListOfErrors());
867
- // }
868
- // });
869
- // customPosPrintProvider.execute();
870
848
  } catch (Exception errorPost) {
871
849
  callbackContext.error("Result - ConverterHtmlToBitmap: " + "Error Detail: " + errorPost);
872
850
  }
@@ -19,9 +19,6 @@ public class NetControllCordovaPluginsIntegration extends CordovaPlugin {
19
19
  //Cielo
20
20
  public CieloLioLocal cieloLioLocal;
21
21
 
22
- //Stone
23
- public StoneSumni stoneSumni;
24
-
25
22
  //Rede
26
23
  public RedeGPos700 redeGPos700;
27
24
 
@@ -65,13 +62,6 @@ public class NetControllCordovaPluginsIntegration extends CordovaPlugin {
65
62
  }
66
63
  }
67
64
 
68
- private void initializeStoneSumni() {
69
- if (this.stoneSumni == null) {
70
- this.stoneSumni = new StoneSumni();
71
- this.stoneSumni.initialize(this.cordova, this.webView);
72
- }
73
- }
74
-
75
65
  private void initializeRedeGpos700() {
76
66
  if (this.redeGPos700 == null) {
77
67
  this.redeGPos700 = new RedeGPos700();
@@ -121,17 +111,6 @@ public class NetControllCordovaPluginsIntegration extends CordovaPlugin {
121
111
  default:
122
112
  break;
123
113
  }
124
- case "stone":
125
- String stoneProduct = actionProviderList[1];
126
- switch (stoneProduct.toLowerCase()) {
127
- case "sumni":
128
- this.initializeStoneSumni();
129
- String stoneSuminAction = actionProviderList[2];
130
- boolean resultStoneSuminExecute = this.stoneSumni.execute(stoneSuminAction, args, callbackContext);
131
- return resultStoneSuminExecute;
132
- default:
133
- break;
134
- }
135
114
  case "rede":
136
115
  String redeProduct = actionProviderList[1];
137
116
  switch (redeProduct.toLowerCase()) {
@@ -53,8 +53,6 @@ import br.com.setis.safra.integracaosafra.util.ReturnCodes;
53
53
 
54
54
 
55
55
  //Json Serialize
56
- import stone.application.enums.ReceiptType;
57
-
58
56
  import com.google.gson.Gson;
59
57
  import com.google.gson.GsonBuilder;
60
58
  import com.google.gson.annotations.SerializedName;
@@ -8,11 +8,6 @@ import android.content.Context;
8
8
  import android.os.Environment;
9
9
  import android.util.Base64;
10
10
 
11
- import br.com.uol.pagseguro.plugpagservice.wrapper.PlugPagPrintResult;
12
- import br.com.uol.pagseguro.plugpagservice.wrapper.PlugPagPrinterData;
13
- import br.com.uol.pagseguro.plugpagservice.wrapper.PlugPagPrinterListener;
14
- import stone.application.enums.ReceiptType;
15
-
16
11
  import com.google.gson.Gson;
17
12
  import com.google.gson.GsonBuilder;
18
13
  import com.google.gson.annotations.SerializedName;
package/src/build.gradle CHANGED
@@ -5,10 +5,6 @@ repositories {
5
5
  dirs 'src/main/libs'
6
6
  }
7
7
  mavenCentral()
8
- maven { url "https://packagecloud.io/priv/a753b90c3483978bb2514e3618ee3f72eb37ec2c9aa0b31d/stone/pos-android/maven2" }
9
- maven { url "https://packagecloud.io/priv/a753b90c3483978bb2514e3618ee3f72eb37ec2c9aa0b31d/stone/pos-android-internal/maven2" }
10
- maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
11
- maven { url 'https://github.com/pagseguro/PlugPagServiceWrapper/raw/master' }
12
8
  }
13
9
  dependencies {
14
10
  implementation fileTree(dir: 'libs', include: ['*.jar'])
@@ -44,14 +40,6 @@ dependencies {
44
40
  // }
45
41
 
46
42
 
47
- //______________________________ Stone ______________________________
48
- implementation "br.com.stone:stone-sdk:4.0.6"
49
- implementation "br.com.stone:stone-sdk-posandroid:4.0.6"
50
- // // implementation "br.com.stone:stone-sdk-posandroid-ingenico:4.0.6"
51
- // // implementation "br.com.stone:stone-sdk-posandroid-gertec:4.0.6"
52
- implementation "br.com.stone:stone-sdk-posandroid-sunmi:4.0.6"
53
-
54
-
55
43
  //______________________________ UseRede ______________________________
56
44
  implementation(name: 'sdk_3.0_release', ext: 'aar')
57
45
  implementation(name: 'payment-1.14.10.181016', ext: 'aar')
@@ -61,10 +49,6 @@ dependencies {
61
49
 
62
50
  implementation(name:'IntegracaoSafra-v2.0', ext:'aar')
63
51
 
64
- //______________________________ PagSeguro ______________________________
65
- implementation 'br.com.uol.pagseguro.plugpagservice.wrapper:wrapper:1.7.6'
66
-
67
-
68
52
  //Biblioteca de suporte dos códigos de barras utilizada para impressão dos mesmos
69
53
  implementation 'com.google.zxing:core:3.3.2'
70
54
  //implementation 'com.google.zxing:javase:3.3.2'
@@ -8,44 +8,44 @@ exports.Testar = function (params, success, error) {
8
8
 
9
9
  exports.InicializaImpressao = function (params, success, error) {
10
10
  debugger;
11
- exec(success, error, 'NetControllCordovaPluginsIntegration', 'Elgin.Gpos700.InicializaImpressao', [params]);
11
+ exec(success, error, 'NetControllCordovaPluginsIntegration', 'Rede.Gpos700.InicializaImpressao', [params]);
12
12
  }
13
13
 
14
14
  exports.AvancaPapel = function (params, success, error) {
15
- exec(success, error, 'NetControllCordovaPluginsIntegration', 'Elgin.Gpos700.AvancaPapel', [params]);
15
+ exec(success, error, 'NetControllCordovaPluginsIntegration', 'Rede.Gpos700.AvancaPapel', [params]);
16
16
  }
17
17
 
18
18
  exports.ImpressaoTexto = function (params, success, error) {
19
- exec(success, error, 'NetControllCordovaPluginsIntegration', 'Elgin.Gpos700.ImpressaoTexto', [params]);
19
+ exec(success, error, 'NetControllCordovaPluginsIntegration', 'Rede.Gpos700.ImpressaoTexto', [params]);
20
20
  }
21
21
 
22
22
  exports.ImpressaoCodigoBarras = function (params, success, error) {
23
- exec(success, error, 'NetControllCordovaPluginsIntegration', 'Elgin.Gpos700.ImpressaoCodigoBarras', [params]);
23
+ exec(success, error, 'NetControllCordovaPluginsIntegration', 'Rede.Gpos700.ImpressaoCodigoBarras', [params]);
24
24
  }
25
25
 
26
26
  exports.ImpressaoQRCode = function (params, success, error) {
27
- exec(success, error, 'NetControllCordovaPluginsIntegration', 'Elgin.Gpos700.ImpressaoQRCode', [params]);
27
+ exec(success, error, 'NetControllCordovaPluginsIntegration', 'Rede.Gpos700.ImpressaoQRCode', [params]);
28
28
  }
29
29
 
30
30
  exports.StatusImpressora = function (params, success, error) {
31
- exec(success, error, 'NetControllCordovaPluginsIntegration', 'Elgin.Gpos700.StatusImpressora', [params]);
31
+ exec(success, error, 'NetControllCordovaPluginsIntegration', 'Rede.Gpos700.StatusImpressora', [params]);
32
32
  }
33
33
 
34
34
  exports.ImprimeImagemBase64 = function (params, success, error) {
35
- exec(success, error, 'NetControllCordovaPluginsIntegration', 'Elgin.Gpos700.ImprimeImagemBase64', [params]);
35
+ exec(success, error, 'NetControllCordovaPluginsIntegration', 'Rede.Gpos700.ImprimeImagemBase64', [params]);
36
36
  }
37
37
 
38
38
 
39
39
  exports.IniciarPagamento = function (params, success, error) {
40
- exec(success, error, 'NetControllCordovaPluginsIntegration', 'Elgin.Gpos700.IniciarPagamento', [params]);
40
+ exec(success, error, 'NetControllCordovaPluginsIntegration', 'Rede.Gpos700.IniciarPagamento', [params]);
41
41
  }
42
42
 
43
43
  exports.EstornarPagamento = function (params, success, error) {
44
- exec(success, error, 'NetControllCordovaPluginsIntegration', 'Elgin.Gpos700.EstornarPagamento', [params]);
44
+ exec(success, error, 'NetControllCordovaPluginsIntegration', 'Rede.Gpos700.EstornarPagamento', [params]);
45
45
  }
46
46
 
47
47
  exports.ReimprimirPagamento = function (params, success, error) {
48
- exec(success, error, 'NetControllCordovaPluginsIntegration', 'Elgin.Gpos700.ReimprimirPagamento', [params]);
48
+ exec(success, error, 'NetControllCordovaPluginsIntegration', 'Rede.Gpos700.ReimprimirPagamento', [params]);
49
49
  }
50
50
 
51
51
 
@@ -58,12 +58,12 @@ exports.ReimprimirPagamento = function (params, success, error) {
58
58
 
59
59
  exports.ImprimirTodasFuncoes = function (params, success, error) {
60
60
  debugger;
61
- exec(success, error, 'NetControllCordovaPluginsIntegration', 'Elgin.Gpos700.ImprimirTodasFuncoes', [params]);
61
+ exec(success, error, 'NetControllCordovaPluginsIntegration', 'Rede.Gpos700.ImprimirTodasFuncoes', [params]);
62
62
  }
63
63
 
64
64
 
65
65
  exports.ImpressaoTextoNetPrintImg = function (params, success, error) {
66
- exec(success, error, 'NetControllCordovaPluginsIntegration', 'Stone.Gpos700.ImpressaoTextoNetPrintImg', [params]);
66
+ exec(success, error, 'NetControllCordovaPluginsIntegration', 'Rede.Gpos700.ImpressaoTextoNetPrintImg', [params]);
67
67
  }
68
68
 
69
69