react-native-beidou 1.0.3 → 1.0.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.
Files changed (70) hide show
  1. package/BeiDouAIDLTestPage.tsx +7 -7
  2. package/Compass.android.tsx +20 -0
  3. package/android/.gradle/8.9/checksums/checksums.lock +0 -0
  4. package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
  5. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  6. package/android/.gradle/buildOutputCleanup/cache.properties +1 -1
  7. package/android/.idea/AndroidProjectSystem.xml +6 -0
  8. package/android/.idea/gradle.xml +13 -0
  9. package/android/.idea/migrations.xml +10 -0
  10. package/android/.idea/misc.xml +9 -0
  11. package/android/.idea/runConfigurations.xml +17 -0
  12. package/android/.idea/vcs.xml +6 -0
  13. package/android/build.gradle +3 -0
  14. package/android/src/main/AndroidManifest.xml +7 -0
  15. package/android/src/main/java/com/cmcc_rn_module/BeiDouBluetoothModule.java +343 -101
  16. package/android/src/main/java/com/cmcc_rn_module/BeiDouBluetoothPackage.java +4 -1
  17. package/android/src/main/java/com/cmcc_rn_module/ChatDBManager.java +306 -0
  18. package/android/src/main/java/com/cmcc_rn_module/JsonUtil.java +113 -7
  19. package/android/src/main/java/com/cmcc_rn_module/view/CompassManager.java +41 -0
  20. package/android/src/main/java/com/cmcc_rn_module/view/CompassView.java +277 -0
  21. package/android/src/main/libs/bluetooth-sdk.aar +0 -0
  22. package/index.ts +188 -10
  23. package/ios/BDTCompassViewManager.h +15 -0
  24. package/ios/BDTCompassViewManager.m +24 -0
  25. package/ios/BeiDouBluetoothModule.h +20 -0
  26. package/ios/BeiDouBluetoothModule.m +424 -0
  27. package/ios/BeidouBluetooth.framework/BeidouBluetooth +0 -0
  28. package/ios/BeidouBluetooth.framework/Headers/BDTBluetoothManager.h +76 -0
  29. package/ios/BeidouBluetooth.framework/Headers/BDTChatDBManager.h +41 -0
  30. package/ios/BeidouBluetooth.framework/Headers/BDTDataPacketBuilder.h +62 -0
  31. package/ios/BeidouBluetooth.framework/Headers/BeidouBluetooth.h +21 -0
  32. package/ios/BeidouBluetooth.framework/Info.plist +0 -0
  33. package/ios/BeidouBluetooth.framework/Modules/module.modulemap +6 -0
  34. package/ios/BeidouBluetooth.framework/_CodeSignature/CodeDirectory +0 -0
  35. package/ios/BeidouBluetooth.framework/_CodeSignature/CodeRequirements +0 -0
  36. package/ios/BeidouBluetooth.framework/_CodeSignature/CodeRequirements-1 +0 -0
  37. package/ios/BeidouBluetooth.framework/_CodeSignature/CodeResources +177 -0
  38. package/ios/BeidouBluetooth.framework/_CodeSignature/CodeSignature +0 -0
  39. package/ios/CompassView.h +20 -0
  40. package/ios/CompassView.m +201 -0
  41. package/package.json +2 -1
  42. package/android/.gradle/8.8/checksums/checksums.lock +0 -0
  43. package/android/.gradle/8.8/dependencies-accessors/gc.properties +0 -0
  44. package/android/.gradle/8.8/fileChanges/last-build.bin +0 -0
  45. package/android/.gradle/8.8/fileHashes/fileHashes.bin +0 -0
  46. package/android/.gradle/8.8/fileHashes/fileHashes.lock +0 -0
  47. package/android/.gradle/8.8/gc.properties +0 -0
  48. package/ios/Podfile +0 -79
  49. package/ios/build_sdk.sh +0 -30
  50. package/ios/cmcc_rn_module/AppDelegate.h +0 -8
  51. package/ios/cmcc_rn_module/AppDelegate.mm +0 -108
  52. package/ios/cmcc_rn_module/CMCCAssetsLoaderModule.h +0 -17
  53. package/ios/cmcc_rn_module/CMCCAssetsLoaderModule.m +0 -38
  54. package/ios/cmcc_rn_module/Images.xcassets/AppIcon.appiconset/Contents.json +0 -53
  55. package/ios/cmcc_rn_module/Images.xcassets/Contents.json +0 -6
  56. package/ios/cmcc_rn_module/Info.plist +0 -62
  57. package/ios/cmcc_rn_module/LaunchScreen.storyboard +0 -47
  58. package/ios/cmcc_rn_module/main.m +0 -10
  59. package/ios/cmcc_rn_module.xcodeproj/project.pbxproj +0 -708
  60. package/ios/cmcc_rn_module.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  61. package/ios/cmcc_rn_module.xcodeproj/xcshareddata/xcschemes/cmcc_rn_module.xcscheme +0 -88
  62. package/ios/cmcc_rn_module.xcworkspace/contents.xcworkspacedata +0 -10
  63. package/ios/cmcc_rn_module.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  64. package/ios/cmcc_rn_moduleTests/Info.plist +0 -24
  65. package/ios/cmcc_rn_moduleTests/cmcc_rn_moduleTests.m +0 -66
  66. package/ios/reset_env.sh +0 -24
  67. package/ios/scripts/RNReanimated.podspec +0 -90
  68. package/ios/scripts/generate_dynamic_pod.rb +0 -166
  69. package/ios/scripts/native_modules_dy.rb +0 -317
  70. package/ios/scripts/react_native_pods_dy.rb +0 -773
@@ -1,38 +0,0 @@
1
- //
2
- // CMCCAssetsloadModule.m
3
- // ChinaMobile
4
- //
5
- // Created by ldd on 5/30/24.
6
- // Copyright © 2024 Greenpoint. All rights reserved.
7
- //
8
-
9
- #import "CMCCAssetsLoaderModule.h"
10
- #import <React/RCTBridgeModule.h>
11
-
12
- @interface CMCCAssetsLoaderModule () <RCTBridgeModule>
13
-
14
- @end
15
-
16
- @implementation CMCCAssetsLoaderModule
17
-
18
- /// Module Name
19
- RCT_EXPORT_MODULE();
20
-
21
- RCT_EXPORT_BLOCKING_SYNCHRONOUS_METHOD(isFileExist:(NSString *)filePath) {
22
- filePath = [filePath substringFromIndex:6];
23
- NSFileManager *fileManager = [NSFileManager defaultManager];
24
- BOOL fileExists = [fileManager fileExistsAtPath:filePath];
25
- return @(fileExists);
26
- }
27
-
28
- - (NSDictionary *)constantsToExport {
29
- return @{
30
- @"DefaultModulePath": [[NSBundle mainBundle] bundlePath],
31
- };
32
- }
33
-
34
- + (BOOL)requiresMainQueueSetup {
35
- return YES;
36
- }
37
-
38
- @end
@@ -1,53 +0,0 @@
1
- {
2
- "images" : [
3
- {
4
- "idiom" : "iphone",
5
- "scale" : "2x",
6
- "size" : "20x20"
7
- },
8
- {
9
- "idiom" : "iphone",
10
- "scale" : "3x",
11
- "size" : "20x20"
12
- },
13
- {
14
- "idiom" : "iphone",
15
- "scale" : "2x",
16
- "size" : "29x29"
17
- },
18
- {
19
- "idiom" : "iphone",
20
- "scale" : "3x",
21
- "size" : "29x29"
22
- },
23
- {
24
- "idiom" : "iphone",
25
- "scale" : "2x",
26
- "size" : "40x40"
27
- },
28
- {
29
- "idiom" : "iphone",
30
- "scale" : "3x",
31
- "size" : "40x40"
32
- },
33
- {
34
- "idiom" : "iphone",
35
- "scale" : "2x",
36
- "size" : "60x60"
37
- },
38
- {
39
- "idiom" : "iphone",
40
- "scale" : "3x",
41
- "size" : "60x60"
42
- },
43
- {
44
- "idiom" : "ios-marketing",
45
- "scale" : "1x",
46
- "size" : "1024x1024"
47
- }
48
- ],
49
- "info" : {
50
- "author" : "xcode",
51
- "version" : 1
52
- }
53
- }
@@ -1,6 +0,0 @@
1
- {
2
- "info" : {
3
- "version" : 1,
4
- "author" : "xcode"
5
- }
6
- }
@@ -1,62 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>CFBundleDevelopmentRegion</key>
6
- <string>en</string>
7
- <key>CFBundleDisplayName</key>
8
- <string>cmcc_rn_module</string>
9
- <key>CFBundleExecutable</key>
10
- <string>$(EXECUTABLE_NAME)</string>
11
- <key>CFBundleIdentifier</key>
12
- <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
13
- <key>CFBundleInfoDictionaryVersion</key>
14
- <string>6.0</string>
15
- <key>CFBundleName</key>
16
- <string>$(PRODUCT_NAME)</string>
17
- <key>CFBundlePackageType</key>
18
- <string>APPL</string>
19
- <key>CFBundleShortVersionString</key>
20
- <string>1.0</string>
21
- <key>CFBundleSignature</key>
22
- <string>????</string>
23
- <key>CFBundleVersion</key>
24
- <string>1</string>
25
- <key>LSRequiresIPhoneOS</key>
26
- <true/>
27
- <key>NSAppTransportSecurity</key>
28
- <dict>
29
- <key>NSExceptionDomains</key>
30
- <dict>
31
- <key>localhost</key>
32
- <dict>
33
- <key>NSExceptionAllowsInsecureHTTPLoads</key>
34
- <true/>
35
- </dict>
36
- </dict>
37
- </dict>
38
- <key>NSLocationWhenInUseUsageDescription</key>
39
- <string/>
40
- <key>UILaunchStoryboardName</key>
41
- <string>LaunchScreen</string>
42
- <key>UIRequiredDeviceCapabilities</key>
43
- <array>
44
- <string>armv7</string>
45
- </array>
46
- <key>UISupportedInterfaceOrientations</key>
47
- <array>
48
- <string>UIInterfaceOrientationPortrait</string>
49
- <string>UIInterfaceOrientationLandscapeLeft</string>
50
- <string>UIInterfaceOrientationLandscapeRight</string>
51
- </array>
52
- <key>UIViewControllerBasedStatusBarAppearance</key>
53
- <false/>
54
- <key>UIAppFonts</key>
55
- <array>
56
- <string/>
57
- <string>antfill.ttf</string>
58
- <string>antoutline.ttf</string>
59
- <string>BebasKai.ttf</string>
60
- </array>
61
- </dict>
62
- </plist>
@@ -1,47 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
3
- <device id="retina4_7" orientation="portrait" appearance="light"/>
4
- <dependencies>
5
- <deployment identifier="iOS"/>
6
- <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
7
- <capability name="Safe area layout guides" minToolsVersion="9.0"/>
8
- <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
9
- </dependencies>
10
- <scenes>
11
- <!--View Controller-->
12
- <scene sceneID="EHf-IW-A2E">
13
- <objects>
14
- <viewController id="01J-lp-oVM" sceneMemberID="viewController">
15
- <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
16
- <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
17
- <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
18
- <subviews>
19
- <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="cmcc_rn_module" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="GJd-Yh-RWb">
20
- <rect key="frame" x="0.0" y="202" width="375" height="43"/>
21
- <fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
22
- <nil key="highlightedColor"/>
23
- </label>
24
- <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Powered by React Native" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="MN2-I3-ftu">
25
- <rect key="frame" x="0.0" y="626" width="375" height="21"/>
26
- <fontDescription key="fontDescription" type="system" pointSize="17"/>
27
- <nil key="highlightedColor"/>
28
- </label>
29
- </subviews>
30
- <color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
31
- <constraints>
32
- <constraint firstItem="Bcu-3y-fUS" firstAttribute="bottom" secondItem="MN2-I3-ftu" secondAttribute="bottom" constant="20" id="OZV-Vh-mqD"/>
33
- <constraint firstItem="Bcu-3y-fUS" firstAttribute="centerX" secondItem="GJd-Yh-RWb" secondAttribute="centerX" id="Q3B-4B-g5h"/>
34
- <constraint firstItem="MN2-I3-ftu" firstAttribute="centerX" secondItem="Bcu-3y-fUS" secondAttribute="centerX" id="akx-eg-2ui"/>
35
- <constraint firstItem="MN2-I3-ftu" firstAttribute="leading" secondItem="Bcu-3y-fUS" secondAttribute="leading" id="i1E-0Y-4RG"/>
36
- <constraint firstItem="GJd-Yh-RWb" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="bottom" multiplier="1/3" constant="1" id="moa-c2-u7t"/>
37
- <constraint firstItem="GJd-Yh-RWb" firstAttribute="leading" secondItem="Bcu-3y-fUS" secondAttribute="leading" symbolic="YES" id="x7j-FC-K8j"/>
38
- </constraints>
39
- <viewLayoutGuide key="safeArea" id="Bcu-3y-fUS"/>
40
- </view>
41
- </viewController>
42
- <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
43
- </objects>
44
- <point key="canvasLocation" x="52.173913043478265" y="375"/>
45
- </scene>
46
- </scenes>
47
- </document>
@@ -1,10 +0,0 @@
1
- #import <UIKit/UIKit.h>
2
-
3
- #import "AppDelegate.h"
4
-
5
- int main(int argc, char *argv[])
6
- {
7
- @autoreleasepool {
8
- return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
9
- }
10
- }