@aks-dev/easyui 1.2.12 → 1.2.14

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/RNEasyui.podspec CHANGED
@@ -15,7 +15,10 @@ Pod::Spec.new do |s|
15
15
  s.source = { :git => "https://gitee.com/the_period_of_the_ten_kingdoms/easyui.git", :tag => "master" }
16
16
  s.source_files = "ios/**/*.{h,m,mm,swift,xib,c}"
17
17
  s.requires_arc = true
18
- s.resource_bundles = { 'RNEasyui' => ['ios/assets/**/*'] }
18
+ s.resource_bundles = {
19
+ 'RNEasyuiAssets' => ['ios/assets/**/*'],
20
+ 'RNEasyuiPrivacyInfo' => ['ios/PrivacyInfo.xcprivacy']
21
+ }
19
22
 
20
23
 
21
24
  if fabric_enabled
@@ -0,0 +1,12 @@
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>NSPhotoLibraryUsageDescription</key>
6
+ <string>APP需要使用访问您的相册</string>
7
+ <key>NSPhotoLibraryAddUsageDescription</key>
8
+ <string>APP需要使用访问您的相册</string>
9
+ <key>NSAppleMusicUsageDescription</key>
10
+ <string>APP需要使用访问您的媒体库</string>
11
+ </dict>
12
+ </plist>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aks-dev/easyui",
3
- "version": "1.2.12",
3
+ "version": "1.2.14",
4
4
  "description": "工具箱",
5
5
  "exports": {
6
6
  ".": {
@@ -1,2 +0,0 @@
1
- export { default as Modal, ModalProps } from 'react-native-modal';
2
- //# sourceMappingURL=Modal.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Modal.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA"}
@@ -1,8 +0,0 @@
1
- /*
2
- * @Author: shiguo
3
- * @Date: 2022-04-26 11:30:34
4
- * @LastEditors: shiguo
5
- * @LastEditTime: 2022-10-27 16:37:32
6
- * @FilePath: /@aks-dev/easyui/lib/Modal/Modal.tsx
7
- */
8
- export { default as Modal } from 'react-native-modal';
@@ -1,26 +0,0 @@
1
- /**
2
- * @description: 获取App版本号
3
- * @param {*}
4
- * @return {*}
5
- */
6
- export declare const getAppVersion: () => Promise<string>;
7
- /**
8
- * @description: 获取操作系统版本
9
- *
10
- react-native-device-info
11
- * @return {*}
12
- */
13
- export declare const getOSVersion: () => Promise<string>;
14
- /**
15
- * @description: app升级
16
- * @return {*}
17
- */
18
- export type UpgradeOptions = {
19
- title?: string;
20
- version: string;
21
- downloadUrl: string;
22
- note: string;
23
- force: boolean;
24
- };
25
- export declare const upgrade: (options: UpgradeOptions) => Promise<string>;
26
- //# sourceMappingURL=UpgradeModule.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UpgradeModule.d.ts","sourceRoot":"","sources":["../../src/jsbridge/UpgradeModule.ts"],"names":[],"mappings":"AAWA;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,OAAO,CAAC,MAAM,CACjB,CAAC;AAChC;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE,MAAM,OAAO,CAAC,MAAM,CACjB,CAAC;AAC/B;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC,MAAM,CA4BhE,CAAC"}
@@ -1,44 +0,0 @@
1
- /*
2
- * @Author: shiguo
3
- * @Date: 2022-05-05 14:19:39
4
- * @LastEditors: shiguo
5
- * @LastEditTime: 2023-03-23 15:15:06
6
- * @FilePath: /@aks-dev/easyui/jsbridge/UpgradeModule.ts
7
- */
8
- import { NativeModules, PermissionsAndroid, Platform } from "react-native";
9
- const { UpgradeModule } = NativeModules;
10
- /**
11
- * @description: 获取App版本号
12
- * @param {*}
13
- * @return {*}
14
- */
15
- export const getAppVersion = () => UpgradeModule.getAppVersion();
16
- /**
17
- * @description: 获取操作系统版本
18
- *
19
- react-native-device-info
20
- * @return {*}
21
- */
22
- export const getOSVersion = () => UpgradeModule.getOSVersion();
23
- export const upgrade = async (options) => {
24
- const { title = "提示" } = options;
25
- if (Platform.OS == "android") {
26
- try {
27
- const granted = await PermissionsAndroid.request(PermissionsAndroid.PERMISSIONS.WRITE_EXTERNAL_STORAGE, {
28
- title: "提示",
29
- message: "应用升级需要获取APP的写入权限",
30
- buttonNeutral: "稍后再询问",
31
- buttonNegative: "取消",
32
- buttonPositive: "确定",
33
- });
34
- if (granted === PermissionsAndroid.RESULTS.GRANTED) {
35
- return UpgradeModule.upgrade(options);
36
- }
37
- return Promise.reject("没有应用升级权限!");
38
- }
39
- catch (err) {
40
- return Promise.reject("请求权限异常!");
41
- }
42
- }
43
- return UpgradeModule.upgrade(options);
44
- };
@@ -1,3 +0,0 @@
1
- export * from './RNEasyui';
2
- export * from './UpgradeModule';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/jsbridge/index.ts"],"names":[],"mappings":"AAOA,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA"}
@@ -1,9 +0,0 @@
1
- /*
2
- * @Author: shiguo
3
- * @Date: 2022-04-19 10:23:01
4
- * @LastEditors: shiguo
5
- * @LastEditTime: 2023-03-23 15:14:55
6
- * @FilePath: /@aks-dev/easyui/jsbridge/index.ts
7
- */
8
- export * from './RNEasyui';
9
- export * from './UpgradeModule';