-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin.xml
165 lines (143 loc) · 11.6 KB
/
plugin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="cordova-plugin-pagarme-mpos" version="1.0.0">
<name>Mpos</name>
<description>Cordova plugin for interacting with Pagar.me's mPOS/pinpad</description>
<keywords>pagarme,cordova,phonegap,service,mpos,pinpad,payment,mobile</keywords>
<repo>https://github.com/d3x773r/cordova-plugin-socket-io</repo>
<issue>https://github.com/d3x773r/cordova-plugin-socket-io/issues</issue>
<author>Williaan Souza (dextter)</author>
<description>A Cordova plugin for interacting with Pagar.me's mPOS/pinpad payment interface.</description>
<license>MIT</license>
<engines>
<engine name="cordova-android" version=">=6.3.0" />
</engines>
<js-module src="www/mpos.js" name="Mpos">
<clobbers target="pagarme.Mpos" />
</js-module>
<!-- ios -->
<platform name="ios">
</platform>
<!-- android -->
<platform name="android">
<config-file target="AndroidManifest.xml" parent="/manifest">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-feature android:name="android.hardware.bluetooth_le" android:required="true"/>
</config-file>
<edit-config file="AndroidManifest.xml" target="/manifest/application" mode="merge">
<application android:name="com.gurpster.cordova.pagarme.mpos.withinterface.App" />
</edit-config>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<service
android:name="com.gurpster.cordova.pagarme.mpos.MposPluginService"
android:exported="false"
android:enabled="true"/>
<service android:enabled="true" android:exported="false" android:name="com.gurpster.cordova.pagarme.mpos.withinterface.MposService"/>
<activity android:name="com.gurpster.cordova.pagarme.mpos.withinterface.FinishActivity"
android:label=""
android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>
<activity android:name="com.gurpster.cordova.pagarme.mpos.withinterface.ChargeActivity"
android:label=""
android:theme="@style/AppTheme.Charge"/>
<activity android:name="com.gurpster.cordova.pagarme.mpos.withinterface.ProcessActivity"
android:label=""
android:theme="@style/AppTheme.Process"/>
<activity android:name="com.gurpster.cordova.pagarme.mpos.withinterface.PairingActivity"
android:label=""
android:theme="@style/AppTheme.Pairing"/>
</config-file>
<config-file target="res/xml/config.xml" parent="/*">
<feature name="Mpos">
<param name="android-package" value="com.gurpster.cordova.pagarme.mpos.MposPlugin" />
</feature>
</config-file>
<config-file target="res/values/strings.xml" parent="/*">
<string name="error">Erro</string>
<string name="successfully">Sucesso</string>
<string name="discovered_devices_title">Dispositivos Encontrados</string>
<string name="connect_devices_title">Conectando…</string>
<string name="not_device_paired_title">Desconectado</string>
<string name="not_device_paired_description">Você não está conectado com a máquina de pagamento. Certifique-se que o bluetooth do seu aparelho esteja ligado para realizar a conexão. Toque no botão abaixo para encontrar o sinal da máquina.</string>
<string name="not_device_paired_action">Buscar Máquina</string>
<string name="not_device_paired_error_default">Não foi possível se conectar com o dispositivo bluetooth</string>
<string name="device_paired_title">Conectado</string>
<string name="device_paired_description"><font>Você está conectado a máquina <b>%1$s</b>. Caso queira desconectar, toque no botão abaixo.</font></string>
<string name="device_paired_action">Desconectar</string>
<string name="payment_successfully">Pagamento concluido com sucesso</string>
<string name="payment_error">Pagamento não concluido. %1$s. Tente novamente</string>
</config-file>
<framework src="src/android/plugin.gradle" custom="true" type="gradleReference"/>
<lib-file src="src/android/mpos-android.aar"/>
<lib-file src="src/android/mpos-android-native.jar"/>
<source-file src="src/android/com/gurpster/cordova/pagarme/mpos/MposPlugin.java" target-dir="src/com/gurpster/cordova/pagarme/mpos/" />
<source-file src="src/android/com/gurpster/cordova/pagarme/mpos/MposPluginService.java" target-dir="src/com/gurpster/cordova/pagarme/mpos/" />
<source-file src="src/android/com/gurpster/cordova/pagarme/mpos/Constants.java" target-dir="src/com/gurpster/cordova/pagarme/mpos/" />
<source-file src="src/android/com/gurpster/cordova/pagarme/mpos/ConfigParameter.java" target-dir="src/com/gurpster/cordova/pagarme/mpos/" />
<source-file src="src/android/com/gurpster/cordova/pagarme/mpos/PaymentParameter.java" target-dir="src/com/gurpster/cordova/pagarme/mpos/" />
<source-file src="src/android/com/gurpster/cordova/pagarme/mpos/ResultHelper.java" target-dir="src/com/gurpster/cordova/pagarme/mpos/" />
<source-file src="src/android/com/gurpster/cordova/pagarme/mpos/MposCallback.java" target-dir="src/com/gurpster/cordova/pagarme/mpos/" />
<source-file src="src/android/com/gurpster/cordova/pagarme/mpos/entity/Config.java" target-dir="src/com/gurpster/cordova/pagarme/mpos/entity" />
<source-file src="src/android/com/gurpster/cordova/pagarme/mpos/entity/Message.java" target-dir="src/com/gurpster/cordova/pagarme/mpos/entity" />
<source-file src="src/android/com/gurpster/cordova/pagarme/mpos/entity/PagarMe.java" target-dir="src/com/gurpster/cordova/pagarme/mpos/entity" />
<source-file src="src/android/com/gurpster/cordova/pagarme/mpos/entity/Charge.java" target-dir="src/com/gurpster/cordova/pagarme/mpos/entity" />
<source-file src="src/android/com/gurpster/cordova/pagarme/mpos/entity/response/Card.java" target-dir="src/com/gurpster/cordova/pagarme/mpos/entity/response" />
<source-file src="src/android/com/gurpster/cordova/pagarme/mpos/entity/response/Data.java" target-dir="src/com/gurpster/cordova/pagarme/mpos/entity/response" />
<source-file src="src/android/com/gurpster/cordova/pagarme/mpos/entity/response/Receipt.java" target-dir="src/com/gurpster/cordova/pagarme/mpos/entity/response" />
<source-file src="src/android/com/gurpster/cordova/pagarme/mpos/entity/response/Metadata.java" target-dir="src/com/gurpster/cordova/pagarme/mpos/entity/response" />
<source-file src="src/android/com/gurpster/cordova/pagarme/mpos/entity/response/PaymentResponse.java" target-dir="src/com/gurpster/cordova/pagarme/mpos/entity/response" />
<source-file src="src/android/com/gurpster/cordova/pagarme/mpos/entity/response/Response.java" target-dir="src/com/gurpster/cordova/pagarme/mpos/entity/response" />
<source-file src="src/android/com/gurpster/cordova/pagarme/mpos/entity/response/ReceiptItem.java" target-dir="src/com/gurpster/cordova/pagarme/mpos/entity/response" />
<source-file src="src/android/com/gurpster/cordova/pagarme/mpos/entity/response/AntifraudMetadata.java" target-dir="src/com/gurpster/cordova/pagarme/mpos/entity/response" />
<source-file src="src/android/com/gurpster/cordova/pagarme/mpos/withinterface/App.java" target-dir="src/com/gurpster/cordova/pagarme/mpos/withinterface" />
<source-file src="src/android/com/gurpster/cordova/pagarme/mpos/withinterface/ModalUtils.java" target-dir="src/com/gurpster/cordova/pagarme/mpos/withinterface" />
<source-file src="src/android/com/gurpster/cordova/pagarme/mpos/withinterface/MposService.java" target-dir="src/com/gurpster/cordova/pagarme/mpos/withinterface" />
<source-file src="src/android/com/gurpster/cordova/pagarme/mpos/withinterface/PairingActivity.java" target-dir="src/com/gurpster/cordova/pagarme/mpos/withinterface" />
<source-file src="src/android/com/gurpster/cordova/pagarme/mpos/withinterface/ChargeActivity.java" target-dir="src/com/gurpster/cordova/pagarme/mpos/withinterface" />
<source-file src="src/android/com/gurpster/cordova/pagarme/mpos/withinterface/FinishActivity.java" target-dir="src/com/gurpster/cordova/pagarme/mpos/withinterface" />
<source-file src="src/android/com/gurpster/cordova/pagarme/mpos/withinterface/ProcessActivity.java" target-dir="src/com/gurpster/cordova/pagarme/mpos/withinterface" />
<source-file src="src/android/font" target-dir="src/main/res" />
<source-file src="src/android/values/colors.xml" target-dir="src/main/res/values" />
<source-file src="src/android/values/styles.xml" target-dir="src/main/res/values" />
<source-file src="src/android/mipmap-xhdpi/frame_1.png" target-dir="src/main/res/mipmap-xhdpi" />
<source-file src="src/android/mipmap-xhdpi/frame_2.png" target-dir="src/main/res/mipmap-xhdpi" />
<source-file src="src/android/drawable/border_green.xml" target-dir="src/main/res/drawable" />
<source-file src="src/android/drawable/border_red.xml" target-dir="src/main/res/drawable" />
<source-file src="src/android/drawable/border_white.xml" target-dir="src/main/res/drawable" />
<source-file src="src/android/drawable/rect_border_red.xml" target-dir="src/main/res/drawable" />
<source-file src="src/android/drawable/ic_credit_card__6.xml" target-dir="src/main/res/drawable" />
<source-file src="src/android/drawable/ic_credit_cards_payment.xml" target-dir="src/main/res/drawable" />
<source-file src="src/android/drawable/rect_green_border_white.xml" target-dir="src/main/res/drawable" />
<source-file src="src/android/drawable/round_rect_grey.xml" target-dir="src/main/res/drawable" />
<source-file src="src/android/drawable/round_rect_red.xml" target-dir="src/main/res/drawable" />
<source-file src="src/android/drawable/round_rect_green.xml" target-dir="src/main/res/drawable" />
<source-file src="src/android/drawable/round_rect_white.xml" target-dir="src/main/res/drawable" />
<source-file src="src/android/layout/activity_charge.xml" target-dir="src/main/res/layout" />
<source-file src="src/android/layout/activity_finish.xml" target-dir="src/main/res/layout" />
<source-file src="src/android/layout/activity_pairing.xml" target-dir="src/main/res/layout" />
<source-file src="src/android/layout/activity_processing.xml" target-dir="src/main/res/layout" />
<source-file src="src/android/layout/dialog_lottie_animated.xml" target-dir="src/main/res/layout" />
<source-file src="src/android/layout/dialog_radio_list.xml" target-dir="src/main/res/layout" />
<source-file src="src/android/layout/dialog_text.xml" target-dir="src/main/res/layout" />
<source-file src="src/android/layout/item_radio.xml" target-dir="src/main/res/layout" />
</platform>
</plugin>