react-native-beidou 1.1.3 → 1.1.6
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/Compass.android.tsx +4 -12
- package/Compass.ios.tsx +2 -3
- package/android/build.gradle +22 -9
- package/android/src/main/AndroidManifest.xml +1 -0
- package/android/src/main/java/com/fxzs.rnbeidou/BeiDouBluetoothModule.java +528 -188
- package/android/src/main/java/com/fxzs.rnbeidou/BeiDouBluetoothPackage.java +10 -13
- package/android/src/main/java/com/fxzs.rnbeidou/BeidouAidlHelper.java +45 -13
- package/android/src/main/java/com/fxzs.rnbeidou/SuperSimModule.java +301 -0
- package/android/src/main/java/com/fxzs.rnbeidou/view/CompassManager.java +15 -15
- package/android/src/main/java/com/fxzs.rnbeidou/view/CompassView.java +10 -4
- package/index.ts +128 -228
- package/ios/BeiDouBluetoothModule.m +147 -20
- package/ios/BeidouBluetooth.framework/BeidouBluetooth +0 -0
- package/ios/BeidouBluetooth.framework/FMDB.bundle/Info.plist +0 -0
- package/ios/BeidouBluetooth.framework/Info.plist +0 -0
- package/ios/BeidouBluetooth.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/BeidouBluetooth.framework/_CodeSignature/CodeRequirements-1 +0 -0
- package/ios/BeidouBluetooth.framework/_CodeSignature/CodeResources +4 -4
- package/ios/BeidouBluetooth.framework/_CodeSignature/CodeSignature +0 -0
- package/ios/CompassView.h +1 -0
- package/ios/CompassView.m +3 -0
- package/ios/CompassViewComponentView.h +11 -0
- package/ios/CompassViewComponentView.mm +64 -0
- package/package.json +3 -5
- package/react-native-beidou.podspec +6 -3
- package/react-native.config.js +2 -5
- package/src/CompassViewNativeComponent.ts +13 -0
- package/src/NativeBeiDouBluetooth.ts +57 -0
- package/src/NativeSuperSim.ts +21 -0
- package/BeiDouAIDLTestPage.tsx +0 -1196
- package/LogManager.ts +0 -285
- package/TestPage.ts +0 -6
- package/android/.gradle/8.10/checksums/checksums.lock +0 -0
- package/android/.gradle/8.10/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.10/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.10/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.10/gc.properties +0 -0
- package/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.9/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/config.properties +0 -2
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/AndroidProjectSystem.xml +0 -6
- package/android/.idea/caches/deviceStreaming.xml +0 -1138
- package/android/.idea/gradle.xml +0 -13
- package/android/.idea/migrations.xml +0 -10
- package/android/.idea/misc.xml +0 -9
- package/android/.idea/runConfigurations.xml +0 -17
- package/android/.idea/vcs.xml +0 -6
- package/android/local.properties +0 -8
- package/android/src/main/java/com/fxzs.rnbeidou/LogManager.java +0 -488
package/Compass.android.tsx
CHANGED
|
@@ -1,20 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
const CompassView = requireNativeComponent('CompassView');
|
|
2
|
+
import { ViewStyle } from 'react-native';
|
|
3
|
+
import CompassView from './src/CompassViewNativeComponent';
|
|
5
4
|
|
|
6
5
|
const CompassAndroid = ({ style, onHeadingChange }:{
|
|
7
6
|
style: ViewStyle;
|
|
8
|
-
onHeadingChange
|
|
7
|
+
onHeadingChange?: (event: { nativeEvent: { radians: number; degrees: number } }) => void
|
|
9
8
|
}) => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
React.useEffect(() => {
|
|
13
|
-
const subscription = eventEmitter.addListener('onCompassUpdate', onHeadingChange);
|
|
14
|
-
return () => subscription.remove();
|
|
15
|
-
}, [onHeadingChange]);
|
|
16
|
-
|
|
17
|
-
return <CompassView style={style} />;
|
|
9
|
+
return <CompassView style={style} onHeadingChange={onHeadingChange} />;
|
|
18
10
|
};
|
|
19
11
|
|
|
20
12
|
export default CompassAndroid;
|
package/Compass.ios.tsx
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ViewStyle } from 'react-native';
|
|
3
|
+
import CompassNativeView from './src/CompassViewNativeComponent';
|
|
3
4
|
|
|
4
5
|
type CompassProps = {
|
|
5
6
|
style?: ViewStyle;
|
|
6
7
|
onHeadingChange?: (event: { nativeEvent: { radians: number; degrees: number } }) => void;
|
|
7
8
|
};
|
|
8
9
|
|
|
9
|
-
const CompassNativeView = requireNativeComponent<CompassProps>('CompassView');
|
|
10
|
-
|
|
11
10
|
const Compass: React.FC<CompassProps> = (props) => {
|
|
12
11
|
return <CompassNativeView {...props} />;
|
|
13
12
|
};
|
package/android/build.gradle
CHANGED
|
@@ -46,17 +46,21 @@ 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.0.1:8081/repository/maven-releases/"
|
|
51
|
+
allowInsecureProtocol = true // 如果私服是HTTP而非HTTPS,需要此配置
|
|
52
|
+
credentials {
|
|
53
|
+
username = "admin" // 如果需要认证
|
|
54
|
+
password = "ZTUz-Yjg0OGRm"
|
|
55
|
+
}
|
|
56
|
+
metadataSources {
|
|
57
|
+
mavenPom()
|
|
58
|
+
artifact()
|
|
59
|
+
}
|
|
60
|
+
}
|
|
57
61
|
maven {
|
|
58
62
|
url 'http://117.149.10.66:38185/repository/cmcc-android-public/'
|
|
59
|
-
allowInsecureProtocol
|
|
63
|
+
allowInsecureProtocol = true
|
|
60
64
|
credentials {
|
|
61
65
|
username 'cmccit'
|
|
62
66
|
password 'RV=hyFmVnR%R)XM(FSt-'
|
|
@@ -69,6 +73,15 @@ dependencies {
|
|
|
69
73
|
//noinspection GradleDynamicVersion
|
|
70
74
|
implementation "com.facebook.react:react-native:${_reactNativeVersion}"
|
|
71
75
|
implementation 'com.fxzs:beidousdk:1.0.8@aar'
|
|
76
|
+
implementation 'com.bdmsg:secure-release:1.0.0'
|
|
77
|
+
implementation 'com.bdmsg:core-release:1.0.0'
|
|
78
|
+
implementation 'com.bdmsg:gba-release:1.0.0'
|
|
79
|
+
implementation 'cn.hutool:hutool-all:5.8.25'
|
|
80
|
+
implementation 'com.google.code.gson:gson:2.8.7'
|
|
81
|
+
|
|
82
|
+
// implementation 'com.fxzs:beidousdk:1.1.2@aar'
|
|
83
|
+
// implementation 'com.bdmsg:secure:1.0.0@aar'
|
|
84
|
+
|
|
72
85
|
// Add local AAR files
|
|
73
86
|
implementation fileTree(dir: "src/main/libs", include: ["*.jar", "*.aar"])
|
|
74
87
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
|
|
5
5
|
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
|
|
6
6
|
<uses-permission android:name="android.permission.READ_PHONE_NUMBERS" />
|
|
7
|
+
<uses-permission android:name="android.permission.READ_CONTACTS" />
|
|
7
8
|
<!-- Android 10+ 建議聲明後台定位,如不需要可去除 -->
|
|
8
9
|
<!-- <uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" /> -->
|
|
9
10
|
</manifest>
|