@aks-dev/easyui 1.0.10

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 (66) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +35 -0
  3. package/android/build.gradle +44 -0
  4. package/android/src/main/AndroidManifest.xml +20 -0
  5. package/android/src/main/java/com/easyui/RNEasyuiModule.java +29 -0
  6. package/android/src/main/java/com/easyui/RNEasyuiPackage.java +38 -0
  7. package/android/src/main/java/com/easyui/UpgradeModule.java +54 -0
  8. package/ios/RNEasyui.h +18 -0
  9. package/ios/RNEasyui.m +13 -0
  10. package/ios/RNEasyui.podspec +24 -0
  11. package/ios/RNEasyui.xcodeproj/project.pbxproj +259 -0
  12. package/ios/RNEasyui.xcworkspace/contents.xcworkspacedata +9 -0
  13. package/ios/UpgradeModule.h +12 -0
  14. package/ios/UpgradeModule.m +38 -0
  15. package/jsbridge/RNEasyui.tsx +13 -0
  16. package/jsbridge/UpgradeModule.tsx +13 -0
  17. package/jsbridge/index.ts +13 -0
  18. package/lib/Badge/Badge.tsx +39 -0
  19. package/lib/Badge/index.ts +21 -0
  20. package/lib/Easy-Hud/AlertView/AlertView.tsx +233 -0
  21. package/lib/Easy-Hud/AlertView/index.ts +41 -0
  22. package/lib/Easy-Hud/EasyHud.tsx +48 -0
  23. package/lib/Easy-Hud/Loading/Loading.tsx +80 -0
  24. package/lib/Easy-Hud/Loading/index.ts +35 -0
  25. package/lib/Easy-Hud/Toast/Toast.tsx +86 -0
  26. package/lib/Easy-Hud/Toast/index.ts +22 -0
  27. package/lib/Easy-Hud/index.ts +18 -0
  28. package/lib/Echarts/EchartsView.tsx +151 -0
  29. package/lib/Echarts/demo.tsx +235 -0
  30. package/lib/Echarts/helper.tsx +63 -0
  31. package/lib/Echarts/index.ts +29 -0
  32. package/lib/Modal/Modal.tsx +12 -0
  33. package/lib/Modal/index.ts +10 -0
  34. package/lib/MutiPictureView/MutiPictureView.tsx +213 -0
  35. package/lib/MutiPictureView/icon_add_image.png +0 -0
  36. package/lib/MutiPictureView/icon_del_image.png +0 -0
  37. package/lib/MutiPictureView/index.ts +55 -0
  38. package/lib/PictureViewer/PictureViewer.tsx +80 -0
  39. package/lib/PictureViewer/index.ts +26 -0
  40. package/lib/RefreshList/RefreshList.tsx +222 -0
  41. package/lib/RefreshList/demo.tsx +30 -0
  42. package/lib/RefreshList/demo1.tsx +60 -0
  43. package/lib/RefreshList/demo2.tsx +46 -0
  44. package/lib/RefreshList/index.ts +84 -0
  45. package/lib/StickHeaderView/StickHeaderView.tsx +65 -0
  46. package/lib/StickHeaderView/demo.tsx +104 -0
  47. package/lib/StickHeaderView/index.ts +26 -0
  48. package/lib/TableCell/TableCell.tsx +117 -0
  49. package/lib/TableCell/back.png +0 -0
  50. package/lib/TableCell/index.ts +45 -0
  51. package/lib/TextInputArea/TextInputArea.tsx +88 -0
  52. package/lib/TextInputArea/index.ts +32 -0
  53. package/lib/WithLoadingContainer/WithLoadingContainer.tsx +93 -0
  54. package/lib/WithLoadingContainer/index.ts +36 -0
  55. package/lib/WithLoadingContainer/loading.gif +0 -0
  56. package/lib/WithLoadingContainer/loading3.gif +0 -0
  57. package/package.json +59 -0
  58. package/screen/index.ts +16 -0
  59. package/screen/px2dp.tsx +44 -0
  60. package/screen/px2sp.tsx +65 -0
  61. package/screen/text-set.tsx +58 -0
  62. package/src/index.d.ts +58 -0
  63. package/src/index.ts +66 -0
  64. package/utils/index.ts +56 -0
  65. package/utils/lazy.tsx +40 -0
  66. package/utils/mode.tsx +48 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 十国
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,35 @@
1
+ <!--
2
+ * @Author: shiguo
3
+ * @Date: 2022-04-25 17:57:29
4
+ * @LastEditors: shiguo
5
+ * @LastEditTime: 2022-05-11 20:02:17
6
+ * @FilePath: /@aks/easyui/README.md
7
+ -->
8
+
9
+ ### 安装
10
+
11
+ `$ npm install @shiguo2022/react-native-easyui --save`
12
+
13
+ or
14
+
15
+ `$ yarn add @shiguo2022/react-native-easyui`
16
+
17
+
18
+ ### [UI组件](./src/index.d.ts)
19
+
20
+ + Badge
21
+ + EasyHub
22
+ + Modal
23
+ + EchartsView
24
+ + MutiPictureView
25
+ + PictureViewer
26
+ + RefreshList
27
+ + StickHeaderView
28
+ + TableCell
29
+ + TextInputArea
30
+ + WithLoadingContainer
31
+
32
+
33
+ ### [工具包](./utils/index.ts)
34
+
35
+ ### [jsbridge](./jsbridge/index.ts)
@@ -0,0 +1,44 @@
1
+
2
+ buildscript {
3
+ if (project == rootProject) {
4
+ repositories {
5
+ mavenCentral()
6
+ google()
7
+ }
8
+
9
+ dependencies {
10
+ classpath("com.android.tools.build:gradle:4.2.2")
11
+ }
12
+ }
13
+ }
14
+
15
+ apply plugin: 'com.android.library'
16
+
17
+
18
+
19
+ def safeExtGet(prop, fallback) {
20
+ rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
21
+ }
22
+
23
+
24
+ android {
25
+ compileSdkVersion safeExtGet('compileSdkVersion', 30)
26
+
27
+ defaultConfig {
28
+ minSdkVersion safeExtGet('minSdkVersion', 21)
29
+ //noinspection OldTargetApi
30
+ targetSdkVersion safeExtGet('targetSdkVersion', 30)
31
+ }
32
+ lintOptions {
33
+ abortOnError false
34
+ }
35
+ }
36
+
37
+ repositories {
38
+ mavenCentral()
39
+ }
40
+
41
+ dependencies {
42
+ implementation 'com.facebook.react:react-native:+'
43
+ }
44
+
@@ -0,0 +1,20 @@
1
+
2
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
+ package="com.easyui">
4
+ <queries>
5
+ <package android:name="com.tencent.mm" />
6
+ </queries>
7
+ <queries package="${applicationId}">
8
+ <intent>
9
+ <action android:name="android.media.action.IMAGE_CAPTURE">
10
+
11
+ </action>
12
+ </intent>
13
+ <intent>
14
+ <action android:name="android.media.action.ACTION_VIDEO_CAPTURE">
15
+
16
+ </action>
17
+ </intent>
18
+ </queries>
19
+ </manifest>
20
+
@@ -0,0 +1,29 @@
1
+ /*
2
+ * @Author: shiguo
3
+ * @Date: 2022-04-25 17:57:29
4
+ * @LastEditors: shiguo
5
+ * @LastEditTime: 2022-04-27 09:18:14
6
+ * @FilePath: /easy/android/src/main/java/com/easyui/RNEasyuiModule.java
7
+ */
8
+
9
+ package com.easyui;
10
+
11
+ import com.facebook.react.bridge.ReactApplicationContext;
12
+ import com.facebook.react.bridge.ReactContextBaseJavaModule;
13
+ import com.facebook.react.bridge.ReactMethod;
14
+ import com.facebook.react.bridge.Callback;
15
+
16
+ public class RNEasyuiModule extends ReactContextBaseJavaModule {
17
+
18
+ private final ReactApplicationContext reactContext;
19
+
20
+ public RNEasyuiModule(ReactApplicationContext reactContext) {
21
+ super(reactContext);
22
+ this.reactContext = reactContext;
23
+ }
24
+
25
+ @Override
26
+ public String getName() {
27
+ return "RNEasyui";
28
+ }
29
+ }
@@ -0,0 +1,38 @@
1
+ /*
2
+ * @Author: shiguo
3
+ * @Date: 2022-04-25 17:57:29
4
+ * @LastEditors: shiguo
5
+ * @LastEditTime: 2022-05-05 14:45:07
6
+ * @FilePath: /@aks/easyui/android/src/main/java/com/easyui/RNEasyuiPackage.java
7
+ */
8
+
9
+ package com.easyui;
10
+
11
+ import java.util.ArrayList;
12
+ import java.util.Collections;
13
+ import java.util.List;
14
+
15
+ import com.facebook.react.ReactPackage;
16
+ import com.facebook.react.bridge.NativeModule;
17
+ import com.facebook.react.bridge.ReactApplicationContext;
18
+ import com.facebook.react.uimanager.ViewManager;
19
+ import com.facebook.react.bridge.JavaScriptModule;
20
+ public class RNEasyuiPackage implements ReactPackage {
21
+ @Override
22
+ public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
23
+ List<NativeModule> modules = new ArrayList<>();
24
+ modules.add(new RNEasyuiModule(reactContext));
25
+ modules.add(new UpgradeModule(reactContext));
26
+ return modules;
27
+ }
28
+
29
+ // Deprecated from RN 0.47
30
+ public List<Class<? extends JavaScriptModule>> createJSModules() {
31
+ return Collections.emptyList();
32
+ }
33
+
34
+ @Override
35
+ public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
36
+ return Collections.emptyList();
37
+ }
38
+ }
@@ -0,0 +1,54 @@
1
+ /*
2
+ * @Author: shiguo
3
+ * @Date: 2022-05-05 13:57:25
4
+ * @LastEditors: shiguo
5
+ * @LastEditTime: 2022-05-07 11:41:32
6
+ * @FilePath: /@aks/easyui/android/src/main/java/com/easyui/UpgradeModule.java
7
+ */
8
+ package com.easyui;
9
+
10
+ import android.content.Context;
11
+ import android.content.pm.PackageInfo;
12
+ import android.content.pm.PackageManager;
13
+
14
+ import androidx.annotation.NonNull;
15
+
16
+ import com.facebook.react.bridge.Promise;
17
+ import com.facebook.react.bridge.ReactApplicationContext;
18
+ import com.facebook.react.bridge.ReactContextBaseJavaModule;
19
+ import com.facebook.react.bridge.ReactMethod;
20
+
21
+ import org.jetbrains.annotations.NotNull;
22
+
23
+ public class UpgradeModule extends ReactContextBaseJavaModule {
24
+
25
+ private Context context;
26
+
27
+
28
+ @NonNull
29
+ @NotNull
30
+ @Override
31
+ public String getName() {
32
+ return "UpgradeModule";
33
+ }
34
+
35
+
36
+ public UpgradeModule(ReactApplicationContext reactContext) {
37
+ super(reactContext);
38
+ this.context = reactContext;
39
+ }
40
+
41
+ @ReactMethod
42
+ public void getAppVersion(final Promise promise) {
43
+ try {
44
+ PackageManager manager = context.getPackageManager();
45
+ PackageInfo info = manager.getPackageInfo(context.getPackageName(), 0);
46
+ promise.resolve(info.versionName);
47
+ } catch (PackageManager.NameNotFoundException e) {
48
+ e.printStackTrace();
49
+ promise.reject("1.0.0", "getAppVersion error");
50
+ }
51
+
52
+ }
53
+
54
+ }
package/ios/RNEasyui.h ADDED
@@ -0,0 +1,18 @@
1
+ /*
2
+ * @Author: shiguo
3
+ * @Date: 2022-04-25 17:57:29
4
+ * @LastEditors: shiguo
5
+ * @LastEditTime: 2022-04-27 09:21:02
6
+ * @FilePath: /easy/ios/RNEasyui.h
7
+ */
8
+
9
+ #if __has_include("RCTBridgeModule.h")
10
+ #import "RCTBridgeModule.h"
11
+ #else
12
+ #import <React/RCTBridgeModule.h>
13
+ #endif
14
+
15
+ @interface RNEasyui : NSObject <RCTBridgeModule>
16
+
17
+ @end
18
+
package/ios/RNEasyui.m ADDED
@@ -0,0 +1,13 @@
1
+
2
+ #import "RNEasyui.h"
3
+
4
+ @implementation RNEasyui
5
+
6
+ - (dispatch_queue_t)methodQueue
7
+ {
8
+ return dispatch_get_main_queue();
9
+ }
10
+ RCT_EXPORT_MODULE()
11
+
12
+ @end
13
+
@@ -0,0 +1,24 @@
1
+
2
+ Pod::Spec.new do |s|
3
+ s.name = "RNEasyui"
4
+ s.version = "1.0.0"
5
+ s.summary = "RNEasyui"
6
+ s.description = <<-DESC
7
+ RNEasyui
8
+ DESC
9
+ s.homepage = "https://gitee.com/the_period_of_the_ten_kingdoms/aks-easy"
10
+ s.license = "MIT"
11
+ # s.license = { :type => "MIT", :file => "FILE_LICENSE" }
12
+ s.author = { "author" => "author@domain.cn" }
13
+ s.platform = :ios, "11.0"
14
+ s.source = { :git => "https://gitee.com/the_period_of_the_ten_kingdoms/aks-easyui.git", :tag => "master" }
15
+ s.source_files = "**/*.{h,m,swift,xib,c}"
16
+ s.requires_arc = true
17
+
18
+
19
+ s.dependency "React"
20
+ #s.dependency "others"
21
+
22
+ end
23
+
24
+
@@ -0,0 +1,259 @@
1
+ // !$*UTF8*$!
2
+ {
3
+ archiveVersion = 1;
4
+ classes = {
5
+ };
6
+ objectVersion = 46;
7
+ objects = {
8
+
9
+ /* Begin PBXBuildFile section */
10
+ B3E7B58A1CC2AC0600A0062D /* RNEasyui.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* RNEasyui.m */; };
11
+ /* End PBXBuildFile section */
12
+
13
+ /* Begin PBXCopyFilesBuildPhase section */
14
+ 58B511D91A9E6C8500147676 /* CopyFiles */ = {
15
+ isa = PBXCopyFilesBuildPhase;
16
+ buildActionMask = 2147483647;
17
+ dstPath = "include/$(PRODUCT_NAME)";
18
+ dstSubfolderSpec = 16;
19
+ files = (
20
+ );
21
+ runOnlyForDeploymentPostprocessing = 0;
22
+ };
23
+ /* End PBXCopyFilesBuildPhase section */
24
+
25
+ /* Begin PBXFileReference section */
26
+ 134814201AA4EA6300B7C361 /* libRNEasyui.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNEasyui.a; sourceTree = BUILT_PRODUCTS_DIR; };
27
+ B3E7B5881CC2AC0600A0062D /* RNEasyui.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNEasyui.h; sourceTree = "<group>"; };
28
+ B3E7B5891CC2AC0600A0062D /* RNEasyui.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNEasyui.m; sourceTree = "<group>"; };
29
+ /* End PBXFileReference section */
30
+
31
+ /* Begin PBXFrameworksBuildPhase section */
32
+ 58B511D81A9E6C8500147676 /* Frameworks */ = {
33
+ isa = PBXFrameworksBuildPhase;
34
+ buildActionMask = 2147483647;
35
+ files = (
36
+ );
37
+ runOnlyForDeploymentPostprocessing = 0;
38
+ };
39
+ /* End PBXFrameworksBuildPhase section */
40
+
41
+ /* Begin PBXGroup section */
42
+ 134814211AA4EA7D00B7C361 /* Products */ = {
43
+ isa = PBXGroup;
44
+ children = (
45
+ 134814201AA4EA6300B7C361 /* libRNEasyui.a */,
46
+ );
47
+ name = Products;
48
+ sourceTree = "<group>";
49
+ };
50
+ 58B511D21A9E6C8500147676 = {
51
+ isa = PBXGroup;
52
+ children = (
53
+ B3E7B5881CC2AC0600A0062D /* RNEasyui.h */,
54
+ B3E7B5891CC2AC0600A0062D /* RNEasyui.m */,
55
+ 134814211AA4EA7D00B7C361 /* Products */,
56
+ );
57
+ sourceTree = "<group>";
58
+ };
59
+ /* End PBXGroup section */
60
+
61
+ /* Begin PBXNativeTarget section */
62
+ 58B511DA1A9E6C8500147676 /* RNEasyui */ = {
63
+ isa = PBXNativeTarget;
64
+ buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNEasyui" */;
65
+ buildPhases = (
66
+ 58B511D71A9E6C8500147676 /* Sources */,
67
+ 58B511D81A9E6C8500147676 /* Frameworks */,
68
+ 58B511D91A9E6C8500147676 /* CopyFiles */,
69
+ );
70
+ buildRules = (
71
+ );
72
+ dependencies = (
73
+ );
74
+ name = RNEasyui;
75
+ productName = RCTDataManager;
76
+ productReference = 134814201AA4EA6300B7C361 /* libRNEasyui.a */;
77
+ productType = "com.apple.product-type.library.static";
78
+ };
79
+ /* End PBXNativeTarget section */
80
+
81
+ /* Begin PBXProject section */
82
+ 58B511D31A9E6C8500147676 /* Project object */ = {
83
+ isa = PBXProject;
84
+ attributes = {
85
+ LastUpgradeCheck = 0830;
86
+ ORGANIZATIONNAME = Facebook;
87
+ TargetAttributes = {
88
+ 58B511DA1A9E6C8500147676 = {
89
+ CreatedOnToolsVersion = 6.1.1;
90
+ };
91
+ };
92
+ };
93
+ buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNEasyui" */;
94
+ compatibilityVersion = "Xcode 3.2";
95
+ developmentRegion = English;
96
+ hasScannedForEncodings = 0;
97
+ knownRegions = (
98
+ en,
99
+ );
100
+ mainGroup = 58B511D21A9E6C8500147676;
101
+ productRefGroup = 58B511D21A9E6C8500147676;
102
+ projectDirPath = "";
103
+ projectRoot = "";
104
+ targets = (
105
+ 58B511DA1A9E6C8500147676 /* RNEasyui */,
106
+ );
107
+ };
108
+ /* End PBXProject section */
109
+
110
+ /* Begin PBXSourcesBuildPhase section */
111
+ 58B511D71A9E6C8500147676 /* Sources */ = {
112
+ isa = PBXSourcesBuildPhase;
113
+ buildActionMask = 2147483647;
114
+ files = (
115
+ B3E7B58A1CC2AC0600A0062D /* RNEasyui.m in Sources */,
116
+ );
117
+ runOnlyForDeploymentPostprocessing = 0;
118
+ };
119
+ /* End PBXSourcesBuildPhase section */
120
+
121
+ /* Begin XCBuildConfiguration section */
122
+ 58B511ED1A9E6C8500147676 /* Debug */ = {
123
+ isa = XCBuildConfiguration;
124
+ buildSettings = {
125
+ ALWAYS_SEARCH_USER_PATHS = NO;
126
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
127
+ CLANG_CXX_LIBRARY = "libc++";
128
+ CLANG_ENABLE_MODULES = YES;
129
+ CLANG_ENABLE_OBJC_ARC = YES;
130
+ CLANG_WARN_BOOL_CONVERSION = YES;
131
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
132
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
133
+ CLANG_WARN_EMPTY_BODY = YES;
134
+ CLANG_WARN_ENUM_CONVERSION = YES;
135
+ CLANG_WARN_INFINITE_RECURSION = YES;
136
+ CLANG_WARN_INT_CONVERSION = YES;
137
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
138
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
139
+ CLANG_WARN_UNREACHABLE_CODE = YES;
140
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
141
+ COPY_PHASE_STRIP = NO;
142
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
143
+ ENABLE_TESTABILITY = YES;
144
+ GCC_C_LANGUAGE_STANDARD = gnu99;
145
+ GCC_DYNAMIC_NO_PIC = NO;
146
+ GCC_NO_COMMON_BLOCKS = YES;
147
+ GCC_OPTIMIZATION_LEVEL = 0;
148
+ GCC_PREPROCESSOR_DEFINITIONS = (
149
+ "DEBUG=1",
150
+ "$(inherited)",
151
+ );
152
+ GCC_SYMBOLS_PRIVATE_EXTERN = NO;
153
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
154
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
155
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
156
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
157
+ GCC_WARN_UNUSED_FUNCTION = YES;
158
+ GCC_WARN_UNUSED_VARIABLE = YES;
159
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
160
+ MTL_ENABLE_DEBUG_INFO = YES;
161
+ ONLY_ACTIVE_ARCH = YES;
162
+ SDKROOT = iphoneos;
163
+ };
164
+ name = Debug;
165
+ };
166
+ 58B511EE1A9E6C8500147676 /* Release */ = {
167
+ isa = XCBuildConfiguration;
168
+ buildSettings = {
169
+ ALWAYS_SEARCH_USER_PATHS = NO;
170
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
171
+ CLANG_CXX_LIBRARY = "libc++";
172
+ CLANG_ENABLE_MODULES = YES;
173
+ CLANG_ENABLE_OBJC_ARC = YES;
174
+ CLANG_WARN_BOOL_CONVERSION = YES;
175
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
176
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
177
+ CLANG_WARN_EMPTY_BODY = YES;
178
+ CLANG_WARN_ENUM_CONVERSION = YES;
179
+ CLANG_WARN_INFINITE_RECURSION = YES;
180
+ CLANG_WARN_INT_CONVERSION = YES;
181
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
182
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
183
+ CLANG_WARN_UNREACHABLE_CODE = YES;
184
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
185
+ COPY_PHASE_STRIP = YES;
186
+ ENABLE_NS_ASSERTIONS = NO;
187
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
188
+ GCC_C_LANGUAGE_STANDARD = gnu99;
189
+ GCC_NO_COMMON_BLOCKS = YES;
190
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
191
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
192
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
193
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
194
+ GCC_WARN_UNUSED_FUNCTION = YES;
195
+ GCC_WARN_UNUSED_VARIABLE = YES;
196
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
197
+ MTL_ENABLE_DEBUG_INFO = NO;
198
+ SDKROOT = iphoneos;
199
+ VALIDATE_PRODUCT = YES;
200
+ };
201
+ name = Release;
202
+ };
203
+ 58B511F01A9E6C8500147676 /* Debug */ = {
204
+ isa = XCBuildConfiguration;
205
+ buildSettings = {
206
+ HEADER_SEARCH_PATHS = (
207
+ "$(inherited)",
208
+ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
209
+ "$(SRCROOT)/../../../React/**",
210
+ "$(SRCROOT)/../../react-native/React/**",
211
+ );
212
+ LIBRARY_SEARCH_PATHS = "$(inherited)";
213
+ OTHER_LDFLAGS = "-ObjC";
214
+ PRODUCT_NAME = RNEasyui;
215
+ SKIP_INSTALL = YES;
216
+ };
217
+ name = Debug;
218
+ };
219
+ 58B511F11A9E6C8500147676 /* Release */ = {
220
+ isa = XCBuildConfiguration;
221
+ buildSettings = {
222
+ HEADER_SEARCH_PATHS = (
223
+ "$(inherited)",
224
+ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
225
+ "$(SRCROOT)/../../../React/**",
226
+ "$(SRCROOT)/../../react-native/React/**",
227
+ );
228
+ LIBRARY_SEARCH_PATHS = "$(inherited)";
229
+ OTHER_LDFLAGS = "-ObjC";
230
+ PRODUCT_NAME = RNEasyui;
231
+ SKIP_INSTALL = YES;
232
+ };
233
+ name = Release;
234
+ };
235
+ /* End XCBuildConfiguration section */
236
+
237
+ /* Begin XCConfigurationList section */
238
+ 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNEasyui" */ = {
239
+ isa = XCConfigurationList;
240
+ buildConfigurations = (
241
+ 58B511ED1A9E6C8500147676 /* Debug */,
242
+ 58B511EE1A9E6C8500147676 /* Release */,
243
+ );
244
+ defaultConfigurationIsVisible = 0;
245
+ defaultConfigurationName = Release;
246
+ };
247
+ 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNEasyui" */ = {
248
+ isa = XCConfigurationList;
249
+ buildConfigurations = (
250
+ 58B511F01A9E6C8500147676 /* Debug */,
251
+ 58B511F11A9E6C8500147676 /* Release */,
252
+ );
253
+ defaultConfigurationIsVisible = 0;
254
+ defaultConfigurationName = Release;
255
+ };
256
+ /* End XCConfigurationList section */
257
+ };
258
+ rootObject = 58B511D31A9E6C8500147676 /* Project object */;
259
+ }
@@ -0,0 +1,9 @@
1
+ // !$*UTF8*$!
2
+ <?xml version="1.0" encoding="UTF-8"?>
3
+ <Workspace
4
+ version = "1.0">
5
+ <FileRef
6
+ location = "group:RNEasyui.xcodeproj">
7
+ </FileRef>
8
+ </Workspace>
9
+
@@ -0,0 +1,12 @@
1
+
2
+ #if __has_include("RCTBridgeModule.h")
3
+ #import "RCTBridgeModule.h"
4
+ #else
5
+ #import <React/RCTBridgeModule.h>
6
+ #endif
7
+
8
+
9
+ @interface UpgradeModule : NSObject<RCTBridgeModule>
10
+
11
+ @end
12
+
@@ -0,0 +1,38 @@
1
+ //
2
+ // UpgradeModule.m
3
+ // AksFireApp
4
+ //
5
+ // Created by mac on 2022/5/5.
6
+ //
7
+
8
+ #import "UpgradeModule.h"
9
+
10
+ @interface UpgradeModule ()
11
+
12
+
13
+
14
+ @end
15
+
16
+
17
+
18
+ @implementation UpgradeModule
19
+
20
+ - (dispatch_queue_t)methodQueue
21
+ {
22
+ return dispatch_get_main_queue();
23
+ }
24
+
25
+
26
+ RCT_EXPORT_MODULE();
27
+
28
+
29
+ RCT_EXPORT_METHOD(getAppVersion:(RCTPromiseResolveBlock)resolve
30
+ reject:(RCTPromiseRejectBlock)reject){
31
+ NSDictionary *infoDict = [[NSBundle mainBundle] infoDictionary];
32
+ NSString *currentVersion = [infoDict objectForKey:@"CFBundleShortVersionString"];
33
+ resolve(currentVersion);
34
+ }
35
+
36
+
37
+
38
+ @end
@@ -0,0 +1,13 @@
1
+ /*
2
+ * @Author: shiguo
3
+ * @Date: 2022-04-19 10:23:01
4
+ * @LastEditors: shiguo
5
+ * @LastEditTime: 2022-04-27 09:22:46
6
+ * @FilePath: /easy/jsbridge/index.ts
7
+ */
8
+
9
+ import { NativeModules } from 'react-native';
10
+
11
+ const { RNEasyui } = NativeModules;
12
+
13
+ export default RNEasyui;
@@ -0,0 +1,13 @@
1
+ /*
2
+ * @Author: shiguo
3
+ * @Date: 2022-05-05 14:19:39
4
+ * @LastEditors: shiguo
5
+ * @LastEditTime: 2022-05-07 11:41:41
6
+ * @FilePath: /@aks/easyui/jsbridge/UpgradeModule.tsx
7
+ */
8
+ import { NativeModules } from 'react-native';
9
+
10
+ const { UpgradeModule } = NativeModules;
11
+
12
+
13
+ export const getAppVersion = () => UpgradeModule.getAppVersion();
@@ -0,0 +1,13 @@
1
+ /*
2
+ * @Author: shiguo
3
+ * @Date: 2022-04-19 10:23:01
4
+ * @LastEditors: shiguo
5
+ * @LastEditTime: 2022-05-05 14:29:15
6
+ * @FilePath: /@aks/easyui/jsbridge/index.ts
7
+ */
8
+ /**
9
+ * @description: 获取App版本号
10
+ * @param {*}
11
+ * @return {*}
12
+ */
13
+ export declare const getAppVersion:()=>Promise<string>;