react-native-beidou 1.1.3 → 1.1.4
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/BeiDouAIDLTestPage.tsx +19 -505
- package/LogManager.ts +0 -1
- package/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +1 -1
- package/android/.idea/caches/deviceStreaming.xml +197 -29
- package/android/build.gradle +8 -8
- package/android/src/main/java/com/fxzs.rnbeidou/BeiDouBluetoothModule.java +103 -3
- package/index.ts +30 -195
- package/ios/BeidouBluetooth.framework/BeidouBluetooth +0 -0
- package/ios/BeidouBluetooth.framework/FMDB.bundle/Info.plist +0 -0
- package/ios/BeidouBluetooth.framework/FMDB.bundle/PrivacyInfo.xcprivacy +0 -14
- package/ios/BeidouBluetooth.framework/Info.plist +0 -0
- package/ios/BeidouBluetooth.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/BeidouBluetooth.framework/_CodeSignature/CodeRequirements +0 -0
- package/ios/BeidouBluetooth.framework/_CodeSignature/CodeRequirements-1 +0 -0
- package/ios/BeidouBluetooth.framework/_CodeSignature/CodeResources +39 -11
- package/ios/BeidouBluetooth.framework/_CodeSignature/CodeSignature +0 -0
- package/package.json +1 -1
- package/react-native-beidou.podspec +6 -3
- package/react-native.config.js +2 -5
|
@@ -51,18 +51,6 @@
|
|
|
51
51
|
<option name="screenX" value="1080" />
|
|
52
52
|
<option name="screenY" value="2412" />
|
|
53
53
|
</PersistentDeviceSelectionData>
|
|
54
|
-
<PersistentDeviceSelectionData>
|
|
55
|
-
<option name="api" value="35" />
|
|
56
|
-
<option name="brand" value="OnePlus" />
|
|
57
|
-
<option name="codename" value="OP5552L1" />
|
|
58
|
-
<option name="id" value="OP5552L1" />
|
|
59
|
-
<option name="labId" value="google" />
|
|
60
|
-
<option name="manufacturer" value="OnePlus" />
|
|
61
|
-
<option name="name" value="CPH2415" />
|
|
62
|
-
<option name="screenDensity" value="480" />
|
|
63
|
-
<option name="screenX" value="1080" />
|
|
64
|
-
<option name="screenY" value="2412" />
|
|
65
|
-
</PersistentDeviceSelectionData>
|
|
66
54
|
<PersistentDeviceSelectionData>
|
|
67
55
|
<option name="api" value="34" />
|
|
68
56
|
<option name="brand" value="OPPO" />
|
|
@@ -100,6 +88,18 @@
|
|
|
100
88
|
<option name="screenX" value="1200" />
|
|
101
89
|
<option name="screenY" value="1920" />
|
|
102
90
|
</PersistentDeviceSelectionData>
|
|
91
|
+
<PersistentDeviceSelectionData>
|
|
92
|
+
<option name="api" value="33" />
|
|
93
|
+
<option name="brand" value="samsung" />
|
|
94
|
+
<option name="codename" value="a03su" />
|
|
95
|
+
<option name="id" value="a03su" />
|
|
96
|
+
<option name="labId" value="google" />
|
|
97
|
+
<option name="manufacturer" value="Samsung" />
|
|
98
|
+
<option name="name" value="Galaxy A03s" />
|
|
99
|
+
<option name="screenDensity" value="280" />
|
|
100
|
+
<option name="screenX" value="720" />
|
|
101
|
+
<option name="screenY" value="1600" />
|
|
102
|
+
</PersistentDeviceSelectionData>
|
|
103
103
|
<PersistentDeviceSelectionData>
|
|
104
104
|
<option name="api" value="35" />
|
|
105
105
|
<option name="brand" value="samsung" />
|
|
@@ -160,6 +160,18 @@
|
|
|
160
160
|
<option name="screenX" value="1080" />
|
|
161
161
|
<option name="screenY" value="2340" />
|
|
162
162
|
</PersistentDeviceSelectionData>
|
|
163
|
+
<PersistentDeviceSelectionData>
|
|
164
|
+
<option name="api" value="36" />
|
|
165
|
+
<option name="brand" value="samsung" />
|
|
166
|
+
<option name="codename" value="a15x" />
|
|
167
|
+
<option name="id" value="a15x" />
|
|
168
|
+
<option name="labId" value="google" />
|
|
169
|
+
<option name="manufacturer" value="Samsung" />
|
|
170
|
+
<option name="name" value="A15 5G" />
|
|
171
|
+
<option name="screenDensity" value="450" />
|
|
172
|
+
<option name="screenX" value="1080" />
|
|
173
|
+
<option name="screenY" value="2340" />
|
|
174
|
+
</PersistentDeviceSelectionData>
|
|
163
175
|
<PersistentDeviceSelectionData>
|
|
164
176
|
<option name="api" value="35" />
|
|
165
177
|
<option name="brand" value="samsung" />
|
|
@@ -232,6 +244,18 @@
|
|
|
232
244
|
<option name="screenX" value="1080" />
|
|
233
245
|
<option name="screenY" value="2340" />
|
|
234
246
|
</PersistentDeviceSelectionData>
|
|
247
|
+
<PersistentDeviceSelectionData>
|
|
248
|
+
<option name="api" value="36" />
|
|
249
|
+
<option name="brand" value="samsung" />
|
|
250
|
+
<option name="codename" value="a35x" />
|
|
251
|
+
<option name="id" value="a35x" />
|
|
252
|
+
<option name="labId" value="google" />
|
|
253
|
+
<option name="manufacturer" value="Samsung" />
|
|
254
|
+
<option name="name" value="A35" />
|
|
255
|
+
<option name="screenDensity" value="450" />
|
|
256
|
+
<option name="screenX" value="1080" />
|
|
257
|
+
<option name="screenY" value="2340" />
|
|
258
|
+
</PersistentDeviceSelectionData>
|
|
235
259
|
<PersistentDeviceSelectionData>
|
|
236
260
|
<option name="api" value="35" />
|
|
237
261
|
<option name="brand" value="samsung" />
|
|
@@ -328,6 +352,18 @@
|
|
|
328
352
|
<option name="screenX" value="1440" />
|
|
329
353
|
<option name="screenY" value="3088" />
|
|
330
354
|
</PersistentDeviceSelectionData>
|
|
355
|
+
<PersistentDeviceSelectionData>
|
|
356
|
+
<option name="api" value="36" />
|
|
357
|
+
<option name="brand" value="samsung" />
|
|
358
|
+
<option name="codename" value="b0q" />
|
|
359
|
+
<option name="id" value="b0q" />
|
|
360
|
+
<option name="labId" value="google" />
|
|
361
|
+
<option name="manufacturer" value="Samsung" />
|
|
362
|
+
<option name="name" value="Galaxy S22 Ultra" />
|
|
363
|
+
<option name="screenDensity" value="600" />
|
|
364
|
+
<option name="screenX" value="1440" />
|
|
365
|
+
<option name="screenY" value="3088" />
|
|
366
|
+
</PersistentDeviceSelectionData>
|
|
331
367
|
<PersistentDeviceSelectionData>
|
|
332
368
|
<option name="api" value="34" />
|
|
333
369
|
<option name="brand" value="samsung" />
|
|
@@ -335,7 +371,7 @@
|
|
|
335
371
|
<option name="id" value="b6q" />
|
|
336
372
|
<option name="labId" value="google" />
|
|
337
373
|
<option name="manufacturer" value="Samsung" />
|
|
338
|
-
<option name="name" value="Flip 6" />
|
|
374
|
+
<option name="name" value="Galaxy Z Flip 6" />
|
|
339
375
|
<option name="screenDensity" value="340" />
|
|
340
376
|
<option name="screenX" value="1080" />
|
|
341
377
|
<option name="screenY" value="2640" />
|
|
@@ -364,6 +400,18 @@
|
|
|
364
400
|
<option name="screenX" value="1080" />
|
|
365
401
|
<option name="screenY" value="2400" />
|
|
366
402
|
</PersistentDeviceSelectionData>
|
|
403
|
+
<PersistentDeviceSelectionData>
|
|
404
|
+
<option name="api" value="33" />
|
|
405
|
+
<option name="brand" value="samsung" />
|
|
406
|
+
<option name="codename" value="c1q" />
|
|
407
|
+
<option name="id" value="c1q" />
|
|
408
|
+
<option name="labId" value="google" />
|
|
409
|
+
<option name="manufacturer" value="Samsung" />
|
|
410
|
+
<option name="name" value="Galaxy Note 20 5G" />
|
|
411
|
+
<option name="screenDensity" value="450" />
|
|
412
|
+
<option name="screenX" value="1080" />
|
|
413
|
+
<option name="screenY" value="2400" />
|
|
414
|
+
</PersistentDeviceSelectionData>
|
|
367
415
|
<PersistentDeviceSelectionData>
|
|
368
416
|
<option name="api" value="34" />
|
|
369
417
|
<option name="brand" value="google" />
|
|
@@ -415,22 +463,22 @@
|
|
|
415
463
|
<option name="screenY" value="2152" />
|
|
416
464
|
</PersistentDeviceSelectionData>
|
|
417
465
|
<PersistentDeviceSelectionData>
|
|
418
|
-
<option name="api" value="
|
|
466
|
+
<option name="api" value="35" />
|
|
419
467
|
<option name="brand" value="samsung" />
|
|
420
|
-
<option name="codename" value="
|
|
421
|
-
<option name="id" value="
|
|
468
|
+
<option name="codename" value="dm1q" />
|
|
469
|
+
<option name="id" value="dm1q" />
|
|
422
470
|
<option name="labId" value="google" />
|
|
423
471
|
<option name="manufacturer" value="Samsung" />
|
|
424
|
-
<option name="name" value="
|
|
425
|
-
<option name="screenDensity" value="
|
|
426
|
-
<option name="screenX" value="
|
|
427
|
-
<option name="screenY" value="
|
|
472
|
+
<option name="name" value="S23" />
|
|
473
|
+
<option name="screenDensity" value="480" />
|
|
474
|
+
<option name="screenX" value="1080" />
|
|
475
|
+
<option name="screenY" value="2340" />
|
|
428
476
|
</PersistentDeviceSelectionData>
|
|
429
477
|
<PersistentDeviceSelectionData>
|
|
430
|
-
<option name="api" value="
|
|
478
|
+
<option name="api" value="36" />
|
|
431
479
|
<option name="brand" value="samsung" />
|
|
432
|
-
<option name="codename" value="dm1q" />
|
|
433
|
-
<option name="id" value="dm1q" />
|
|
480
|
+
<option name="codename" value="dm1q-SM-S911U" />
|
|
481
|
+
<option name="id" value="dm1q-SM-S911U" />
|
|
434
482
|
<option name="labId" value="google" />
|
|
435
483
|
<option name="manufacturer" value="Samsung" />
|
|
436
484
|
<option name="name" value="S23" />
|
|
@@ -500,6 +548,18 @@
|
|
|
500
548
|
<option name="screenX" value="1080" />
|
|
501
549
|
<option name="screenY" value="2340" />
|
|
502
550
|
</PersistentDeviceSelectionData>
|
|
551
|
+
<PersistentDeviceSelectionData>
|
|
552
|
+
<option name="api" value="36" />
|
|
553
|
+
<option name="brand" value="samsung" />
|
|
554
|
+
<option name="codename" value="e2q" />
|
|
555
|
+
<option name="id" value="e2q" />
|
|
556
|
+
<option name="labId" value="google" />
|
|
557
|
+
<option name="manufacturer" value="Samsung" />
|
|
558
|
+
<option name="name" value="Galaxy S24 +" />
|
|
559
|
+
<option name="screenDensity" value="450" />
|
|
560
|
+
<option name="screenX" value="1080" />
|
|
561
|
+
<option name="screenY" value="2340" />
|
|
562
|
+
</PersistentDeviceSelectionData>
|
|
503
563
|
<PersistentDeviceSelectionData>
|
|
504
564
|
<option name="api" value="34" />
|
|
505
565
|
<option name="brand" value="samsung" />
|
|
@@ -524,6 +584,18 @@
|
|
|
524
584
|
<option name="screenX" value="1440" />
|
|
525
585
|
<option name="screenY" value="3120" />
|
|
526
586
|
</PersistentDeviceSelectionData>
|
|
587
|
+
<PersistentDeviceSelectionData>
|
|
588
|
+
<option name="api" value="36" />
|
|
589
|
+
<option name="brand" value="samsung" />
|
|
590
|
+
<option name="codename" value="e3qksx" />
|
|
591
|
+
<option name="id" value="e3qksx" />
|
|
592
|
+
<option name="labId" value="google" />
|
|
593
|
+
<option name="manufacturer" value="Samsung" />
|
|
594
|
+
<option name="name" value="Galaxy S24 Ultra" />
|
|
595
|
+
<option name="screenDensity" value="450" />
|
|
596
|
+
<option name="screenX" value="1440" />
|
|
597
|
+
<option name="screenY" value="3120" />
|
|
598
|
+
</PersistentDeviceSelectionData>
|
|
527
599
|
<PersistentDeviceSelectionData>
|
|
528
600
|
<option name="api" value="33" />
|
|
529
601
|
<option name="brand" value="google" />
|
|
@@ -620,6 +692,18 @@
|
|
|
620
692
|
<option name="screenX" value="1080" />
|
|
621
693
|
<option name="screenY" value="2340" />
|
|
622
694
|
</PersistentDeviceSelectionData>
|
|
695
|
+
<PersistentDeviceSelectionData>
|
|
696
|
+
<option name="api" value="36" />
|
|
697
|
+
<option name="brand" value="samsung" />
|
|
698
|
+
<option name="codename" value="g0q" />
|
|
699
|
+
<option name="id" value="g0q" />
|
|
700
|
+
<option name="labId" value="google" />
|
|
701
|
+
<option name="manufacturer" value="Samsung" />
|
|
702
|
+
<option name="name" value="SM-S906U1" />
|
|
703
|
+
<option name="screenDensity" value="450" />
|
|
704
|
+
<option name="screenX" value="1080" />
|
|
705
|
+
<option name="screenY" value="2340" />
|
|
706
|
+
</PersistentDeviceSelectionData>
|
|
623
707
|
<PersistentDeviceSelectionData>
|
|
624
708
|
<option name="api" value="34" />
|
|
625
709
|
<option name="brand" value="samsung" />
|
|
@@ -718,6 +802,18 @@
|
|
|
718
802
|
<option name="screenX" value="1008" />
|
|
719
803
|
<option name="screenY" value="2244" />
|
|
720
804
|
</PersistentDeviceSelectionData>
|
|
805
|
+
<PersistentDeviceSelectionData>
|
|
806
|
+
<option name="api" value="35" />
|
|
807
|
+
<option name="brand" value="google" />
|
|
808
|
+
<option name="codename" value="husky" />
|
|
809
|
+
<option name="id" value="husky" />
|
|
810
|
+
<option name="labId" value="google" />
|
|
811
|
+
<option name="manufacturer" value="Google" />
|
|
812
|
+
<option name="name" value="Pixel 8 Pro" />
|
|
813
|
+
<option name="screenDensity" value="390" />
|
|
814
|
+
<option name="screenX" value="1008" />
|
|
815
|
+
<option name="screenY" value="2244" />
|
|
816
|
+
</PersistentDeviceSelectionData>
|
|
721
817
|
<PersistentDeviceSelectionData>
|
|
722
818
|
<option name="api" value="30" />
|
|
723
819
|
<option name="brand" value="motorola" />
|
|
@@ -862,6 +958,18 @@
|
|
|
862
958
|
<option name="screenX" value="1080" />
|
|
863
959
|
<option name="screenY" value="2400" />
|
|
864
960
|
</PersistentDeviceSelectionData>
|
|
961
|
+
<PersistentDeviceSelectionData>
|
|
962
|
+
<option name="api" value="35" />
|
|
963
|
+
<option name="brand" value="samsung" />
|
|
964
|
+
<option name="codename" value="o1q" />
|
|
965
|
+
<option name="id" value="o1q" />
|
|
966
|
+
<option name="labId" value="google" />
|
|
967
|
+
<option name="manufacturer" value="Samsung" />
|
|
968
|
+
<option name="name" value="Galaxy S21" />
|
|
969
|
+
<option name="screenDensity" value="421" />
|
|
970
|
+
<option name="screenX" value="1080" />
|
|
971
|
+
<option name="screenY" value="2400" />
|
|
972
|
+
</PersistentDeviceSelectionData>
|
|
865
973
|
<PersistentDeviceSelectionData>
|
|
866
974
|
<option name="api" value="31" />
|
|
867
975
|
<option name="brand" value="google" />
|
|
@@ -874,6 +982,18 @@
|
|
|
874
982
|
<option name="screenX" value="1080" />
|
|
875
983
|
<option name="screenY" value="2400" />
|
|
876
984
|
</PersistentDeviceSelectionData>
|
|
985
|
+
<PersistentDeviceSelectionData>
|
|
986
|
+
<option name="api" value="35" />
|
|
987
|
+
<option name="brand" value="samsung" />
|
|
988
|
+
<option name="codename" value="p3q" />
|
|
989
|
+
<option name="id" value="p3q" />
|
|
990
|
+
<option name="labId" value="google" />
|
|
991
|
+
<option name="manufacturer" value="Samsung" />
|
|
992
|
+
<option name="name" value="Galaxy S21 Ultra" />
|
|
993
|
+
<option name="screenDensity" value="600" />
|
|
994
|
+
<option name="screenX" value="1440" />
|
|
995
|
+
<option name="screenY" value="3200" />
|
|
996
|
+
</PersistentDeviceSelectionData>
|
|
877
997
|
<PersistentDeviceSelectionData>
|
|
878
998
|
<option name="api" value="36" />
|
|
879
999
|
<option name="brand" value="samsung" />
|
|
@@ -894,9 +1014,9 @@
|
|
|
894
1014
|
<option name="labId" value="google" />
|
|
895
1015
|
<option name="manufacturer" value="Samsung" />
|
|
896
1016
|
<option name="name" value="Galaxy S25 Ultra" />
|
|
897
|
-
<option name="screenDensity" value="
|
|
898
|
-
<option name="screenX" value="
|
|
899
|
-
<option name="screenY" value="
|
|
1017
|
+
<option name="screenDensity" value="450" />
|
|
1018
|
+
<option name="screenX" value="1080" />
|
|
1019
|
+
<option name="screenY" value="2340" />
|
|
900
1020
|
</PersistentDeviceSelectionData>
|
|
901
1021
|
<PersistentDeviceSelectionData>
|
|
902
1022
|
<option name="api" value="36" />
|
|
@@ -906,9 +1026,9 @@
|
|
|
906
1026
|
<option name="labId" value="google" />
|
|
907
1027
|
<option name="manufacturer" value="Samsung" />
|
|
908
1028
|
<option name="name" value="Galaxy S25 Ultra" />
|
|
909
|
-
<option name="screenDensity" value="
|
|
910
|
-
<option name="screenX" value="
|
|
911
|
-
<option name="screenY" value="
|
|
1029
|
+
<option name="screenDensity" value="450" />
|
|
1030
|
+
<option name="screenX" value="1080" />
|
|
1031
|
+
<option name="screenY" value="2340" />
|
|
912
1032
|
</PersistentDeviceSelectionData>
|
|
913
1033
|
<PersistentDeviceSelectionData>
|
|
914
1034
|
<option name="api" value="33" />
|
|
@@ -984,6 +1104,30 @@
|
|
|
984
1104
|
<option name="screenX" value="1080" />
|
|
985
1105
|
<option name="screenY" value="2340" />
|
|
986
1106
|
</PersistentDeviceSelectionData>
|
|
1107
|
+
<PersistentDeviceSelectionData>
|
|
1108
|
+
<option name="api" value="36" />
|
|
1109
|
+
<option name="brand" value="samsung" />
|
|
1110
|
+
<option name="codename" value="r11s" />
|
|
1111
|
+
<option name="id" value="r11s" />
|
|
1112
|
+
<option name="labId" value="google" />
|
|
1113
|
+
<option name="manufacturer" value="Samsung" />
|
|
1114
|
+
<option name="name" value="SM-S711N" />
|
|
1115
|
+
<option name="screenDensity" value="450" />
|
|
1116
|
+
<option name="screenX" value="1080" />
|
|
1117
|
+
<option name="screenY" value="2340" />
|
|
1118
|
+
</PersistentDeviceSelectionData>
|
|
1119
|
+
<PersistentDeviceSelectionData>
|
|
1120
|
+
<option name="api" value="33" />
|
|
1121
|
+
<option name="brand" value="samsung" />
|
|
1122
|
+
<option name="codename" value="r8q" />
|
|
1123
|
+
<option name="id" value="r8q" />
|
|
1124
|
+
<option name="labId" value="google" />
|
|
1125
|
+
<option name="manufacturer" value="Samsung" />
|
|
1126
|
+
<option name="name" value="Galaxy S20 FE 5G" />
|
|
1127
|
+
<option name="screenDensity" value="480" />
|
|
1128
|
+
<option name="screenX" value="1080" />
|
|
1129
|
+
<option name="screenY" value="2400" />
|
|
1130
|
+
</PersistentDeviceSelectionData>
|
|
987
1131
|
<PersistentDeviceSelectionData>
|
|
988
1132
|
<option name="api" value="36" />
|
|
989
1133
|
<option name="brand" value="samsung" />
|
|
@@ -996,6 +1140,18 @@
|
|
|
996
1140
|
<option name="screenX" value="1080" />
|
|
997
1141
|
<option name="screenY" value="2340" />
|
|
998
1142
|
</PersistentDeviceSelectionData>
|
|
1143
|
+
<PersistentDeviceSelectionData>
|
|
1144
|
+
<option name="api" value="36" />
|
|
1145
|
+
<option name="brand" value="samsung" />
|
|
1146
|
+
<option name="codename" value="r9q-SM-G990U" />
|
|
1147
|
+
<option name="id" value="r9q-SM-G990U" />
|
|
1148
|
+
<option name="labId" value="google" />
|
|
1149
|
+
<option name="manufacturer" value="Samsung" />
|
|
1150
|
+
<option name="name" value="Galaxy S21 FE 5G" />
|
|
1151
|
+
<option name="screenDensity" value="480" />
|
|
1152
|
+
<option name="screenX" value="1080" />
|
|
1153
|
+
<option name="screenY" value="2340" />
|
|
1154
|
+
</PersistentDeviceSelectionData>
|
|
999
1155
|
<PersistentDeviceSelectionData>
|
|
1000
1156
|
<option name="api" value="36" />
|
|
1001
1157
|
<option name="brand" value="google" />
|
|
@@ -1044,6 +1200,18 @@
|
|
|
1044
1200
|
<option name="screenX" value="1080" />
|
|
1045
1201
|
<option name="screenY" value="2400" />
|
|
1046
1202
|
</PersistentDeviceSelectionData>
|
|
1203
|
+
<PersistentDeviceSelectionData>
|
|
1204
|
+
<option name="api" value="35" />
|
|
1205
|
+
<option name="brand" value="samsung" />
|
|
1206
|
+
<option name="codename" value="t2q" />
|
|
1207
|
+
<option name="id" value="t2q" />
|
|
1208
|
+
<option name="labId" value="google" />
|
|
1209
|
+
<option name="manufacturer" value="Samsung" />
|
|
1210
|
+
<option name="name" value="Galaxy S21 Plus" />
|
|
1211
|
+
<option name="screenDensity" value="394" />
|
|
1212
|
+
<option name="screenX" value="1080" />
|
|
1213
|
+
<option name="screenY" value="2400" />
|
|
1214
|
+
</PersistentDeviceSelectionData>
|
|
1047
1215
|
<PersistentDeviceSelectionData>
|
|
1048
1216
|
<option name="api" value="33" />
|
|
1049
1217
|
<option name="brand" value="google" />
|
package/android/build.gradle
CHANGED
|
@@ -46,14 +46,14 @@ repositories {
|
|
|
46
46
|
google()
|
|
47
47
|
mavenCentral()
|
|
48
48
|
maven { url 'https://www.jitpack.io' }
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
49
|
+
maven {
|
|
50
|
+
url "http://10.18.1.5:8081/repository/maven-releases/"
|
|
51
|
+
allowInsecureProtocol = true // 如果私服是HTTP而非HTTPS,需要此配置
|
|
52
|
+
credentials {
|
|
53
|
+
username = "admin" // 如果需要认证
|
|
54
|
+
password = "ZTUz-Yjg0OGRm"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
57
|
maven {
|
|
58
58
|
url 'http://117.149.10.66:38185/repository/cmcc-android-public/'
|
|
59
59
|
allowInsecureProtocol(true)
|
|
@@ -31,6 +31,12 @@ import com.beidou.bluetooth.callback.BluetoothConnectionCallback;
|
|
|
31
31
|
import com.beidou.bluetooth.callback.BluetoothDataCallback;
|
|
32
32
|
import com.beidou.bluetooth.callback.BluetoothPushCallback;
|
|
33
33
|
import com.beidou.bluetooth.model.BlueDeviceInfoEntity;
|
|
34
|
+
//import com.cmcc.bdmsg.bdmsgterminal.BDMsgAuthTerminalSdk;
|
|
35
|
+
//import com.cmcc.bdmsg.bdmsgterminal.model.BDMsgGetKeyAndAuthTerminalResponse;
|
|
36
|
+
//import com.cmcc.bdmsg.bdmsgterminal.model.BDMsgGetUserInfoTerminalResponse;
|
|
37
|
+
//import com.cmcc.bdmsgserver.bdmsgauth.model.BDMsgEphemerisFileDownloadResponse;
|
|
38
|
+
//import com.cmcc.bdmsgserver.bdmsgauth.model.BDMsgMailReplyResponse;
|
|
39
|
+
//import com.cmcc.bdmsgserver.bdmsgauth.model.BDMsgSMCryptResponse;
|
|
34
40
|
import com.facebook.react.bridge.Callback;
|
|
35
41
|
import com.facebook.react.bridge.Promise;
|
|
36
42
|
import com.facebook.react.bridge.ReactApplicationContext;
|
|
@@ -48,6 +54,7 @@ import org.json.JSONException;
|
|
|
48
54
|
|
|
49
55
|
import java.util.Arrays;
|
|
50
56
|
import java.util.Base64;
|
|
57
|
+
import java.util.LinkedList;
|
|
51
58
|
import java.util.Map;
|
|
52
59
|
import java.util.Objects;
|
|
53
60
|
import java.util.ArrayList;
|
|
@@ -770,46 +777,84 @@ public class BeiDouBluetoothModule extends ReactContextBaseJavaModule {
|
|
|
770
777
|
@ReactMethod
|
|
771
778
|
public void BDAuthenticate(int slotId, Promise promise) {
|
|
772
779
|
beidouAidlHelper.authenticate(slotId, promise);
|
|
780
|
+
// new Thread(() -> {
|
|
781
|
+
// BDMsgGetKeyAndAuthTerminalResponse ksKeyAndAuthResult = BDMsgAuthTerminalSdk.getInstance(reactContext).getKsKeyAndAuthResult(slotId);
|
|
782
|
+
// promise.resolve(ksKeyAndAuthResult.toString());
|
|
783
|
+
// }).start();
|
|
773
784
|
}
|
|
774
785
|
|
|
775
786
|
@ReactMethod
|
|
776
787
|
public void getBDMsgStatus(int slotId, Promise promise) {
|
|
777
788
|
beidouAidlHelper.getStatus(slotId, promise);
|
|
789
|
+
// new Thread(() -> {
|
|
790
|
+
// BDMsgGetUserInfoTerminalResponse currentUserInfo = BDMsgAuthTerminalSdk.getInstance(reactContext).getCurrentUserInfo(slotId);
|
|
791
|
+
// promise.resolve(currentUserInfo.toString());
|
|
792
|
+
// }).start();
|
|
778
793
|
}
|
|
779
794
|
|
|
780
795
|
@ReactMethod
|
|
781
796
|
public void checkValidatedKey(int slotId, Promise promise) {
|
|
782
797
|
beidouAidlHelper.checkValidatedKey(slotId, promise);
|
|
798
|
+
// new Thread(() -> {
|
|
799
|
+
// int i = BDMsgAuthTerminalSdk.getInstance(reactContext).checkKeyIsExistAndValidate(slotId);
|
|
800
|
+
// promise.resolve(i);
|
|
801
|
+
// }).start();
|
|
783
802
|
}
|
|
784
803
|
|
|
785
804
|
@ReactMethod
|
|
786
805
|
public void commonBDMsgEncrypt(int slotId, String speedType, @Nullable ReadableArray receiveList, String inputMsg,
|
|
787
806
|
Promise promise) {
|
|
788
807
|
beidouAidlHelper.commonBDMsgEncrypt(slotId, speedType, receiveList, inputMsg, promise);
|
|
808
|
+
// new Thread(() -> {
|
|
809
|
+
// LinkedList<String> receiveStringList = readableArrayToStringList(receiveList);
|
|
810
|
+
// List<BDMsgSMCryptResponse> bdMsgSMCryptResponses = BDMsgAuthTerminalSdk.getInstance(reactContext).commonMessageEncryptBDMsgByTerminal(slotId, speedType, receiveStringList, inputMsg);
|
|
811
|
+
// promise.resolve(bdMsgSMCryptResponses.toString());
|
|
812
|
+
// }).start();
|
|
789
813
|
}
|
|
790
814
|
|
|
791
815
|
@ReactMethod
|
|
792
816
|
public void positionBDMsgEncrypt(int slotId, String speedType, @Nullable ReadableArray receiveList, String inputMsg,
|
|
793
817
|
double longitude, double latitude, Promise promise) {
|
|
794
818
|
beidouAidlHelper.positionBDMsgEncrypt(slotId, speedType, receiveList, inputMsg, longitude, latitude, promise);
|
|
819
|
+
// new Thread(() -> {
|
|
820
|
+
// LinkedList<String> receiveStringList = readableArrayToStringList(receiveList);
|
|
821
|
+
// List<BDMsgSMCryptResponse> bdMsgSMCryptResponses = BDMsgAuthTerminalSdk.getInstance(reactContext).positionReportEncryptBDMsgByTerminal(slotId, speedType, receiveStringList, inputMsg, longitude, latitude);
|
|
822
|
+
// promise.resolve(bdMsgSMCryptResponses.toString());
|
|
823
|
+
// }).start();
|
|
795
824
|
}
|
|
796
825
|
|
|
797
826
|
@ReactMethod
|
|
798
827
|
public void commonEmergencyBDMsgEncrypt(int slotId, String speedType, @Nullable ReadableArray receiveList, String inputMsg,
|
|
799
828
|
Promise promise) {
|
|
800
829
|
beidouAidlHelper.commonEmergencyBDMsgEncrypt(slotId, speedType, receiveList, inputMsg, promise);
|
|
830
|
+
// new Thread(() -> {
|
|
831
|
+
// LinkedList<String> receiveStringList = readableArrayToStringList(receiveList);
|
|
832
|
+
// List<BDMsgSMCryptResponse> bdMsgSMCryptResponses = BDMsgAuthTerminalSdk.getInstance(reactContext).commonMessageEncryptBDMsgByEmergencyTerminal(slotId, speedType, receiveStringList, inputMsg);
|
|
833
|
+
// promise.resolve(bdMsgSMCryptResponses.toString());
|
|
834
|
+
// }).start();
|
|
801
835
|
}
|
|
802
836
|
|
|
803
837
|
@ReactMethod
|
|
804
838
|
public void positionEmergencyBDMsgEncrypt(int slotId, String speedType, @Nullable ReadableArray receiveList, String inputMsg,
|
|
805
839
|
double longitude, double latitude, Promise promise) {
|
|
806
840
|
beidouAidlHelper.positionEmergencyBDMsgEncrypt(slotId, speedType, receiveList, inputMsg, longitude, latitude, promise);
|
|
841
|
+
// new Thread(() -> {
|
|
842
|
+
// LinkedList<String> receiveStringList = readableArrayToStringList(receiveList);
|
|
843
|
+
// List<BDMsgSMCryptResponse> bdMsgSMCryptResponses = BDMsgAuthTerminalSdk.getInstance(reactContext).positionReportEncryptBDMsgByEmergencyTerminal(slotId, speedType, receiveStringList, inputMsg, longitude, latitude);
|
|
844
|
+
// promise.resolve(bdMsgSMCryptResponses.toString());
|
|
845
|
+
// }).start();
|
|
807
846
|
}
|
|
808
847
|
|
|
809
848
|
@ReactMethod
|
|
810
849
|
public void commonRichMediaBDMsgEncrypt(int slotId, String speedType, @Nullable ReadableArray receiveList, String msgType,
|
|
811
850
|
@Nullable ReadableArray inputRichMediaData, Promise promise) {
|
|
812
851
|
beidouAidlHelper.commonRichMediaBDMsgEncrypt(slotId, speedType, receiveList, msgType, inputRichMediaData, promise);
|
|
852
|
+
// new Thread(() -> {
|
|
853
|
+
// LinkedList<String> receiveStringList = readableArrayToStringList(receiveList);
|
|
854
|
+
// byte[] bytes = readableArrayToByteArray(inputRichMediaData);
|
|
855
|
+
// List<BDMsgSMCryptResponse> bdMsgSMCryptResponses = BDMsgAuthTerminalSdk.getInstance(reactContext).commonRichMediaEncryptBDMsgByTerminal(slotId, speedType, receiveStringList,msgType,bytes);
|
|
856
|
+
// promise.resolve(bdMsgSMCryptResponses.toString());
|
|
857
|
+
// }).start();
|
|
813
858
|
}
|
|
814
859
|
|
|
815
860
|
@ReactMethod
|
|
@@ -817,6 +862,12 @@ public class BeiDouBluetoothModule extends ReactContextBaseJavaModule {
|
|
|
817
862
|
@Nullable ReadableArray inputRichMediaData, double longitude, double latitude, Promise promise) {
|
|
818
863
|
beidouAidlHelper.positionRichMediaBDMsgEncrypt(slotId, speedType, receiveList, msgType, inputRichMediaData, longitude,
|
|
819
864
|
latitude, promise);
|
|
865
|
+
// new Thread(() -> {
|
|
866
|
+
// LinkedList<String> receiveStringList = readableArrayToStringList(receiveList);
|
|
867
|
+
// byte[] bytes = readableArrayToByteArray(inputRichMediaData);
|
|
868
|
+
// List<BDMsgSMCryptResponse> bdMsgSMCryptResponses = BDMsgAuthTerminalSdk.getInstance(reactContext).positionRichMediaReportEncryptBDMsgByTerminal(slotId, speedType, receiveStringList, msgType, bytes, longitude, latitude);
|
|
869
|
+
// promise.resolve(bdMsgSMCryptResponses.toString());
|
|
870
|
+
// }).start();
|
|
820
871
|
}
|
|
821
872
|
|
|
822
873
|
@ReactMethod
|
|
@@ -824,6 +875,12 @@ public class BeiDouBluetoothModule extends ReactContextBaseJavaModule {
|
|
|
824
875
|
String msgType, @Nullable ReadableArray inputRichMediaData, Promise promise) {
|
|
825
876
|
beidouAidlHelper.commonRichMediaAndTextBDMsgEncrypt(slotId, speedType, receiveList, text, msgType, inputRichMediaData,
|
|
826
877
|
promise);
|
|
878
|
+
// new Thread(() -> {
|
|
879
|
+
// LinkedList<String> receiveStringList = readableArrayToStringList(receiveList);
|
|
880
|
+
// byte[] bytes = readableArrayToByteArray(inputRichMediaData);
|
|
881
|
+
// List<BDMsgSMCryptResponse> bdMsgSMCryptResponses = BDMsgAuthTerminalSdk.getInstance(reactContext).commonRichMediaAndTextEncryptBDMsgByTerminal(slotId, speedType, receiveStringList, text, msgType, bytes);
|
|
882
|
+
// promise.resolve(bdMsgSMCryptResponses.toString());
|
|
883
|
+
// }).start();
|
|
827
884
|
}
|
|
828
885
|
|
|
829
886
|
@ReactMethod
|
|
@@ -831,26 +888,49 @@ public class BeiDouBluetoothModule extends ReactContextBaseJavaModule {
|
|
|
831
888
|
String msgType, @Nullable ReadableArray inputRichMediaData, double longitude, double latitude, Promise promise) {
|
|
832
889
|
beidouAidlHelper.positionRichMediaAndTextBDMsgEncrypt(slotId, speedType, receiveList, text, msgType, inputRichMediaData,
|
|
833
890
|
longitude, latitude, promise);
|
|
891
|
+
// new Thread(() -> {
|
|
892
|
+
// LinkedList<String> receiveStringList = readableArrayToStringList(receiveList);
|
|
893
|
+
// byte[] bytes = readableArrayToByteArray(inputRichMediaData);
|
|
894
|
+
// List<BDMsgSMCryptResponse> bdMsgSMCryptResponses = BDMsgAuthTerminalSdk.getInstance(reactContext).positionRichMediaAndTextReportEncryptBDMsgByTerminal(slotId, speedType, receiveStringList, text, msgType, bytes, longitude, latitude);
|
|
895
|
+
// promise.resolve(bdMsgSMCryptResponses.toString());
|
|
896
|
+
// }).start();
|
|
834
897
|
}
|
|
835
898
|
|
|
836
899
|
@ReactMethod
|
|
837
900
|
public void BDMailboxQueryEncrypt(int slotId, Promise promise) {
|
|
838
901
|
beidouAidlHelper.mailboxQueryEncrypt(slotId, promise);
|
|
902
|
+
// new Thread(() -> {
|
|
903
|
+
// BDMsgSMCryptResponse bdMsgSMCryptResponse = BDMsgAuthTerminalSdk.getInstance(reactContext).mailboxQueryEncryptBDMsg(slotId);
|
|
904
|
+
// promise.resolve(bdMsgSMCryptResponse.toString());
|
|
905
|
+
// }).start();
|
|
839
906
|
}
|
|
840
907
|
|
|
841
908
|
@ReactMethod
|
|
842
909
|
public void EmergencyBDMailboxQueryEncrypt(int slotId, String replyMobile, Promise promise) {
|
|
843
910
|
beidouAidlHelper.emergencyMailboxQueryEncrypt(slotId, replyMobile, promise);
|
|
911
|
+
// new Thread(() -> {
|
|
912
|
+
// BDMsgSMCryptResponse bdMsgSMCryptResponse = BDMsgAuthTerminalSdk.getInstance(reactContext).mailboxQueryEncryptBDMsgByEmergency(slotId,replyMobile);
|
|
913
|
+
// promise.resolve(bdMsgSMCryptResponse.toString());
|
|
914
|
+
// }).start();
|
|
844
915
|
}
|
|
845
916
|
|
|
846
917
|
@ReactMethod
|
|
847
918
|
public void BDMsgDecrypt(int slotId, @Nullable ReadableArray msg, int len, Promise promise) {
|
|
848
919
|
beidouAidlHelper.decryptMessage(slotId, msg, len, promise);
|
|
920
|
+
// new Thread(() -> {
|
|
921
|
+
// byte[] bytes = readableArrayToByteArray(msg);
|
|
922
|
+
// BDMsgMailReplyResponse bdMsgMailReplyResponse = BDMsgAuthTerminalSdk.getInstance(reactContext).mailboxReplyDecryptBDMsg(slotId, bytes, len);
|
|
923
|
+
// promise.resolve(bdMsgMailReplyResponse.toString());
|
|
924
|
+
// }).start();
|
|
849
925
|
}
|
|
850
926
|
|
|
851
927
|
@ReactMethod
|
|
852
928
|
public void DLEphemerisFile(int slotId, String type, String version, Promise promise) {
|
|
853
929
|
beidouAidlHelper.downloadEphemerisFile(slotId, type, version, promise);
|
|
930
|
+
// new Thread(() -> {
|
|
931
|
+
// BDMsgEphemerisFileDownloadResponse bdMsgEphemerisFileDownloadResponse = BDMsgAuthTerminalSdk.getInstance(reactContext).downloadEphemerisFile(slotId, type, version);
|
|
932
|
+
// promise.resolve(bdMsgEphemerisFileDownloadResponse.toString());
|
|
933
|
+
// }).start();
|
|
854
934
|
}
|
|
855
935
|
|
|
856
936
|
// 设置BLE密钥
|
|
@@ -900,13 +980,13 @@ public class BeiDouBluetoothModule extends ReactContextBaseJavaModule {
|
|
|
900
980
|
try {
|
|
901
981
|
Location gpsLocation = null;
|
|
902
982
|
Location networkLocation = null;
|
|
903
|
-
|
|
983
|
+
|
|
904
984
|
try {
|
|
905
985
|
if (locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)) {
|
|
906
986
|
gpsLocation = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);
|
|
907
987
|
}
|
|
908
988
|
} catch (Exception ignored) {}
|
|
909
|
-
|
|
989
|
+
|
|
910
990
|
try {
|
|
911
991
|
if (locationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER)) {
|
|
912
992
|
networkLocation = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);
|
|
@@ -959,6 +1039,26 @@ public class BeiDouBluetoothModule extends ReactContextBaseJavaModule {
|
|
|
959
1039
|
return map;
|
|
960
1040
|
}
|
|
961
1041
|
|
|
1042
|
+
private LinkedList<String> readableArrayToStringList(@Nullable ReadableArray readableArray) {
|
|
1043
|
+
LinkedList<String> list = new LinkedList<>();
|
|
1044
|
+
if (readableArray == null) {
|
|
1045
|
+
return list;
|
|
1046
|
+
}
|
|
1047
|
+
for (int i = 0; i < readableArray.size(); i++) {
|
|
1048
|
+
list.add(readableArray.getString(i));
|
|
1049
|
+
}
|
|
1050
|
+
return list;
|
|
1051
|
+
}
|
|
1052
|
+
private byte[] readableArrayToByteArray(@Nullable ReadableArray readableArray) {
|
|
1053
|
+
if (readableArray == null) {
|
|
1054
|
+
return new byte[0];
|
|
1055
|
+
}
|
|
1056
|
+
byte[] bytes = new byte[readableArray.size()];
|
|
1057
|
+
for (int i = 0; i < readableArray.size(); i++) {
|
|
1058
|
+
bytes[i] = (byte) readableArray.getInt(i);
|
|
1059
|
+
}
|
|
1060
|
+
return bytes;
|
|
1061
|
+
}
|
|
962
1062
|
/**
|
|
963
1063
|
* 主动请求单次定位(带超时)
|
|
964
1064
|
*/
|
|
@@ -1008,7 +1108,7 @@ public class BeiDouBluetoothModule extends ReactContextBaseJavaModule {
|
|
|
1008
1108
|
if (isHandled.compareAndSet(false, true)) {
|
|
1009
1109
|
// 超时后移除监听
|
|
1010
1110
|
locationManager.removeUpdates(listener);
|
|
1011
|
-
|
|
1111
|
+
|
|
1012
1112
|
// 尝试最后一次获取缓存作为保底
|
|
1013
1113
|
try {
|
|
1014
1114
|
Location loc = locationManager.getLastKnownLocation(provider);
|