anyline-ocr-react-native-module 54.2.2 → 54.4.0
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/android/.gradle/7.6/checksums/checksums.lock +0 -0
- package/android/.gradle/7.6/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/7.6/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/7.6/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.6/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +1 -1
- package/android/.gradle/config.properties +2 -0
- package/android/.idea/caches/deviceStreaming.xml +329 -0
- package/android/.idea/gradle.xml +13 -0
- package/android/.idea/migrations.xml +10 -0
- package/android/.idea/misc.xml +10 -0
- package/android/.idea/vcs.xml +6 -0
- package/android/build.gradle +1 -1
- package/android/local.properties +8 -0
- package/android/src/main/java/com/anyline/reactnative/AnylineSDKPlugin.java +13 -12
- package/ios/AnylineReact.podspec +1 -1
- package/ios/AnylineSDKPlugin.m +11 -6
- package/package.json +8 -8
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#Fri
|
|
1
|
+
#Fri Nov 01 10:53:06 IST 2024
|
|
2
2
|
gradle.version=7.6
|
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="DeviceStreaming">
|
|
4
|
+
<option name="deviceSelectionList">
|
|
5
|
+
<list>
|
|
6
|
+
<PersistentDeviceSelectionData>
|
|
7
|
+
<option name="api" value="27" />
|
|
8
|
+
<option name="brand" value="DOCOMO" />
|
|
9
|
+
<option name="codename" value="F01L" />
|
|
10
|
+
<option name="id" value="F01L" />
|
|
11
|
+
<option name="manufacturer" value="FUJITSU" />
|
|
12
|
+
<option name="name" value="F-01L" />
|
|
13
|
+
<option name="screenDensity" value="360" />
|
|
14
|
+
<option name="screenX" value="720" />
|
|
15
|
+
<option name="screenY" value="1280" />
|
|
16
|
+
</PersistentDeviceSelectionData>
|
|
17
|
+
<PersistentDeviceSelectionData>
|
|
18
|
+
<option name="api" value="28" />
|
|
19
|
+
<option name="brand" value="DOCOMO" />
|
|
20
|
+
<option name="codename" value="SH-01L" />
|
|
21
|
+
<option name="id" value="SH-01L" />
|
|
22
|
+
<option name="manufacturer" value="SHARP" />
|
|
23
|
+
<option name="name" value="AQUOS sense2 SH-01L" />
|
|
24
|
+
<option name="screenDensity" value="480" />
|
|
25
|
+
<option name="screenX" value="1080" />
|
|
26
|
+
<option name="screenY" value="2160" />
|
|
27
|
+
</PersistentDeviceSelectionData>
|
|
28
|
+
<PersistentDeviceSelectionData>
|
|
29
|
+
<option name="api" value="34" />
|
|
30
|
+
<option name="brand" value="Lenovo" />
|
|
31
|
+
<option name="codename" value="TB370FU" />
|
|
32
|
+
<option name="id" value="TB370FU" />
|
|
33
|
+
<option name="manufacturer" value="Lenovo" />
|
|
34
|
+
<option name="name" value="Tab P12" />
|
|
35
|
+
<option name="screenDensity" value="340" />
|
|
36
|
+
<option name="screenX" value="1840" />
|
|
37
|
+
<option name="screenY" value="2944" />
|
|
38
|
+
</PersistentDeviceSelectionData>
|
|
39
|
+
<PersistentDeviceSelectionData>
|
|
40
|
+
<option name="api" value="31" />
|
|
41
|
+
<option name="brand" value="samsung" />
|
|
42
|
+
<option name="codename" value="a51" />
|
|
43
|
+
<option name="id" value="a51" />
|
|
44
|
+
<option name="manufacturer" value="Samsung" />
|
|
45
|
+
<option name="name" value="Galaxy A51" />
|
|
46
|
+
<option name="screenDensity" value="420" />
|
|
47
|
+
<option name="screenX" value="1080" />
|
|
48
|
+
<option name="screenY" value="2400" />
|
|
49
|
+
</PersistentDeviceSelectionData>
|
|
50
|
+
<PersistentDeviceSelectionData>
|
|
51
|
+
<option name="api" value="34" />
|
|
52
|
+
<option name="brand" value="google" />
|
|
53
|
+
<option name="codename" value="akita" />
|
|
54
|
+
<option name="id" value="akita" />
|
|
55
|
+
<option name="manufacturer" value="Google" />
|
|
56
|
+
<option name="name" value="Pixel 8a" />
|
|
57
|
+
<option name="screenDensity" value="420" />
|
|
58
|
+
<option name="screenX" value="1080" />
|
|
59
|
+
<option name="screenY" value="2400" />
|
|
60
|
+
</PersistentDeviceSelectionData>
|
|
61
|
+
<PersistentDeviceSelectionData>
|
|
62
|
+
<option name="api" value="33" />
|
|
63
|
+
<option name="brand" value="samsung" />
|
|
64
|
+
<option name="codename" value="b0q" />
|
|
65
|
+
<option name="id" value="b0q" />
|
|
66
|
+
<option name="manufacturer" value="Samsung" />
|
|
67
|
+
<option name="name" value="Galaxy S22 Ultra" />
|
|
68
|
+
<option name="screenDensity" value="600" />
|
|
69
|
+
<option name="screenX" value="1440" />
|
|
70
|
+
<option name="screenY" value="3088" />
|
|
71
|
+
</PersistentDeviceSelectionData>
|
|
72
|
+
<PersistentDeviceSelectionData>
|
|
73
|
+
<option name="api" value="32" />
|
|
74
|
+
<option name="brand" value="google" />
|
|
75
|
+
<option name="codename" value="bluejay" />
|
|
76
|
+
<option name="id" value="bluejay" />
|
|
77
|
+
<option name="manufacturer" value="Google" />
|
|
78
|
+
<option name="name" value="Pixel 6a" />
|
|
79
|
+
<option name="screenDensity" value="420" />
|
|
80
|
+
<option name="screenX" value="1080" />
|
|
81
|
+
<option name="screenY" value="2400" />
|
|
82
|
+
</PersistentDeviceSelectionData>
|
|
83
|
+
<PersistentDeviceSelectionData>
|
|
84
|
+
<option name="api" value="34" />
|
|
85
|
+
<option name="brand" value="google" />
|
|
86
|
+
<option name="codename" value="caiman" />
|
|
87
|
+
<option name="id" value="caiman" />
|
|
88
|
+
<option name="manufacturer" value="Google" />
|
|
89
|
+
<option name="name" value="Pixel 9 Pro" />
|
|
90
|
+
<option name="screenDensity" value="360" />
|
|
91
|
+
<option name="screenX" value="960" />
|
|
92
|
+
<option name="screenY" value="2142" />
|
|
93
|
+
</PersistentDeviceSelectionData>
|
|
94
|
+
<PersistentDeviceSelectionData>
|
|
95
|
+
<option name="api" value="34" />
|
|
96
|
+
<option name="brand" value="google" />
|
|
97
|
+
<option name="codename" value="comet" />
|
|
98
|
+
<option name="id" value="comet" />
|
|
99
|
+
<option name="manufacturer" value="Google" />
|
|
100
|
+
<option name="name" value="Pixel 9 Pro Fold" />
|
|
101
|
+
<option name="screenDensity" value="390" />
|
|
102
|
+
<option name="screenX" value="2076" />
|
|
103
|
+
<option name="screenY" value="2152" />
|
|
104
|
+
</PersistentDeviceSelectionData>
|
|
105
|
+
<PersistentDeviceSelectionData>
|
|
106
|
+
<option name="api" value="29" />
|
|
107
|
+
<option name="brand" value="samsung" />
|
|
108
|
+
<option name="codename" value="crownqlteue" />
|
|
109
|
+
<option name="id" value="crownqlteue" />
|
|
110
|
+
<option name="manufacturer" value="Samsung" />
|
|
111
|
+
<option name="name" value="Galaxy Note9" />
|
|
112
|
+
<option name="screenDensity" value="420" />
|
|
113
|
+
<option name="screenX" value="2220" />
|
|
114
|
+
<option name="screenY" value="1080" />
|
|
115
|
+
</PersistentDeviceSelectionData>
|
|
116
|
+
<PersistentDeviceSelectionData>
|
|
117
|
+
<option name="api" value="34" />
|
|
118
|
+
<option name="brand" value="samsung" />
|
|
119
|
+
<option name="codename" value="dm3q" />
|
|
120
|
+
<option name="id" value="dm3q" />
|
|
121
|
+
<option name="manufacturer" value="Samsung" />
|
|
122
|
+
<option name="name" value="Galaxy S23 Ultra" />
|
|
123
|
+
<option name="screenDensity" value="600" />
|
|
124
|
+
<option name="screenX" value="1440" />
|
|
125
|
+
<option name="screenY" value="3088" />
|
|
126
|
+
</PersistentDeviceSelectionData>
|
|
127
|
+
<PersistentDeviceSelectionData>
|
|
128
|
+
<option name="api" value="34" />
|
|
129
|
+
<option name="brand" value="samsung" />
|
|
130
|
+
<option name="codename" value="e1q" />
|
|
131
|
+
<option name="id" value="e1q" />
|
|
132
|
+
<option name="manufacturer" value="Samsung" />
|
|
133
|
+
<option name="name" value="Galaxy S24" />
|
|
134
|
+
<option name="screenDensity" value="480" />
|
|
135
|
+
<option name="screenX" value="1080" />
|
|
136
|
+
<option name="screenY" value="2340" />
|
|
137
|
+
</PersistentDeviceSelectionData>
|
|
138
|
+
<PersistentDeviceSelectionData>
|
|
139
|
+
<option name="api" value="33" />
|
|
140
|
+
<option name="brand" value="google" />
|
|
141
|
+
<option name="codename" value="felix" />
|
|
142
|
+
<option name="id" value="felix" />
|
|
143
|
+
<option name="manufacturer" value="Google" />
|
|
144
|
+
<option name="name" value="Pixel Fold" />
|
|
145
|
+
<option name="screenDensity" value="420" />
|
|
146
|
+
<option name="screenX" value="2208" />
|
|
147
|
+
<option name="screenY" value="1840" />
|
|
148
|
+
</PersistentDeviceSelectionData>
|
|
149
|
+
<PersistentDeviceSelectionData>
|
|
150
|
+
<option name="api" value="34" />
|
|
151
|
+
<option name="brand" value="google" />
|
|
152
|
+
<option name="codename" value="felix" />
|
|
153
|
+
<option name="id" value="felix" />
|
|
154
|
+
<option name="manufacturer" value="Google" />
|
|
155
|
+
<option name="name" value="Pixel Fold" />
|
|
156
|
+
<option name="screenDensity" value="420" />
|
|
157
|
+
<option name="screenX" value="2208" />
|
|
158
|
+
<option name="screenY" value="1840" />
|
|
159
|
+
</PersistentDeviceSelectionData>
|
|
160
|
+
<PersistentDeviceSelectionData>
|
|
161
|
+
<option name="api" value="33" />
|
|
162
|
+
<option name="brand" value="google" />
|
|
163
|
+
<option name="codename" value="felix_camera" />
|
|
164
|
+
<option name="id" value="felix_camera" />
|
|
165
|
+
<option name="manufacturer" value="Google" />
|
|
166
|
+
<option name="name" value="Pixel Fold (Camera-enabled)" />
|
|
167
|
+
<option name="screenDensity" value="420" />
|
|
168
|
+
<option name="screenX" value="2208" />
|
|
169
|
+
<option name="screenY" value="1840" />
|
|
170
|
+
</PersistentDeviceSelectionData>
|
|
171
|
+
<PersistentDeviceSelectionData>
|
|
172
|
+
<option name="api" value="33" />
|
|
173
|
+
<option name="brand" value="samsung" />
|
|
174
|
+
<option name="codename" value="gts8uwifi" />
|
|
175
|
+
<option name="id" value="gts8uwifi" />
|
|
176
|
+
<option name="manufacturer" value="Samsung" />
|
|
177
|
+
<option name="name" value="Galaxy Tab S8 Ultra" />
|
|
178
|
+
<option name="screenDensity" value="320" />
|
|
179
|
+
<option name="screenX" value="1848" />
|
|
180
|
+
<option name="screenY" value="2960" />
|
|
181
|
+
</PersistentDeviceSelectionData>
|
|
182
|
+
<PersistentDeviceSelectionData>
|
|
183
|
+
<option name="api" value="34" />
|
|
184
|
+
<option name="brand" value="google" />
|
|
185
|
+
<option name="codename" value="husky" />
|
|
186
|
+
<option name="id" value="husky" />
|
|
187
|
+
<option name="manufacturer" value="Google" />
|
|
188
|
+
<option name="name" value="Pixel 8 Pro" />
|
|
189
|
+
<option name="screenDensity" value="390" />
|
|
190
|
+
<option name="screenX" value="1008" />
|
|
191
|
+
<option name="screenY" value="2244" />
|
|
192
|
+
</PersistentDeviceSelectionData>
|
|
193
|
+
<PersistentDeviceSelectionData>
|
|
194
|
+
<option name="api" value="30" />
|
|
195
|
+
<option name="brand" value="motorola" />
|
|
196
|
+
<option name="codename" value="java" />
|
|
197
|
+
<option name="id" value="java" />
|
|
198
|
+
<option name="manufacturer" value="Motorola" />
|
|
199
|
+
<option name="name" value="G20" />
|
|
200
|
+
<option name="screenDensity" value="280" />
|
|
201
|
+
<option name="screenX" value="720" />
|
|
202
|
+
<option name="screenY" value="1600" />
|
|
203
|
+
</PersistentDeviceSelectionData>
|
|
204
|
+
<PersistentDeviceSelectionData>
|
|
205
|
+
<option name="api" value="34" />
|
|
206
|
+
<option name="brand" value="google" />
|
|
207
|
+
<option name="codename" value="komodo" />
|
|
208
|
+
<option name="id" value="komodo" />
|
|
209
|
+
<option name="manufacturer" value="Google" />
|
|
210
|
+
<option name="name" value="Pixel 9 Pro XL" />
|
|
211
|
+
<option name="screenDensity" value="360" />
|
|
212
|
+
<option name="screenX" value="1008" />
|
|
213
|
+
<option name="screenY" value="2244" />
|
|
214
|
+
</PersistentDeviceSelectionData>
|
|
215
|
+
<PersistentDeviceSelectionData>
|
|
216
|
+
<option name="api" value="33" />
|
|
217
|
+
<option name="brand" value="google" />
|
|
218
|
+
<option name="codename" value="lynx" />
|
|
219
|
+
<option name="id" value="lynx" />
|
|
220
|
+
<option name="manufacturer" value="Google" />
|
|
221
|
+
<option name="name" value="Pixel 7a" />
|
|
222
|
+
<option name="screenDensity" value="420" />
|
|
223
|
+
<option name="screenX" value="1080" />
|
|
224
|
+
<option name="screenY" value="2400" />
|
|
225
|
+
</PersistentDeviceSelectionData>
|
|
226
|
+
<PersistentDeviceSelectionData>
|
|
227
|
+
<option name="api" value="31" />
|
|
228
|
+
<option name="brand" value="google" />
|
|
229
|
+
<option name="codename" value="oriole" />
|
|
230
|
+
<option name="id" value="oriole" />
|
|
231
|
+
<option name="manufacturer" value="Google" />
|
|
232
|
+
<option name="name" value="Pixel 6" />
|
|
233
|
+
<option name="screenDensity" value="420" />
|
|
234
|
+
<option name="screenX" value="1080" />
|
|
235
|
+
<option name="screenY" value="2400" />
|
|
236
|
+
</PersistentDeviceSelectionData>
|
|
237
|
+
<PersistentDeviceSelectionData>
|
|
238
|
+
<option name="api" value="33" />
|
|
239
|
+
<option name="brand" value="google" />
|
|
240
|
+
<option name="codename" value="panther" />
|
|
241
|
+
<option name="id" value="panther" />
|
|
242
|
+
<option name="manufacturer" value="Google" />
|
|
243
|
+
<option name="name" value="Pixel 7" />
|
|
244
|
+
<option name="screenDensity" value="420" />
|
|
245
|
+
<option name="screenX" value="1080" />
|
|
246
|
+
<option name="screenY" value="2400" />
|
|
247
|
+
</PersistentDeviceSelectionData>
|
|
248
|
+
<PersistentDeviceSelectionData>
|
|
249
|
+
<option name="api" value="34" />
|
|
250
|
+
<option name="brand" value="samsung" />
|
|
251
|
+
<option name="codename" value="q5q" />
|
|
252
|
+
<option name="id" value="q5q" />
|
|
253
|
+
<option name="manufacturer" value="Samsung" />
|
|
254
|
+
<option name="name" value="Galaxy Z Fold5" />
|
|
255
|
+
<option name="screenDensity" value="420" />
|
|
256
|
+
<option name="screenX" value="1812" />
|
|
257
|
+
<option name="screenY" value="2176" />
|
|
258
|
+
</PersistentDeviceSelectionData>
|
|
259
|
+
<PersistentDeviceSelectionData>
|
|
260
|
+
<option name="api" value="34" />
|
|
261
|
+
<option name="brand" value="samsung" />
|
|
262
|
+
<option name="codename" value="q6q" />
|
|
263
|
+
<option name="id" value="q6q" />
|
|
264
|
+
<option name="manufacturer" value="Samsung" />
|
|
265
|
+
<option name="name" value="Galaxy Z Fold6" />
|
|
266
|
+
<option name="screenDensity" value="420" />
|
|
267
|
+
<option name="screenX" value="1856" />
|
|
268
|
+
<option name="screenY" value="2160" />
|
|
269
|
+
</PersistentDeviceSelectionData>
|
|
270
|
+
<PersistentDeviceSelectionData>
|
|
271
|
+
<option name="api" value="30" />
|
|
272
|
+
<option name="brand" value="google" />
|
|
273
|
+
<option name="codename" value="r11" />
|
|
274
|
+
<option name="id" value="r11" />
|
|
275
|
+
<option name="manufacturer" value="Google" />
|
|
276
|
+
<option name="name" value="Pixel Watch" />
|
|
277
|
+
<option name="screenDensity" value="320" />
|
|
278
|
+
<option name="screenX" value="384" />
|
|
279
|
+
<option name="screenY" value="384" />
|
|
280
|
+
<option name="type" value="WEAR_OS" />
|
|
281
|
+
</PersistentDeviceSelectionData>
|
|
282
|
+
<PersistentDeviceSelectionData>
|
|
283
|
+
<option name="api" value="30" />
|
|
284
|
+
<option name="brand" value="google" />
|
|
285
|
+
<option name="codename" value="redfin" />
|
|
286
|
+
<option name="id" value="redfin" />
|
|
287
|
+
<option name="manufacturer" value="Google" />
|
|
288
|
+
<option name="name" value="Pixel 5" />
|
|
289
|
+
<option name="screenDensity" value="440" />
|
|
290
|
+
<option name="screenX" value="1080" />
|
|
291
|
+
<option name="screenY" value="2340" />
|
|
292
|
+
</PersistentDeviceSelectionData>
|
|
293
|
+
<PersistentDeviceSelectionData>
|
|
294
|
+
<option name="api" value="34" />
|
|
295
|
+
<option name="brand" value="google" />
|
|
296
|
+
<option name="codename" value="shiba" />
|
|
297
|
+
<option name="id" value="shiba" />
|
|
298
|
+
<option name="manufacturer" value="Google" />
|
|
299
|
+
<option name="name" value="Pixel 8" />
|
|
300
|
+
<option name="screenDensity" value="420" />
|
|
301
|
+
<option name="screenX" value="1080" />
|
|
302
|
+
<option name="screenY" value="2400" />
|
|
303
|
+
</PersistentDeviceSelectionData>
|
|
304
|
+
<PersistentDeviceSelectionData>
|
|
305
|
+
<option name="api" value="33" />
|
|
306
|
+
<option name="brand" value="google" />
|
|
307
|
+
<option name="codename" value="tangorpro" />
|
|
308
|
+
<option name="id" value="tangorpro" />
|
|
309
|
+
<option name="manufacturer" value="Google" />
|
|
310
|
+
<option name="name" value="Pixel Tablet" />
|
|
311
|
+
<option name="screenDensity" value="320" />
|
|
312
|
+
<option name="screenX" value="1600" />
|
|
313
|
+
<option name="screenY" value="2560" />
|
|
314
|
+
</PersistentDeviceSelectionData>
|
|
315
|
+
<PersistentDeviceSelectionData>
|
|
316
|
+
<option name="api" value="34" />
|
|
317
|
+
<option name="brand" value="google" />
|
|
318
|
+
<option name="codename" value="tokay" />
|
|
319
|
+
<option name="id" value="tokay" />
|
|
320
|
+
<option name="manufacturer" value="Google" />
|
|
321
|
+
<option name="name" value="Pixel 9" />
|
|
322
|
+
<option name="screenDensity" value="420" />
|
|
323
|
+
<option name="screenX" value="1080" />
|
|
324
|
+
<option name="screenY" value="2424" />
|
|
325
|
+
</PersistentDeviceSelectionData>
|
|
326
|
+
</list>
|
|
327
|
+
</option>
|
|
328
|
+
</component>
|
|
329
|
+
</project>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="GradleMigrationSettings" migrationVersion="1" />
|
|
4
|
+
<component name="GradleSettings">
|
|
5
|
+
<option name="linkedExternalProjectsSettings">
|
|
6
|
+
<GradleProjectSettings>
|
|
7
|
+
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
|
8
|
+
<option name="gradleJvm" value="#GRADLE_LOCAL_JAVA_HOME" />
|
|
9
|
+
<option name="resolveExternalAnnotations" value="false" />
|
|
10
|
+
</GradleProjectSettings>
|
|
11
|
+
</option>
|
|
12
|
+
</component>
|
|
13
|
+
</project>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
|
4
|
+
<component name="ProjectRootManager">
|
|
5
|
+
<output url="file://$PROJECT_DIR$/build/classes" />
|
|
6
|
+
</component>
|
|
7
|
+
<component name="ProjectType">
|
|
8
|
+
<option name="id" value="Android" />
|
|
9
|
+
</component>
|
|
10
|
+
</project>
|
package/android/build.gradle
CHANGED
|
@@ -61,7 +61,7 @@ repositories {
|
|
|
61
61
|
|
|
62
62
|
dependencies {
|
|
63
63
|
implementation fileTree(dir: "libs", include: ["*.jar"])
|
|
64
|
-
implementation 'io.anyline:anylinesdk:54.
|
|
64
|
+
implementation 'io.anyline:anylinesdk:54.4.0'
|
|
65
65
|
implementation "com.facebook.react:react-native:+"
|
|
66
66
|
implementation("com.google.android.material:material:1.9.0")
|
|
67
67
|
implementation 'androidx.multidex:multidex:2.0.1'
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
## This file must *NOT* be checked into Version Control Systems,
|
|
2
|
+
# as it contains information specific to your local configuration.
|
|
3
|
+
#
|
|
4
|
+
# Location of the SDK. This is only used by Gradle.
|
|
5
|
+
# For customization when using a Version Control System, please read the
|
|
6
|
+
# header note.
|
|
7
|
+
#Fri Nov 01 10:52:21 IST 2024
|
|
8
|
+
sdk.dir=/Users/rohitlokhande/Library/Android/sdk
|
|
@@ -40,7 +40,6 @@ class AnylineSDKPlugin extends ReactContextBaseJavaModule implements ResultRepor
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
public static final String REACT_CLASS = "AnylineSDKPlugin";
|
|
43
|
-
public static final String EXTRA_LICENSE_KEY = "EXTRA_LICENSE_KEY";
|
|
44
43
|
public static final String EXTRA_CONFIG_JSON = "EXTRA_CONFIG_JSON";
|
|
45
44
|
public static final String EXTRA_SCANVIEW_INITIALIZATION_PARAMETERS = "EXTRA_SCANVIEW_INITIALIZATION_PARAMETERS";
|
|
46
45
|
public static final String EXTRA_SCAN_MODE = "EXTRA_SCAN_MODE";
|
|
@@ -100,6 +99,11 @@ class AnylineSDKPlugin extends ReactContextBaseJavaModule implements ResultRepor
|
|
|
100
99
|
}
|
|
101
100
|
}
|
|
102
101
|
|
|
102
|
+
@ReactMethod
|
|
103
|
+
public void isInitialized(final Promise promise) {
|
|
104
|
+
promise.resolve(AnylineSdk.isInitialized());
|
|
105
|
+
}
|
|
106
|
+
|
|
103
107
|
@ReactMethod
|
|
104
108
|
@Deprecated
|
|
105
109
|
public void setupScanViewWithConfigJson(String config, String scanMode, Callback onResultReact, Callback onErrorReact) {
|
|
@@ -315,19 +319,17 @@ class AnylineSDKPlugin extends ReactContextBaseJavaModule implements ResultRepor
|
|
|
315
319
|
|
|
316
320
|
Intent intent = new Intent(getCurrentActivity(), ScanActivity.class);
|
|
317
321
|
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
AnylineSdk.init(configObject.getString("license"), reactContext, "", CacheConfig.Preset.Default.INSTANCE, wrapperConfig);
|
|
325
|
-
license = configObject.get("license").toString();
|
|
326
|
-
} else {
|
|
327
|
-
throw new JSONException("No License in config. Please check your configuration.");
|
|
322
|
+
if (!AnylineSdk.isInitialized()) {
|
|
323
|
+
if (this.license != null) {
|
|
324
|
+
AnylineSdk.init(this.license, reactContext, "", CacheConfig.Preset.Default.INSTANCE, wrapperConfig);
|
|
325
|
+
}
|
|
326
|
+
else {
|
|
327
|
+
throw new JSONException("SDK is not initialized. Please initialize SDK before scanning.");
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
330
|
|
|
331
|
+
configObject = new JSONObject(this.config);
|
|
332
|
+
|
|
331
333
|
JSONObject optionsJSONObject = configObject.optJSONObject("options");
|
|
332
334
|
|
|
333
335
|
if (optionsJSONObject != null) {
|
|
@@ -337,7 +339,6 @@ class AnylineSDKPlugin extends ReactContextBaseJavaModule implements ResultRepor
|
|
|
337
339
|
);
|
|
338
340
|
}
|
|
339
341
|
|
|
340
|
-
intent.putExtra(EXTRA_LICENSE_KEY, license);
|
|
341
342
|
intent.putExtra(EXTRA_CONFIG_JSON, configObject.toString());
|
|
342
343
|
intent.putExtra(EXTRA_SCANVIEW_INITIALIZATION_PARAMETERS, scanViewInitializationParameters);
|
|
343
344
|
|
package/ios/AnylineReact.podspec
CHANGED
|
@@ -18,7 +18,7 @@ Pod::Spec.new do |s|
|
|
|
18
18
|
s.source = { :git => "https://github.com/Anyline/anyline-ocr-react-native-module.git", :tag => "#{s.version}" }
|
|
19
19
|
|
|
20
20
|
s.source_files = "*.{h,m}"
|
|
21
|
-
s.dependency "Anyline", "54.
|
|
21
|
+
s.dependency "Anyline", "54.4.0"
|
|
22
22
|
s.dependency "React"
|
|
23
23
|
|
|
24
24
|
end
|
package/ios/AnylineSDKPlugin.m
CHANGED
|
@@ -126,6 +126,11 @@ RCT_EXPORT_METHOD(licenseKeyExpiryDate:(RCTPromiseResolveBlock)resolve rejecter:
|
|
|
126
126
|
resolve([AnylineSDK licenseExpirationDate]);
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
+
RCT_EXPORT_METHOD(isInitialized:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) {
|
|
130
|
+
BOOL isInitialized = [AnylineSDK isInitialized];
|
|
131
|
+
resolve(@(isInitialized));
|
|
132
|
+
}
|
|
133
|
+
|
|
129
134
|
RCT_EXPORT_METHOD(exportCachedEvents:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject) {
|
|
130
135
|
_resolveBlock = resolve;
|
|
131
136
|
_rejectBlock = reject;
|
|
@@ -148,7 +153,7 @@ RCT_EXPORT_METHOD(exportCachedEvents:(RCTPromiseResolveBlock)resolve rejecter:(R
|
|
|
148
153
|
if (!data) {
|
|
149
154
|
[NSException raise:@"Config could not be loaded from disk" format:@"Config could not be loaded from disk"];
|
|
150
155
|
}
|
|
151
|
-
|
|
156
|
+
|
|
152
157
|
NSError *error = nil;
|
|
153
158
|
id dictionary = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil];
|
|
154
159
|
|
|
@@ -172,7 +177,7 @@ RCT_EXPORT_METHOD(exportCachedEvents:(RCTPromiseResolveBlock)resolve rejecter:(R
|
|
|
172
177
|
|
|
173
178
|
dispatch_async(dispatch_get_main_queue(), ^{
|
|
174
179
|
[[UIApplication sharedApplication] keyWindow].rootViewController.modalPresentationStyle = UIModalPresentationFullScreen;
|
|
175
|
-
|
|
180
|
+
|
|
176
181
|
if ([[scanMode uppercaseString] isEqualToString:[@"scan" uppercaseString]]) {
|
|
177
182
|
ALPluginScanViewController *pluginScanViewController =
|
|
178
183
|
[[ALPluginScanViewController alloc] initWithLicensekey:self.appKey
|
|
@@ -182,7 +187,7 @@ RCT_EXPORT_METHOD(exportCachedEvents:(RCTPromiseResolveBlock)resolve rejecter:(R
|
|
|
182
187
|
finished:^(NSDictionary * _Nullable callbackObj, NSError * _Nullable error) {
|
|
183
188
|
[self returnCallback:callbackObj andError:error];
|
|
184
189
|
}];
|
|
185
|
-
|
|
190
|
+
|
|
186
191
|
if (pluginScanViewController != nil){
|
|
187
192
|
[pluginScanViewController setModalPresentationStyle: UIModalPresentationFullScreen];
|
|
188
193
|
[[[UIApplication sharedApplication] keyWindow].rootViewController presentViewController:pluginScanViewController animated:YES completion:nil];
|
|
@@ -196,7 +201,7 @@ RCT_EXPORT_METHOD(exportCachedEvents:(RCTPromiseResolveBlock)resolve rejecter:(R
|
|
|
196
201
|
finished:^(NSDictionary * _Nullable callbackObj, NSError * _Nullable error) {
|
|
197
202
|
[self returnCallback:callbackObj andError:error];
|
|
198
203
|
}];
|
|
199
|
-
|
|
204
|
+
|
|
200
205
|
if (pluginScanViewController != nil){
|
|
201
206
|
[pluginScanViewController setModalPresentationStyle: UIModalPresentationFullScreen];
|
|
202
207
|
[[[UIApplication sharedApplication] keyWindow].rootViewController presentViewController:pluginScanViewController animated:YES completion:nil];
|
|
@@ -210,12 +215,12 @@ RCT_EXPORT_METHOD(exportCachedEvents:(RCTPromiseResolveBlock)resolve rejecter:(R
|
|
|
210
215
|
|
|
211
216
|
- (void)pluginScanViewController:(nonnull ALPluginScanViewController *)pluginScanViewController didScan:(nonnull id)scanResult continueScanning:(BOOL)continueScanning {
|
|
212
217
|
NSString *resultJson = @"";
|
|
213
|
-
|
|
218
|
+
|
|
214
219
|
NSError *error;
|
|
215
220
|
NSData *jsonData = [NSJSONSerialization dataWithJSONObject: scanResult
|
|
216
221
|
options:0
|
|
217
222
|
error:&error];
|
|
218
|
-
|
|
223
|
+
|
|
219
224
|
if (! jsonData) {
|
|
220
225
|
NSLog(@"bv_jsonStringWithPrettyPrint: error: %@", error.localizedDescription);
|
|
221
226
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_from": "anyline-ocr-react-native-module@^54.
|
|
3
|
-
"_id": "anyline-ocr-react-native-module@^54.
|
|
2
|
+
"_from": "anyline-ocr-react-native-module@^54.4.0",
|
|
3
|
+
"_id": "anyline-ocr-react-native-module@^54.4.0",
|
|
4
4
|
"_inBundle": false,
|
|
5
5
|
"_integrity": "sha512-BGi9zNkSsoxXywDBIqzgBRvKUBniQOJHDKBrozZubKthZNRBAj8Ry5tW0Me0yLXt/fauME//hbC0wsenfPJZqw==",
|
|
6
6
|
"_location": "/anyline-ocr-react-native-module",
|
|
@@ -8,19 +8,19 @@
|
|
|
8
8
|
"_requested": {
|
|
9
9
|
"type": "range",
|
|
10
10
|
"registry": true,
|
|
11
|
-
"raw": "anyline-ocr-react-native-module@^54.
|
|
11
|
+
"raw": "anyline-ocr-react-native-module@^54.4.0",
|
|
12
12
|
"name": "anyline-ocr-react-native-module",
|
|
13
13
|
"escapedName": "anyline-ocr-react-native-module",
|
|
14
|
-
"rawSpec": "^54.
|
|
14
|
+
"rawSpec": "^54.4.0",
|
|
15
15
|
"saveSpec": null,
|
|
16
|
-
"fetchSpec": "^54.
|
|
16
|
+
"fetchSpec": "^54.4.0"
|
|
17
17
|
},
|
|
18
18
|
"_requiredBy": [
|
|
19
19
|
"/"
|
|
20
20
|
],
|
|
21
|
-
"_resolved": "https://registry.npmjs.org/anyline-ocr-react-native-module/-/anyline-ocr-react-native-module-54.
|
|
21
|
+
"_resolved": "https://registry.npmjs.org/anyline-ocr-react-native-module/-/anyline-ocr-react-native-module-54.4.0.tgz",
|
|
22
22
|
"_shasum": "bacbcd260cc662244f59393ed81a6edba009b52c",
|
|
23
|
-
"_spec": "anyline-ocr-react-native-module@^54.
|
|
23
|
+
"_spec": "anyline-ocr-react-native-module@^54.4.0",
|
|
24
24
|
"_where": "/Users/amiransari/Projects/anyline-ocr-react-native-module1/example/RNExampleApp",
|
|
25
25
|
"bugs": {
|
|
26
26
|
"url": "https://github.com/Anyline/anyline-ocr-react-native-module/issues"
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"type": "git",
|
|
48
48
|
"url": "git+https://github.com/Anyline/anyline-ocr-react-native-module.git"
|
|
49
49
|
},
|
|
50
|
-
"version": "54.
|
|
50
|
+
"version": "54.4.0"
|
|
51
51
|
}
|