@quec/rn-device-module 1.9.19 → 2.16.1
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/.vscode/settings.json +3 -0
- package/QuecRNDeviceModule.podspec +54 -0
- package/README.md +1535 -1043
- package/android/build.gradle +119 -0
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +5 -0
- package/android/gradle.properties +23 -0
- package/android/gradlew +185 -0
- package/android/gradlew.bat +89 -0
- package/android/old-info.properties +2 -0
- package/android/proguard-rules.pro +21 -0
- package/android/publishInfo.properties +4 -0
- package/android/settings.gradle +3 -0
- package/android/src/main/AndroidManifest.xml +6 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/IQuecRNDeviceModuleSpec.java +1352 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/QuecRNDeviceModule.java +2423 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/QuecRNDeviceModulePackage.java +23 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/bean/DataInfo.java +25 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/bean/DataRes.java +31 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/bean/DeviceDpsUpdateModel.java +18 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/bean/ModelBridgeBasic.java +86 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/bean/OtaUpgradePlanModel.java +292 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/bean/ShareInfo.java +166 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/bean/UserInfo.java +137 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/bean/WriteCmdWithId.java +10 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/utils/AnalysisChannelDataUtils.java +82 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/utils/DataConvertUtils.kt +130 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/utils/ErrorCode.java +26 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/utils/ErrorUtils.java +11 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/utils/IpcUtil.java +75 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/utils/NetUtils.java +85 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/utils/OnConnectListener.java +22 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/utils/ParamsValueUtils.java +79 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/utils/QuecIotChannelMode.java +8 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/utils/ReactNativeJson.java +199 -0
- package/android/src/main/java/com/quectel/smart/rnplugin/quecrndevicemodule/utils/ResponseUtils.java +156 -0
- package/android/src/main/res/values/strings.xml +4 -0
- package/android/src/main/res/values-en/strings.xml +4 -0
- package/android/src/main/res/values-zh/strings.xml +4 -0
- package/android/src/test/java/com/quectel/smart/template/ExampleUnitTest.java +17 -0
- package/build.gradle +1 -0
- package/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/gradle/wrapper/gradle-wrapper.properties +6 -0
- package/ios/Example/Podfile +17 -0
- package/ios/Example/QuecRNDeviceModule/AppDelegate.h +13 -0
- package/ios/Example/QuecRNDeviceModule/AppDelegate.m +46 -0
- package/ios/Example/QuecRNDeviceModule/Base.lproj/LaunchScreen.storyboard +31 -0
- package/ios/Example/QuecRNDeviceModule/Base.lproj/Main.storyboard +31 -0
- package/ios/Example/QuecRNDeviceModule/Images.xcassets/AppIcon.appiconset/Contents.json +98 -0
- package/ios/Example/QuecRNDeviceModule/QuecRNDeviceModule-Info.plist +40 -0
- package/ios/Example/QuecRNDeviceModule/QuecRNDeviceModule-Prefix.pch +16 -0
- package/ios/Example/QuecRNDeviceModule/ViewController.h +12 -0
- package/ios/Example/QuecRNDeviceModule/ViewController.m +29 -0
- package/ios/Example/QuecRNDeviceModule/en.lproj/InfoPlist.strings +2 -0
- package/ios/Example/QuecRNDeviceModule/main.m +15 -0
- package/ios/Example/QuecRNDeviceModule.xcodeproj/project.pbxproj +583 -0
- package/ios/Example/QuecRNDeviceModule.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/ios/Example/QuecRNDeviceModule.xcodeproj/xcshareddata/xcschemes/QuecRNDeviceModule-Example.xcscheme +101 -0
- package/ios/Example/QuecRNDeviceModule.xcworkspace/contents.xcworkspacedata +10 -0
- package/ios/Example/QuecRNDeviceModule.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/ios/LICENSE +4 -0
- package/ios/QuecRNDeviceModule/Assets/.gitkeep +0 -0
- package/ios/QuecRNDeviceModule/Classes/QuecRNDeviceModule+Ext.h +27 -0
- package/ios/QuecRNDeviceModule/Classes/QuecRNDeviceModule+Impl.h +1137 -0
- package/ios/QuecRNDeviceModule/Classes/QuecRNDeviceModule+Impl.m +1524 -0
- package/ios/QuecRNDeviceModule/Classes/QuecRNDeviceModule.h +157 -0
- package/ios/QuecRNDeviceModule/Classes/QuecRNDeviceModule.m +721 -0
- package/ios/README.md +20 -0
- package/{.prettierrc.js → js/.prettierrc.js} +11 -11
- package/js/README.md +1535 -0
- package/js/package.json +25 -0
- package/{src → js/src}/index.ts +12 -12
- package/{src → js/src}/module.ts +1332 -939
- package/{src → js/src}/viewCommon.ts +3 -3
- package/js/tsconfig.json +26 -0
- package/js/yarn.lock +4 -0
- package/package.json +10 -25
- package/plugin.ts +1180 -0
- package/settings.gradle +2 -0
- package/tsconfig.json +9 -0
|
@@ -0,0 +1,40 @@
|
|
|
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>${PRODUCT_NAME}</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.0</string>
|
|
25
|
+
<key>LSRequiresIPhoneOS</key>
|
|
26
|
+
<true/>
|
|
27
|
+
<key>UILaunchStoryboardName</key>
|
|
28
|
+
<string>LaunchScreen</string>
|
|
29
|
+
<key>UIMainStoryboardFile</key>
|
|
30
|
+
<string>Main</string>
|
|
31
|
+
<key>UIRequiredDeviceCapabilities</key>
|
|
32
|
+
<array>
|
|
33
|
+
<string>armv7</string>
|
|
34
|
+
</array>
|
|
35
|
+
<key>UISupportedInterfaceOrientations</key>
|
|
36
|
+
<array>
|
|
37
|
+
<string>UIInterfaceOrientationPortrait</string>
|
|
38
|
+
</array>
|
|
39
|
+
</dict>
|
|
40
|
+
</plist>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Prefix header
|
|
3
|
+
//
|
|
4
|
+
// The contents of this file are implicitly included at the beginning of every source file.
|
|
5
|
+
//
|
|
6
|
+
|
|
7
|
+
#import <Availability.h>
|
|
8
|
+
|
|
9
|
+
#ifndef __IPHONE_5_0
|
|
10
|
+
#warning "This project uses features only available in iOS SDK 5.0 and later."
|
|
11
|
+
#endif
|
|
12
|
+
|
|
13
|
+
#ifdef __OBJC__
|
|
14
|
+
@import UIKit;
|
|
15
|
+
@import Foundation;
|
|
16
|
+
#endif
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//
|
|
2
|
+
// ViewController.m
|
|
3
|
+
// quectel
|
|
4
|
+
//
|
|
5
|
+
// Created by quectel on 08/30/2022.
|
|
6
|
+
// Copyright (c) 2022 quectel. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import "ViewController.h"
|
|
10
|
+
|
|
11
|
+
@interface ViewController ()
|
|
12
|
+
|
|
13
|
+
@end
|
|
14
|
+
|
|
15
|
+
@implementation ViewController
|
|
16
|
+
|
|
17
|
+
- (void)viewDidLoad
|
|
18
|
+
{
|
|
19
|
+
[super viewDidLoad];
|
|
20
|
+
// Do any additional setup after loading the view, typically from a nib.
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
- (void)didReceiveMemoryWarning
|
|
24
|
+
{
|
|
25
|
+
[super didReceiveMemoryWarning];
|
|
26
|
+
// Dispose of any resources that can be recreated.
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//
|
|
2
|
+
// main.m
|
|
3
|
+
//
|
|
4
|
+
// Created by Quectel on 08/30/2022.
|
|
5
|
+
//
|
|
6
|
+
|
|
7
|
+
@import UIKit;
|
|
8
|
+
#import "AppDelegate.h"
|
|
9
|
+
|
|
10
|
+
int main(int argc, char * argv[])
|
|
11
|
+
{
|
|
12
|
+
@autoreleasepool {
|
|
13
|
+
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
|
|
14
|
+
}
|
|
15
|
+
}
|