cordova-plugin-netcontroll-integration 1.0.136 → 1.0.138

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.
Files changed (26) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/plugin.xml +41 -3
  4. package/src/android/Cielo/CieloLioLocal.java +12 -77
  5. package/src/android/Gertec/GertecSK210.java +142 -0
  6. package/src/android/Gertec/util/Constants.java +27 -0
  7. package/src/android/Gertec/util/DeviceServiceManager.java +161 -0
  8. package/src/android/Gertec/util/PriceScanApplication.java +19 -0
  9. package/src/android/NetControllCordovaPluginsIntegration.java +56 -14
  10. package/src/android/Vero/VeroPOS.java +111 -0
  11. package/src/build.gradle +20 -4
  12. package/src/libs/gertec/DecodeLibrary_1.8.03.A28.aar +0 -0
  13. package/src/libs/gertec/T1_V2_20230816.jar +0 -0
  14. package/src/libs/gertec/T1_V2_20230906.jar +0 -0
  15. package/src/libs/gertec/TOPSDK.jar +0 -0
  16. package/src/libs/gertec/TOPSDK_V1.5.3_20230804.jar +0 -0
  17. package/src/libs/vero/positivo-printer-1.00.00.aar +0 -0
  18. package/src/libs/vero/posmpapi_1.01.01.aar +0 -0
  19. package/www/Gertec/GertecSK210.js +15 -0
  20. package/www/Vero/VeroPOS.js +15 -0
  21. package/src/libs/cielo/SDK-1.8.2/README.md +0 -26
  22. package/src/libs/cielo/SDK-1.8.2/cielo/printer/client/printer-manager/2.4.2/printer-manager-2.4.2.aar +0 -0
  23. package/src/libs/cielo/SDK-1.8.2/cielo/printer/client/printer-manager/2.4.2/printer-manager-2.4.2.pom +0 -35
  24. package/src/libs/cielo/SDK-1.8.2/com/cielo/lio/order-manager/1.8.2/order-manager-1.8.2.aar +0 -0
  25. package/src/libs/cielo/SDK-1.8.2/com/cielo/lio/order-manager/1.8.2/order-manager-1.8.2.module +0 -153
  26. package/src/libs/cielo/SDK-1.8.2/com/cielo/lio/order-manager/1.8.2/order-manager-1.8.2.pom +0 -88
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- Versao 1.0.136
1
+ Versao 1.0.138
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.136",
3
+ "version": "1.0.138",
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.136"
2
+ <plugin id="cordova-plugin-netcontroll-integration" version="1.0.138"
3
3
  xmlns="http://apache.org/cordova/ns/plugins/1.0"
4
4
  xmlns:android="http://schemas.android.com/apk/res/android">
5
5
 
@@ -37,6 +37,14 @@
37
37
  <clobbers target="cordova.plugins.NetControllCordovaPluginsIntegration.TecToySumniD2Mini" />
38
38
  </js-module>
39
39
 
40
+ <js-module name="GertecSK210" src="www/Gertec/GertecSK210.js">
41
+ <clobbers target="cordova.plugins.NetControllCordovaPluginsIntegration.GertecSK210" />
42
+ </js-module>
43
+
44
+ <js-module name="VeroPOS" src="www/Vero/VeroPOS.js">
45
+ <clobbers target="cordova.plugins.NetControllCordovaPluginsIntegration.VeroPOS" />
46
+ </js-module>
47
+
40
48
  <js-module name="UtilsImageStore" src="www/Utils/UtilsImageStore.js">
41
49
  <clobbers target="cordova.plugins.NetControllCordovaPluginsIntegration.UtilsImageStore" />
42
50
  </js-module>
@@ -105,18 +113,48 @@
105
113
  <!--_____________________________L400_____________________________-->
106
114
  <source-file src="src/android/Rede/RedeL400.java" target-dir="src/cordova-plugin-netcontroll-integration/UseRede" />
107
115
  <resource-file src="src/libs/userede/PrinterModule_1.0.0.aar" target="libs/userede/PrinterModule_1.0.0.aar" />
108
-
109
-
116
+
110
117
 
111
118
  <!--______________________________Safra______________________________-->
112
119
  <source-file src="src/android/Safra/SafraPayIngenico.java" target-dir="src/cordova-plugin-netcontroll-integration/Safra" />
113
120
  <resource-file src="src/libs/safra/IntegracaoSafra-v2.0.aar" target="libs/safra/IntegracaoSafra-v2.0.aar" />
114
121
 
122
+
115
123
  <!--________________________TecToySumniD2Mini_________________________-->
116
124
  <source-file src="src/android/TecToy/TecToySumniD2Mini.java" target-dir="src/cordova-plugin-netcontroll-integration/TecToy" />
117
125
  <resource-file src="src/libs/tectoy/it4r.aar" target="libs/tectoy/it4r.aar" />
118
126
 
127
+
128
+ <!--______________________________Gertec______________________________-->
129
+ <source-file src="src/android/Gertec/GertecSK210.java" target-dir="src/cordova-plugin-netcontroll-integration/Gertec" />
130
+ <!--
131
+ <source-file src="src/android/Gertec/util/PriceScanApplication.java" target-dir="src/cordova-plugin-netcontroll-integration/Gertec/util/PriceScanApplication" />
132
+ <source-file src="src/android/Gertec/util/Constants.java" target-dir="src/cordova-plugin-netcontroll-integration/Gertec/util/Constants" />
133
+ <source-file src="src/android/Gertec/util/DeviceServiceManager.java" target-dir="src/cordova-plugin-netcontroll-integration/Gertec/util/DeviceServiceManager" /> -->
134
+ <source-file src="src/android/Gertec/util/DeviceServiceManager.java" target-dir="src/cordova-plugin-netcontroll-integration/Gertec/util/DeviceServiceManager" />
135
+
136
+
137
+ <!-- <resource-file src="src/libs/gertec/T1_V2_20230816.jar" target="libs/gertec/T1_V2_20230816.jar" />
138
+ <resource-file src="src/libs/gertec/DecodeLibrary_1.8.03.A28.aar" target="libs/gertec/DecodeLibrary_1.8.03.A28.aar" />
139
+ <resource-file src="src/libs/gertec/T1_V2_20230906.jar" target="libs/gertec/T1_V2_20230906.jar" />
140
+ <resource-file src="src/libs/gertec/TOPSDK_V1.5.3_20230804.jar" target="libs/gertec/TOPSDK_V1.5.3_20230804.jar" />
141
+ <resource-file src="src/libs/gertec/TOPSDK.jar" target="libs/gertec/TOPSDK.jar" /> -->
142
+ <resource-file src="src/libs/gertec/TOPSDK.jar" target="libs/gertec/TOPSDK.jar" />
143
+
144
+ <!--______________________________Vero______________________________-->
145
+ <source-file src="src/android/Vero/VeroPOS.java" target-dir="src/cordova-plugin-netcontroll-integration/Vero" />
146
+
147
+ <resource-file src="src/libs/vero/positivo-printer-1.00.00.aar" target="libs/vero/positivo-printer-1.00.00.aar" />
148
+ <resource-file src="src/libs/vero/posmpapi_1.01.01.aar" target="libs/vero/posmpapi_1.01.01.aar" />
149
+
150
+
151
+
152
+
119
153
  <framework src="src/build.gradle" custom="true" type="gradleReference" />
120
154
  <framework src="src/android/netcontroll.gradle" custom="true" type="gradleReference" />
121
155
  </platform>
156
+
157
+ <!-- <edit-config file="AndroidManifest.xml" target="/manifest/application" mode="merge">
158
+ <application android:name="cordova.plugin.netcontroll.integration.gertec.util.PriceScanApplication" />
159
+ </edit-config> -->
122
160
  </plugin>
@@ -370,109 +370,44 @@ public class CieloLioLocal {
370
370
  case "DEBITO_AVISTA":
371
371
  paymentCode = PaymentCode.DEBITO_AVISTA;
372
372
  break;
373
-
374
- case "DEBITO_PAGTO_FATURA_DEBITO":
375
- paymentCode = PaymentCode.DEBITO_PAGTO_FATURA_DEBITO;
373
+ case "DEBITO_PREDATADO":
374
+ paymentCode = PaymentCode.DEBITO_PREDATADO;
376
375
  break;
377
-
378
376
  case "CREDITO_AVISTA":
379
377
  paymentCode = PaymentCode.CREDITO_AVISTA;
380
378
  break;
381
-
382
379
  case "CREDITO_PARCELADO_LOJA":
383
380
  paymentCode = PaymentCode.CREDITO_PARCELADO_LOJA;
384
381
  break;
385
-
386
382
  case "CREDITO_PARCELADO_ADM":
387
383
  paymentCode = PaymentCode.CREDITO_PARCELADO_ADM;
388
384
  break;
389
-
390
385
  case "CREDITO_PARCELADO_BNCO":
391
386
  paymentCode = PaymentCode.CREDITO_PARCELADO_BNCO;
392
387
  break;
393
-
394
- case "PRE_AUTORIZACAO":
395
- paymentCode = PaymentCode.PRE_AUTORIZACAO;
396
- break;
397
-
398
- case "CREDITO_CREDIARIO_CREDITO":
399
- paymentCode = PaymentCode.CREDITO_CREDIARIO_CREDITO;
400
- break;
401
-
402
- case "VOUCHER_ALIMENTACAO":
403
- paymentCode = PaymentCode.VOUCHER_ALIMENTACAO;
404
- break;
405
-
406
- case "VOUCHER_REFEICAO":
407
- paymentCode = PaymentCode.VOUCHER_REFEICAO;
408
- break;
409
-
410
- case "VOUCHER_AUTOMOTIVO":
411
- paymentCode = PaymentCode.VOUCHER_AUTOMOTIVO;
412
- break;
413
-
414
- case "VOUCHER_CULTURA":
415
- paymentCode = PaymentCode.VOUCHER_CULTURA;
416
- break;
417
-
418
- case "VOUCHER_PEDAGIO":
419
- paymentCode = PaymentCode.VOUCHER_PEDAGIO;
420
- break;
421
-
422
- case "VOUCHER_BENEFICIOS":
423
- paymentCode = PaymentCode.VOUCHER_BENEFICIOS;
424
- break;
425
-
426
- case "VOUCHER_AUTO":
427
- paymentCode = PaymentCode.VOUCHER_AUTO;
428
- break;
429
-
430
- case "VOUCHER_CONSULTA_SALDO":
431
- paymentCode = PaymentCode.VOUCHER_CONSULTA_SALDO;
432
- break;
433
-
434
- case "VOUCHER_VALE_PEDAGIO":
435
- paymentCode = PaymentCode.VOUCHER_VALE_PEDAGIO;
436
- break;
437
-
438
- case "CREDIARIO_VENDA":
439
- paymentCode = PaymentCode.CREDIARIO_VENDA;
440
- break;
441
-
442
- case "CREDIARIO_SIMULACAO":
443
- paymentCode = PaymentCode.CREDIARIO_SIMULACAO;
444
- break;
445
-
446
388
  case "CARTAO_LOJA_AVISTA":
447
389
  paymentCode = PaymentCode.CARTAO_LOJA_AVISTA;
448
390
  break;
449
-
450
391
  case "CARTAO_LOJA_PARCELADO_LOJA":
451
392
  paymentCode = PaymentCode.CARTAO_LOJA_PARCELADO_LOJA;
452
393
  break;
453
-
454
394
  case "CARTAO_LOJA_PARCELADO":
455
395
  paymentCode = PaymentCode.CARTAO_LOJA_PARCELADO;
456
396
  break;
457
-
458
- case "CARTAO_LOJA_PARCELADO_BANCO":
459
- paymentCode = PaymentCode.CARTAO_LOJA_PARCELADO_BANCO;
397
+ case "PRE_AUTORIZACAO":
398
+ paymentCode = PaymentCode.PRE_AUTORIZACAO;
460
399
  break;
461
-
462
- case "CARTAO_LOJA_PAGTO_FATURA_CHEQUE":
463
- paymentCode = PaymentCode.CARTAO_LOJA_PAGTO_FATURA_CHEQUE;
400
+ case "VOUCHER_ALIMENTACAO":
401
+ paymentCode = PaymentCode.VOUCHER_ALIMENTACAO;
464
402
  break;
465
-
466
- case "CARTAO_LOJA_PAGTO_FATURA_DINHEIRO":
467
- paymentCode = PaymentCode.CARTAO_LOJA_PAGTO_FATURA_DINHEIRO;
403
+ case "VOUCHER_REFEICAO":
404
+ paymentCode = PaymentCode.VOUCHER_REFEICAO;
468
405
  break;
469
-
470
- case "FROTAS":
471
- paymentCode = PaymentCode.FROTAS;
406
+ case "VISAVALE_REFEICAO":
407
+ paymentCode = PaymentCode.VISAVALE_REFEICAO;
472
408
  break;
473
-
474
- case "PIX":
475
- paymentCode = PaymentCode.PIX;
409
+ case "VISAVALE_ALIMENTACAO":
410
+ paymentCode = PaymentCode.VISAVALE_ALIMENTACAO;
476
411
  break;
477
412
  default:
478
413
  break;
@@ -0,0 +1,142 @@
1
+ package cordova.plugin.netcontroll.integration;
2
+
3
+ import android.app.Activity;
4
+ import android.content.Context;
5
+ import android.graphics.Bitmap;
6
+ import android.graphics.Matrix;
7
+ import android.os.RemoteException;
8
+
9
+ import com.topwise.cloudpos.aidl.printer.AidlPrinter;
10
+ import com.topwise.cloudpos.aidl.printer.AidlPrinterListener;
11
+ import com.topwise.cloudpos.aidl.printer.Align;
12
+ import com.topwise.cloudpos.aidl.printer.ImageUnit;
13
+ import com.topwise.cloudpos.aidl.printer.PrintCuttingMode;
14
+ import com.topwise.cloudpos.aidl.printer.PrintTemplate;
15
+ import com.topwise.cloudpos.aidl.printer.TextUnit;
16
+ //import com.topwise.cloudpos.service.DeviceServiceManager;
17
+
18
+ import org.apache.cordova.CallbackContext;
19
+ import org.apache.cordova.CordovaInterface;
20
+ import org.apache.cordova.CordovaWebView;
21
+ import org.json.JSONArray;
22
+ import org.json.JSONException;
23
+ import org.json.JSONObject;
24
+
25
+
26
+ public class GertecSK210 {
27
+ //Cordova/Java Params
28
+ private Activity mActivity;
29
+ private static Context mContext;
30
+ public static CordovaInterface mCordova;
31
+ private CordovaWebView mWebView;
32
+ volatile boolean mInPrinter = false;
33
+
34
+ public static Context getContext() {
35
+ return mContext;
36
+ }
37
+
38
+ public void initialize(CordovaInterface cordova, CordovaWebView webView) {
39
+ mActivity = cordova.getActivity();
40
+ mContext = cordova.getActivity().getApplicationContext();
41
+ GertecSK210.mCordova = cordova;
42
+ mWebView = webView;
43
+ }
44
+
45
+ public boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException {
46
+ String callbackContextMessageBase = "Result Gertec SK210 - " + action + ": ";
47
+ if (action.equals("Initialize")) {
48
+ JSONObject params = args.getJSONObject(0);
49
+ try {
50
+ callbackContext.success(callbackContextMessageBase + "Success");
51
+ return true;
52
+ } catch (Exception error) {
53
+ callbackContext.error(callbackContextMessageBase + "Error Detail: " + error);
54
+ }
55
+ } else if (action.equals("ImpressaoTextoNetPrint")) {
56
+ JSONObject params = args.getJSONObject(0);
57
+ try {
58
+
59
+ String dados = params.getString("dados");
60
+ Boolean negrito = false;
61
+ try {
62
+ negrito = params.getBoolean("negrito");
63
+ } catch (Exception ex) {
64
+ String exStr = ex.toString();
65
+ String exStr2 = ex.toString();
66
+ }
67
+ String html = cordova.plugin.netcontroll.integration.util.NetControllPrinter.ConverterTextoImpressoToHtml(dados, negrito);
68
+ cordova.plugin.netcontroll.integration.util.NetControllPrinter.ConverterHtmlToBitmap(html, mContext, bitmapResult -> {
69
+ Bitmap dadosImg = bitmapResult;
70
+ imprimirImagem(dadosImg);
71
+ callbackContext.success(callbackContextMessageBase + "Success");
72
+ });
73
+ } catch (Exception e) {
74
+ callbackContext.error("ImpressaoTextoNetPrintImg error: " + e);
75
+ }
76
+ return true;
77
+ } else if (action.equals("ImpressaoBase64NetPrint")) {
78
+ try {
79
+ JSONObject params = args.getJSONObject(0);
80
+ String base64String = params.getString("base64String");
81
+
82
+ Bitmap dadosImg = cordova.plugin.netcontroll.integration.util.NetControllPrinter.ConverterBase64ToBitmap(base64String);
83
+ imprimirImagem(dadosImg);
84
+ callbackContext.success(callbackContextMessageBase + "Success");
85
+ } catch (Exception e) {
86
+ callbackContext.error("PrintTesteBase64 error: " + e.toString());
87
+ }
88
+ return true;
89
+ }
90
+ return false;
91
+ }
92
+
93
+ PrintTemplate template;
94
+ boolean printRunning = false;
95
+
96
+ public void imprimirImagem(Bitmap bitmap) {
97
+ try {
98
+ PrintTemplate template = PrintTemplate.getInstance();
99
+ template.init(mContext);
100
+ template.clear();
101
+ template.add(new TextUnit("\n\n"));
102
+ template.add(new TextUnit("\n\n"));
103
+ // template.add(new ImageUnit(bitmap, 400, 200));
104
+ template.add(new ImageUnit(bitmap, bitmap.getWidth(), bitmap.getHeight()));
105
+
106
+ cordova.plugin.netcontroll.integration.gertec.util.DeviceServiceManager devMsg = cordova.plugin.netcontroll.integration.gertec.util.DeviceServiceManager.getInstance();
107
+ if (devMsg != null) {
108
+ // devMsg.init(mContext);
109
+ AidlPrinter printMgn = devMsg.getPrintManager();
110
+ String abas = "as";
111
+ }
112
+
113
+ // cordova.plugin.netcontroll.integration.gertec.util.DeviceServiceManager.getInstance().getPrintManager().addRuiImage(rotateBitmap(template.getPrintBitmap(), 180), 0);
114
+ // cordova.plugin.netcontroll.integration.gertec.util.DeviceServiceManager.getInstance().getPrintManager().addRuiImage(rotateBitmap(template.getPrintBitmap(), 0), 0);
115
+ cordova.plugin.netcontroll.integration.gertec.util.DeviceServiceManager.getInstance().getPrintManager().addRuiImage(rotateBitmap(template.getPrintBitmap(), 180), 0);
116
+ cordova.plugin.netcontroll.integration.gertec.util.DeviceServiceManager.getInstance().getPrintManager().addRuiImage(template.getPrintBitmap(),0);
117
+ cordova.plugin.netcontroll.integration.gertec.util.DeviceServiceManager.getInstance().getPrintManager().printRuiQueue(new AidlPrinterListener.Stub() {
118
+ @Override
119
+ public void onError(int i) throws RemoteException {
120
+ mInPrinter = false;
121
+ }
122
+
123
+ @Override
124
+ public void onPrintFinish() throws RemoteException {
125
+ cordova.plugin.netcontroll.integration.gertec.util.DeviceServiceManager.getInstance().getPrintManager().cuttingPaper(PrintCuttingMode.CUTTING_MODE_HALT);
126
+ mInPrinter = false;
127
+ }
128
+ });
129
+ } catch (RemoteException e) {
130
+ e.printStackTrace();
131
+ }
132
+ }
133
+
134
+ public Bitmap rotateBitmap(Bitmap original, float degrees) {
135
+ Matrix matrix = new Matrix();
136
+ matrix.preRotate(degrees);
137
+ Bitmap rotatedBitmap = Bitmap.createBitmap(original, 0, 0, original.getWidth(), original.getHeight(), matrix, true);
138
+ original.recycle();
139
+ return rotatedBitmap;
140
+ }
141
+ }
142
+
@@ -0,0 +1,27 @@
1
+ package cordova.plugin.netcontroll.integration.gertec.util;
2
+
3
+ public class Constants {
4
+ private String nome;
5
+ private int img;
6
+
7
+ public Constants(String nome, int img) {
8
+ this.nome = nome;
9
+ this.img = img;
10
+ }
11
+
12
+ public String getNome() {
13
+ return nome;
14
+ }
15
+
16
+ public void setNome(String nome) {
17
+ this.nome = nome;
18
+ }
19
+
20
+ public int getImg() {
21
+ return img;
22
+ }
23
+
24
+ public void setImg(int img) {
25
+ this.img = img;
26
+ }
27
+ }
@@ -0,0 +1,161 @@
1
+ package cordova.plugin.netcontroll.integration.gertec.util;
2
+
3
+ import android.annotation.SuppressLint;
4
+ import android.content.ComponentName;
5
+ import android.content.Context;
6
+ import android.content.Intent;
7
+ import android.content.ServiceConnection;
8
+ import android.os.Build;
9
+ import android.os.IBinder;
10
+ import android.os.RemoteException;
11
+ import android.util.Log;
12
+
13
+ import com.topwise.cloudpos.aidl.AidlDeviceService;
14
+ import com.topwise.cloudpos.aidl.camera.AidlCameraScanCode;
15
+ import com.topwise.cloudpos.aidl.printer.AidlPrinter;
16
+ import com.topwise.cloudpos.aidl.system.AidlSystem;
17
+ import java.lang.reflect.Method;
18
+
19
+ public class DeviceServiceManager {
20
+ private static final String TAG = "aPriceScan/DeviceServiceManager";
21
+
22
+ private static final String DEVICE_SERVICE_PACKAGE_NAME = "com.android.topwise.topusdkservice";
23
+ private static final String DEVICE_SERVICE_CLASS_NAME = "com.android.topwise.topusdkservice.service.DeviceService";
24
+ private static final String ACTION_DEVICE_SERVICE = "topwise_cloudpos_device_service";
25
+
26
+ private static DeviceServiceManager instance;
27
+ private static Context mContext;
28
+ private AidlDeviceService mDeviceService;
29
+ private boolean isBind = false;
30
+
31
+ @SuppressLint("LongLogTag")
32
+ public static DeviceServiceManager getInstance() {
33
+ Log.d(TAG,"getInstance()");
34
+ if (null == instance) {
35
+ synchronized (DeviceServiceManager.class) {
36
+ instance = new DeviceServiceManager();
37
+ }
38
+ }
39
+ return instance;
40
+ }
41
+
42
+ public boolean isBind() {
43
+ return isBind;
44
+ }
45
+
46
+ // @SuppressLint("LongLogTag")
47
+ // public boolean bindDeviceService(Context context) {
48
+ // Log.i(TAG,"bindDeviceService");
49
+ // if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
50
+ // return true;
51
+ // }
52
+ // this.mContext = context;
53
+ // Intent intent = new Intent();
54
+ // intent.setAction(ACTION_DEVICE_SERVICE);
55
+ // intent.setClassName(DEVICE_SERVICE_PACKAGE_NAME, DEVICE_SERVICE_CLASS_NAME);
56
+ //
57
+ // try {
58
+ // boolean bindResult = mContext.bindService(intent, mConnection, Context.BIND_AUTO_CREATE);
59
+ // Log.i(TAG,"bindResult = " + bindResult);
60
+ // return bindResult;
61
+ // } catch (Exception e) {
62
+ // e.printStackTrace();
63
+ // }
64
+ //
65
+ // return false;
66
+ // }
67
+
68
+ @SuppressLint("LongLogTag")
69
+ public void unBindDeviceService() {
70
+ Log.i(TAG,"unBindDeviceService");
71
+ if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
72
+ return;
73
+ }
74
+ try {
75
+ mContext.unbindService(mConnection);
76
+ } catch (Exception e) {
77
+ Log.i(TAG,"unbind DeviceService service failed : " + e);
78
+ }
79
+ }
80
+
81
+ private final ServiceConnection mConnection = new ServiceConnection() {
82
+
83
+ @SuppressLint("LongLogTag")
84
+ @Override
85
+ public void onServiceConnected(ComponentName componentName, IBinder service) {
86
+ mDeviceService = AidlDeviceService.Stub.asInterface(service);
87
+ Log.d(TAG,"gz mDeviceService" + mDeviceService);
88
+ isBind = true;
89
+ Log.i(TAG,"onServiceConnected : " + mDeviceService);
90
+ }
91
+
92
+ @SuppressLint("LongLogTag")
93
+ @Override
94
+ public void onServiceDisconnected(ComponentName componentName) {
95
+ Log.i(TAG,"onServiceDisconnected : " + mDeviceService);
96
+ mDeviceService = null;
97
+ isBind = false;
98
+ }
99
+ };
100
+
101
+ @SuppressLint("LongLogTag")
102
+ public void getDeviceService() {
103
+ if(mDeviceService == null) {
104
+ mDeviceService = AidlDeviceService.Stub.asInterface(getService(ACTION_DEVICE_SERVICE));
105
+ }
106
+ Log.i(TAG,"onServiceDisconnected : " + mDeviceService);
107
+ }
108
+
109
+ private static IBinder getService(String serviceName) {
110
+ IBinder binder = null;
111
+ try {
112
+ // ClassLoader cl = PriceScanApplication.getContext().getClassLoader();
113
+ ClassLoader cl = cordova.plugin.netcontroll.integration.GertecSK210.getContext().getClassLoader();
114
+ Class serviceManager = cl.loadClass("android.os.ServiceManager");
115
+ Class[] paramTypes = new Class[1];
116
+ paramTypes[0] = String.class;
117
+ Method get = serviceManager.getMethod("getService", paramTypes);
118
+ Object[] params = new Object[1];
119
+ params[0] = serviceName;
120
+ binder = (IBinder) get.invoke(serviceManager, params);
121
+ } catch (Exception e) {
122
+ e.printStackTrace();
123
+ }
124
+ return binder;
125
+ }
126
+
127
+ public AidlPrinter getPrintManager() {
128
+ try {
129
+ getDeviceService();
130
+ if (mDeviceService != null) {
131
+ return AidlPrinter.Stub.asInterface(mDeviceService.getPrinter());
132
+ }
133
+ } catch (RemoteException e) {
134
+ e.printStackTrace();
135
+ }
136
+ return null;
137
+ }
138
+
139
+ public AidlSystem getSystemManager() {
140
+ try {
141
+ getDeviceService();
142
+ if (mDeviceService != null) {
143
+ return AidlSystem.Stub.asInterface(mDeviceService.getSystemService());
144
+ }
145
+ } catch (RemoteException e) {
146
+ e.printStackTrace();
147
+ }
148
+ return null;
149
+ }
150
+ public AidlCameraScanCode getCameraManager() {
151
+ try {
152
+ getDeviceService();
153
+ if (mDeviceService != null) {
154
+ return AidlCameraScanCode.Stub.asInterface(mDeviceService.getCameraManager());
155
+ }
156
+ } catch (RemoteException e) {
157
+ e.printStackTrace();
158
+ }
159
+ return null;
160
+ }
161
+ }
@@ -0,0 +1,19 @@
1
+ package cordova.plugin.netcontroll.integration.gertec.util;
2
+
3
+ import android.app.Application;
4
+ import android.content.Context;
5
+
6
+ public class PriceScanApplication extends Application {
7
+
8
+ private static Context context;
9
+
10
+ @Override
11
+ public void onCreate() {
12
+ super.onCreate();
13
+ context = this;
14
+ }
15
+
16
+ public static Context getContext() {
17
+ return context;
18
+ }
19
+ }
@@ -13,21 +13,27 @@ import android.content.Context;
13
13
 
14
14
  public class NetControllCordovaPluginsIntegration extends CordovaPlugin {
15
15
  //Elgin
16
- public ElginM10Terminal elginM10Terminal;
17
- public ElginSmartPay elginSmartPay;
16
+ public cordova.plugin.netcontroll.integration.ElginM10Terminal elginM10Terminal;
17
+ public cordova.plugin.netcontroll.integration.ElginSmartPay elginSmartPay;
18
18
 
19
19
  //Cielo
20
- public CieloLioLocal cieloLioLocal;
20
+ public cordova.plugin.netcontroll.integration.CieloLioLocal cieloLioLocal;
21
21
 
22
22
  //Rede
23
- public RedeGPos700 redeGPos700;
24
- public RedeL400 redeL400;
23
+ public cordova.plugin.netcontroll.integration.RedeGPos700 redeGPos700;
24
+ public cordova.plugin.netcontroll.integration.RedeL400 redeL400;
25
25
 
26
26
  //SafraPay
27
- public SafraPayIngenico safraPayIngenico;
27
+ public cordova.plugin.netcontroll.integration.SafraPayIngenico safraPayIngenico;
28
28
 
29
29
  //TecToy
30
- public TecToySumniD2Mini tecToySumniD2Mini;
30
+ public cordova.plugin.netcontroll.integration.TecToySumniD2Mini tecToySumniD2Mini;
31
+
32
+ //Gertec
33
+ public cordova.plugin.netcontroll.integration.GertecSK210 gertecSK210;
34
+
35
+ //Vero
36
+ public cordova.plugin.netcontroll.integration.VeroPOS veroPOS;
31
37
 
32
38
  //Utils
33
39
  // public UtilsImageStore utilsImageStore;
@@ -50,53 +56,67 @@ public class NetControllCordovaPluginsIntegration extends CordovaPlugin {
50
56
 
51
57
  private void initializeElginM10Terminal() {
52
58
  if (this.elginM10Terminal == null) {
53
- this.elginM10Terminal = new ElginM10Terminal();
59
+ this.elginM10Terminal = new cordova.plugin.netcontroll.integration.ElginM10Terminal();
54
60
  this.elginM10Terminal.initialize(this.cordova, this.webView);
55
61
  }
56
62
  }
57
63
 
58
64
  private void initializeElginSmartPay() {
59
65
  if (this.elginSmartPay == null) {
60
- this.elginSmartPay = new ElginSmartPay();
66
+ this.elginSmartPay = new cordova.plugin.netcontroll.integration.ElginSmartPay();
61
67
  this.elginSmartPay.initialize(this.cordova, this.webView);
62
68
  }
63
69
  }
64
70
 
65
71
  private void initializeCieloLioLocal() {
66
72
  if (this.cieloLioLocal == null) {
67
- this.cieloLioLocal = new CieloLioLocal();
73
+ this.cieloLioLocal = new cordova.plugin.netcontroll.integration.CieloLioLocal();
68
74
  this.cieloLioLocal.initialize(this.cordova, this.webView);
69
75
  }
70
76
  }
71
77
 
72
78
  private void initializeRedeGpos700() {
73
79
  if (this.redeGPos700 == null) {
74
- this.redeGPos700 = new RedeGPos700();
80
+ this.redeGPos700 = new cordova.plugin.netcontroll.integration.RedeGPos700();
75
81
  this.redeGPos700.initialize(this.cordova, this.webView);
76
82
  }
77
83
  }
78
84
 
79
85
  private void initializeRedeL400() {
80
86
  if (this.redeL400 == null) {
81
- this.redeL400 = new RedeL400();
87
+ this.redeL400 = new cordova.plugin.netcontroll.integration.RedeL400();
82
88
  this.redeL400.initialize(this.cordova, this.webView);
83
89
  }
84
90
  }
85
91
 
86
92
  private void initializeSafraPayIngenico() {
87
93
  if (this.safraPayIngenico == null) {
88
- this.safraPayIngenico = new SafraPayIngenico();
94
+ this.safraPayIngenico = new cordova.plugin.netcontroll.integration.SafraPayIngenico();
89
95
  this.safraPayIngenico.initialize(this.cordova, this.webView);
90
96
  }
91
97
  }
92
98
 
93
99
  private void initializeTecToySumniD2Mini() {
94
100
  if (this.tecToySumniD2Mini == null) {
95
- this.tecToySumniD2Mini = new TecToySumniD2Mini();
101
+ this.tecToySumniD2Mini = new cordova.plugin.netcontroll.integration.TecToySumniD2Mini();
96
102
  this.tecToySumniD2Mini.initialize(this.cordova, this.webView);
97
103
  }
98
104
  }
99
105
 
106
+ private void initializeGertecSK210() {
107
+ if (this.gertecSK210 == null) {
108
+ this.gertecSK210 = new cordova.plugin.netcontroll.integration.GertecSK210();
109
+ this.gertecSK210.initialize(this.cordova, this.webView);
110
+ }
111
+ }
112
+
113
+ private void initializeVeroPOS() {
114
+ if (this.veroPOS == null) {
115
+ this.veroPOS = new cordova.plugin.netcontroll.integration.VeroPOS();
116
+ this.veroPOS.initialize(this.cordova, this.webView);
117
+ }
118
+ }
119
+
100
120
  // private void initializeUtilsImageStore() {
101
121
  // if (this.utilsImageStore == null) {
102
122
  // this.utilsImageStore = new UtilsImageStore();
@@ -177,6 +197,28 @@ public class NetControllCordovaPluginsIntegration extends CordovaPlugin {
177
197
  default:
178
198
  break;
179
199
  }
200
+ case "gertec":
201
+ String gertecProduct = actionProviderList[1];
202
+ switch (gertecProduct.toLowerCase()) {
203
+ case "gertecsk210":
204
+ this.initializeGertecSK210();
205
+ String gertecAction = actionProviderList[2];
206
+ boolean resultGertecExecute = this.gertecSK210.execute(gertecAction, args, callbackContext);
207
+ return resultGertecExecute;
208
+ default:
209
+ break;
210
+ }
211
+ case "vero":
212
+ String veroProduct = actionProviderList[1];
213
+ switch (veroProduct.toLowerCase()) {
214
+ case "veropos":
215
+ this.initializeVeroPOS();
216
+ String veroAction = actionProviderList[2];
217
+ boolean resultVeroPosExecute = this.veroPOS.execute(veroAction, args, callbackContext);
218
+ return resultVeroPosExecute;
219
+ default:
220
+ break;
221
+ }
180
222
  // case "utils":
181
223
  // String utilsProduct = actionProviderList[1];
182
224
  // switch (utilsProduct.toLowerCase()) {
@@ -0,0 +1,111 @@
1
+ package cordova.plugin.netcontroll.integration;
2
+
3
+ import android.annotation.SuppressLint;
4
+ import android.app.Activity;
5
+ import android.app.Application;
6
+ import android.content.ComponentName;
7
+ import android.content.Context;
8
+ import android.content.Intent;
9
+ import android.content.ServiceConnection;
10
+ import android.graphics.Bitmap;
11
+ import android.graphics.Matrix;
12
+ import android.os.Build;
13
+ import android.os.Bundle;
14
+ import android.os.Environment;
15
+ import android.os.IBinder;
16
+ import android.os.RemoteException;
17
+ import android.util.Log;
18
+ import android.util.Printer;
19
+
20
+ import org.apache.cordova.CallbackContext;
21
+ import org.apache.cordova.CordovaInterface;
22
+ import org.apache.cordova.CordovaWebView;
23
+ import org.json.JSONArray;
24
+ import org.json.JSONException;
25
+ import org.json.JSONObject;
26
+
27
+ import java.io.IOException;
28
+ import java.lang.reflect.Method;
29
+ //import br.com.execucao.posmp_api.printer.Printer;
30
+
31
+ public class VeroPOS {
32
+ //Cordova/Java Params
33
+ private Activity mActivity;
34
+ private Context mContext;
35
+ private CordovaInterface mCordova;
36
+ private CordovaWebView mWebView;
37
+ // private br.com. printer;
38
+
39
+ public void initialize(CordovaInterface cordova, CordovaWebView webView) {
40
+ mActivity = cordova.getActivity();
41
+ mContext = cordova.getActivity().getApplicationContext();
42
+ mCordova = cordova;
43
+ mWebView = webView;
44
+ }
45
+
46
+ public boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException {
47
+ String callbackContextMessageBase = "Result Vero POS - " + action + ": ";
48
+ if (action.equals("Initialize")) {
49
+ JSONObject params = args.getJSONObject(0);
50
+ try {
51
+ if (supportsPrinter()) {
52
+ // printer = Printer.getInstance(this);
53
+ // printer.open();
54
+ } else {
55
+ callbackContext.error(callbackContextMessageBase + "Error Detail: " + "Printer not supported");
56
+ }
57
+ callbackContext.success(callbackContextMessageBase + "Success");
58
+ return true;
59
+ } catch (Exception error) {
60
+ callbackContext.error(callbackContextMessageBase + "Error Detail: " + error);
61
+ }
62
+ } else if (action.equals("ImpressaoTextoNetPrint")) {
63
+ JSONObject params = args.getJSONObject(0);
64
+ try {
65
+
66
+ String dados = params.getString("dados");
67
+ Boolean negrito = false;
68
+ try {
69
+ negrito = params.getBoolean("negrito");
70
+ }catch (Exception ex){
71
+ String exStr = ex.toString();
72
+ String exStr2 = ex.toString();
73
+ }
74
+ String html = cordova.plugin.netcontroll.integration.util.NetControllPrinter.ConverterTextoImpressoToHtml(dados, negrito);
75
+ cordova.plugin.netcontroll.integration.util.NetControllPrinter.ConverterHtmlToBitmap(html, mContext, bitmapResult -> {
76
+ Bitmap dadosImg = bitmapResult;
77
+
78
+ callbackContext.success(callbackContextMessageBase + "Success");
79
+ });
80
+ } catch (Exception e) {
81
+ callbackContext.error("ImpressaoTextoNetPrintImg error: " + e);
82
+ }
83
+ return true;
84
+ } else if (action.equals("ImpressaoBase64NetPrint")) {
85
+ try{
86
+ JSONObject params = args.getJSONObject(0);
87
+ String base64String = params.getString("base64String");
88
+
89
+ Bitmap dadosImg = cordova.plugin.netcontroll.integration.util.NetControllPrinter.ConverterBase64ToBitmap(base64String);
90
+ callbackContext.success(callbackContextMessageBase + "Success");
91
+ } catch (Exception e){
92
+ callbackContext.error("PrintTesteBase64 error: " + e.toString());
93
+ }
94
+ return true;
95
+ }
96
+ return false;
97
+ }
98
+
99
+
100
+ private boolean supportsPrinter() {
101
+
102
+ String[] models = new String[]{"GPOS700", "P2-B", "L3"};
103
+
104
+ for (String model : models) {
105
+ if (model.equals(Build.MODEL))
106
+ return true;
107
+ }
108
+ return false;
109
+ }
110
+
111
+ }
package/src/build.gradle CHANGED
@@ -5,7 +5,6 @@ repositories {
5
5
  dirs 'src/main/libs'
6
6
  }
7
7
  mavenCentral()
8
- mavenLocal()
9
8
  }
10
9
  dependencies {
11
10
  implementation fileTree(dir: 'libs', include: ['*.jar'])
@@ -19,8 +18,7 @@ dependencies {
19
18
 
20
19
  //SMART POS
21
20
  //______________________________ Cielo ______________________________
22
- // implementation 'com.cielo.lio:order-manager:1.4.0'
23
- implementation 'com.cielo.lio:order-manager:1.8.2'
21
+ implementation 'com.cielo.lio:order-manager:1.4.0'
24
22
 
25
23
 
26
24
  // //___________________________ Elgin ______________________________
@@ -37,7 +35,6 @@ dependencies {
37
35
 
38
36
 
39
37
  //______________________________ Safra ______________________________
40
-
41
38
  implementation(name:'safra/IntegracaoSafra-v2.0', ext:'aar')
42
39
 
43
40
 
@@ -46,9 +43,26 @@ dependencies {
46
43
  // implementation 'com.sunmi:printerlibrary:1.0.18'
47
44
  implementation(name:'tectoy/it4r', ext:'aar')
48
45
 
46
+ //_____________________ Gertec _________________________
47
+ implementation(name:'gertec/TOPSDK', ext:'jar')
48
+ //implementation(name:'gertec/T1_V2_20230906', ext:'jar')
49
+
50
+ // implementation (name: 'gertec/T1_V2_20230906', ext:'jar')
51
+ // implementation (name: 'gertec/T1_V2_20230816', ext:'jar')
52
+ // implementation (name: 'gertec/DecodeLibrary_1.8.03.A28', ext:'aar')
53
+
54
+ // mplementation (name: 'gertec/T1_V2_20230906', ext:'jar')
55
+
56
+ // device2Implementation files("./libs/T1_V2_20230906.jar")
49
57
 
50
58
  // implementation 'com.journeyapps:zxing-android-embedded:4.1.0'
51
59
 
60
+ //Vero
61
+ //_____________________ Gertec _________________________
62
+ implementation(name: 'vero/posmpapi_1.01.01', ext: 'aar')
63
+ // implementation(name: 'vero/positivo-printer-1.00.00', ext: 'aar')
64
+ implementation('com.sunmi:printerlibrary:1.0.22')
65
+
52
66
 
53
67
  //A lib e1 na versão 1.0.16 depende do suporte do androidx na inicialização
54
68
  implementation "androidx.startup:startup-runtime:1.0.0"
@@ -60,6 +74,8 @@ dependencies {
60
74
  configurations {
61
75
  // all*.exclude group: 'com.google.gson'
62
76
  // exclude group: 'sdk_3.0_release'
77
+ all*.exclude group: 'com.xcheng', module: 'printerservice'
78
+ all*.exclude group: 'com.sunmi', module: 'printerlibrary'
63
79
  all*.exclude group: 'com.google.code.gson', module: 'gson'
64
80
  }
65
81
 
Binary file
@@ -0,0 +1,15 @@
1
+ var exec = require('cordova/exec');
2
+
3
+ //Printer Functions
4
+
5
+ exports.Initialize = function (params, success, error) {
6
+ exec(success, error, 'NetControllCordovaPluginsIntegration', 'Gertec.GertecSK210.Initialize', [params]);
7
+ }
8
+
9
+ exports.ImpressaoTextoNetPrint = function (params, success, error) {
10
+ exec(success, error, 'NetControllCordovaPluginsIntegration', 'Gertec.GertecSK210.ImpressaoTextoNetPrint', [params]);
11
+ }
12
+
13
+ exports.ImpressaoBase64NetPrint = function (params, success, error) {
14
+ exec(success, error, 'NetControllCordovaPluginsIntegration', 'Gertec.GertecSK210.ImpressaoBase64NetPrint', [params]);
15
+ }
@@ -0,0 +1,15 @@
1
+ var exec = require('cordova/exec');
2
+
3
+ //Printer Functions
4
+
5
+ exports.Initialize = function (params, success, error) {
6
+ exec(success, error, 'NetControllCordovaPluginsIntegration', 'Vero.VeroPOS.Initialize', [params]);
7
+ }
8
+
9
+ exports.ImpressaoTextoNetPrint = function (params, success, error) {
10
+ exec(success, error, 'NetControllCordovaPluginsIntegration', 'Vero.VeroPOS.ImpressaoTextoNetPrint', [params]);
11
+ }
12
+
13
+ exports.ImpressaoBase64NetPrint = function (params, success, error) {
14
+ exec(success, error, 'NetControllCordovaPluginsIntegration', 'Vero.VeroPOS.ImpressaoBase64NetPrint', [params]);
15
+ }
@@ -1,26 +0,0 @@
1
- # Como utilizar o SDK da LIO no seu Android App.
2
-
3
- Estamos disponibilizando junto com este README dois diretórios: **com** e **cielo**, basta copiá-los para o seu repositório `.m2/repository`, exemplos:
4
- No Windows: `C:\Users\<usuario>\.m2`
5
- No Linux: `/home/<usuario>/.m2`
6
- No Mac: `/Users/<usuario>/.m2`
7
-
8
- ## Gradle
9
- No **build.gradle** na raiz do seu projeto, adicionar o mavenLocal() dentro da closure **allprojects** conforme abaixo:
10
- ```
11
- allprojects {
12
- repositories {
13
- mavenLocal()
14
- ...
15
- }
16
- }
17
- ```
18
- No **build.gradle** do app, adicionar a dependência dentro da closure **dependencies** conforme abaixo:
19
-
20
- ```
21
- dependencies {
22
- implementation 'com.cielo.lio:order-manager:1.8.2'
23
- }
24
- ```
25
-
26
- Realizar o build do projeto.
@@ -1,35 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
3
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
- <modelVersion>4.0.0</modelVersion>
5
- <groupId>cielo.printer.client</groupId>
6
- <artifactId>printer-manager</artifactId>
7
- <version>2.4.2</version>
8
- <packaging>aar</packaging>
9
- <dependencies>
10
- <dependency>
11
- <groupId>com.google.dagger</groupId>
12
- <artifactId>dagger</artifactId>
13
- <version>2.9</version>
14
- <scope>runtime</scope>
15
- </dependency>
16
- <dependency>
17
- <groupId>org.apache.commons</groupId>
18
- <artifactId>commons-lang3</artifactId>
19
- <version>3.4</version>
20
- <scope>runtime</scope>
21
- </dependency>
22
- <dependency>
23
- <groupId>io.reactivex.rxjava2</groupId>
24
- <artifactId>rxkotlin</artifactId>
25
- <version>2.4.0</version>
26
- <scope>runtime</scope>
27
- </dependency>
28
- <dependency>
29
- <groupId>org.jetbrains.kotlin</groupId>
30
- <artifactId>kotlin-stdlib-jdk8</artifactId>
31
- <version>1.3.10</version>
32
- <scope>runtime</scope>
33
- </dependency>
34
- </dependencies>
35
- </project>
@@ -1,153 +0,0 @@
1
- {
2
- "formatVersion": "1.1",
3
- "component": {
4
- "group": "com.cielo.lio",
5
- "module": "order-manager",
6
- "version": "1.8.2",
7
- "attributes": {
8
- "org.gradle.status": "release"
9
- }
10
- },
11
- "createdBy": {
12
- "gradle": {
13
- "version": "6.5",
14
- "buildId": "3yrmos3pw5b3fgx45lkgdrpuei"
15
- }
16
- },
17
- "variants": [
18
- {
19
- "name": "releaseApiPublication",
20
- "attributes": {
21
- "org.gradle.category": "library",
22
- "org.gradle.dependency.bundling": "external",
23
- "org.gradle.libraryelements": "aar",
24
- "org.gradle.usage": "java-api"
25
- },
26
- "dependencies": [
27
- {
28
- "group": "org.jetbrains.kotlin",
29
- "module": "kotlin-stdlib",
30
- "version": {
31
- "requires": "1.4.30"
32
- }
33
- }
34
- ],
35
- "files": [
36
- {
37
- "name": "order-manager-1.8.2.aar",
38
- "url": "order-manager-1.8.2.aar",
39
- "size": 181774,
40
- "sha512": "0c007ec8fc443cce4b9de0674deb05a831005fe27e62aac68410343d5db7ee87e088a91281b4b59d0be8caf56ea739ffbdb671d636aeec549e76610b1fb2086b",
41
- "sha256": "f2a2ba6179901c38e074f6796542eae2394ac3e59ffe2234da3d99e20a5b0206",
42
- "sha1": "36ab2244be2343416e0caa0faa02e8c52af0bccd",
43
- "md5": "b25d4593c558d9b5c5fed984b22b80cc"
44
- }
45
- ]
46
- },
47
- {
48
- "name": "releaseRuntimePublication",
49
- "attributes": {
50
- "org.gradle.category": "library",
51
- "org.gradle.dependency.bundling": "external",
52
- "org.gradle.libraryelements": "aar",
53
- "org.gradle.usage": "java-runtime"
54
- },
55
- "dependencies": [
56
- {
57
- "group": "org.jetbrains.kotlin",
58
- "module": "kotlin-stdlib",
59
- "version": {
60
- "requires": "1.4.30"
61
- }
62
- },
63
- {
64
- "group": "org.jetbrains.kotlin",
65
- "module": "kotlin-android-extensions-runtime",
66
- "version": {
67
- "requires": "1.4.30"
68
- }
69
- },
70
- {
71
- "group": "cielo.printer.client",
72
- "module": "printer-manager",
73
- "version": {
74
- "requires": "2.4.2"
75
- }
76
- },
77
- {
78
- "group": "com.squareup.retrofit2",
79
- "module": "retrofit",
80
- "version": {
81
- "requires": "2.3.0"
82
- }
83
- },
84
- {
85
- "group": "com.squareup.retrofit2",
86
- "module": "adapter-rxjava2",
87
- "version": {
88
- "requires": "2.3.0"
89
- }
90
- },
91
- {
92
- "group": "com.squareup.retrofit2",
93
- "module": "converter-gson",
94
- "version": {
95
- "requires": "2.3.0"
96
- }
97
- },
98
- {
99
- "group": "com.google.code.gson",
100
- "module": "gson",
101
- "version": {
102
- "requires": "2.8.0"
103
- }
104
- },
105
- {
106
- "group": "io.reactivex.rxjava2",
107
- "module": "rxandroid",
108
- "version": {
109
- "requires": "2.0.1"
110
- }
111
- },
112
- {
113
- "group": "com.squareup.okhttp3",
114
- "module": "logging-interceptor",
115
- "version": {
116
- "requires": "3.12.1"
117
- }
118
- },
119
- {
120
- "group": "com.squareup.okhttp3",
121
- "module": "okhttp",
122
- "version": {
123
- "requires": "3.12.1"
124
- },
125
- "excludes": [
126
- {
127
- "group": "com.squareup.okio",
128
- "module": "okio"
129
- }
130
- ]
131
- },
132
- {
133
- "group": "com.google.android.gms",
134
- "module": "play-services-analytics",
135
- "version": {
136
- "requires": "18.0.3"
137
- }
138
- }
139
- ],
140
- "files": [
141
- {
142
- "name": "order-manager-1.8.2.aar",
143
- "url": "order-manager-1.8.2.aar",
144
- "size": 181774,
145
- "sha512": "0c007ec8fc443cce4b9de0674deb05a831005fe27e62aac68410343d5db7ee87e088a91281b4b59d0be8caf56ea739ffbdb671d636aeec549e76610b1fb2086b",
146
- "sha256": "f2a2ba6179901c38e074f6796542eae2394ac3e59ffe2234da3d99e20a5b0206",
147
- "sha1": "36ab2244be2343416e0caa0faa02e8c52af0bccd",
148
- "md5": "b25d4593c558d9b5c5fed984b22b80cc"
149
- }
150
- ]
151
- }
152
- ]
153
- }
@@ -1,88 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
3
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
- <!-- This module was also published with a richer model, Gradle metadata, -->
5
- <!-- which should be used instead. Do not delete the following line which -->
6
- <!-- is to indicate to Gradle or any Gradle module metadata file consumer -->
7
- <!-- that they should prefer consuming it instead. -->
8
- <!-- do_not_remove: published-with-gradle-metadata -->
9
- <modelVersion>4.0.0</modelVersion>
10
- <groupId>com.cielo.lio</groupId>
11
- <artifactId>order-manager</artifactId>
12
- <version>1.8.2</version>
13
- <packaging>aar</packaging>
14
- <dependencies>
15
- <dependency>
16
- <groupId>org.jetbrains.kotlin</groupId>
17
- <artifactId>kotlin-stdlib</artifactId>
18
- <version>1.4.30</version>
19
- <scope>compile</scope>
20
- </dependency>
21
- <dependency>
22
- <groupId>org.jetbrains.kotlin</groupId>
23
- <artifactId>kotlin-android-extensions-runtime</artifactId>
24
- <version>1.4.30</version>
25
- <scope>runtime</scope>
26
- </dependency>
27
- <dependency>
28
- <groupId>cielo.printer.client</groupId>
29
- <artifactId>printer-manager</artifactId>
30
- <version>2.4.2</version>
31
- <scope>runtime</scope>
32
- </dependency>
33
- <dependency>
34
- <groupId>com.squareup.retrofit2</groupId>
35
- <artifactId>retrofit</artifactId>
36
- <version>2.3.0</version>
37
- <scope>runtime</scope>
38
- </dependency>
39
- <dependency>
40
- <groupId>com.squareup.retrofit2</groupId>
41
- <artifactId>adapter-rxjava2</artifactId>
42
- <version>2.3.0</version>
43
- <scope>runtime</scope>
44
- </dependency>
45
- <dependency>
46
- <groupId>com.squareup.retrofit2</groupId>
47
- <artifactId>converter-gson</artifactId>
48
- <version>2.3.0</version>
49
- <scope>runtime</scope>
50
- </dependency>
51
- <dependency>
52
- <groupId>com.google.code.gson</groupId>
53
- <artifactId>gson</artifactId>
54
- <version>2.8.0</version>
55
- <scope>runtime</scope>
56
- </dependency>
57
- <dependency>
58
- <groupId>io.reactivex.rxjava2</groupId>
59
- <artifactId>rxandroid</artifactId>
60
- <version>2.0.1</version>
61
- <scope>runtime</scope>
62
- </dependency>
63
- <dependency>
64
- <groupId>com.squareup.okhttp3</groupId>
65
- <artifactId>logging-interceptor</artifactId>
66
- <version>3.12.1</version>
67
- <scope>runtime</scope>
68
- </dependency>
69
- <dependency>
70
- <groupId>com.squareup.okhttp3</groupId>
71
- <artifactId>okhttp</artifactId>
72
- <version>3.12.1</version>
73
- <scope>runtime</scope>
74
- <exclusions>
75
- <exclusion>
76
- <artifactId>okio</artifactId>
77
- <groupId>com.squareup.okio</groupId>
78
- </exclusion>
79
- </exclusions>
80
- </dependency>
81
- <dependency>
82
- <groupId>com.google.android.gms</groupId>
83
- <artifactId>play-services-analytics</artifactId>
84
- <version>18.0.3</version>
85
- <scope>runtime</scope>
86
- </dependency>
87
- </dependencies>
88
- </project>