@react-native-ohos/react-native-default-preference 1.4.5-rc.1 → 1.5.0-rc.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.
Files changed (45) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/COMMITTERS.md +7 -11
  3. package/LICENSE +21 -21
  4. package/OAT.xml +68 -68
  5. package/README.OpenSource +10 -10
  6. package/README.md +12 -12
  7. package/RNDefaultPreference.podspec +22 -22
  8. package/flow-typed/index.js +23 -23
  9. package/harmony/react_native_default_preference/BuildProfile.ets +16 -16
  10. package/harmony/react_native_default_preference/Index.ets +6 -6
  11. package/harmony/react_native_default_preference/build-profile.json5 +25 -25
  12. package/harmony/react_native_default_preference/hvigorfile.ts +6 -6
  13. package/harmony/react_native_default_preference/obfuscation-rules.txt +17 -17
  14. package/harmony/react_native_default_preference/oh-package.json5 +12 -12
  15. package/harmony/react_native_default_preference/src/main/cpp/generated/RNOH/generated/BaseReactNativeDefaultPreferencePackage.h +72 -72
  16. package/harmony/react_native_default_preference/src/main/cpp/generated/RNOH/generated/turbo_modules/DefaultPreferenceNativeModule.cpp +25 -25
  17. package/harmony/react_native_default_preference/src/main/cpp/generated/RNOH/generated/turbo_modules/DefaultPreferenceNativeModule.h +16 -16
  18. package/harmony/react_native_default_preference/src/main/cpp/generated/react/renderer/components/react_native_default_preference/ComponentDescriptors.h +24 -24
  19. package/harmony/react_native_default_preference/src/main/cpp/generated/react/renderer/components/react_native_default_preference/EventEmitters.cpp +16 -16
  20. package/harmony/react_native_default_preference/src/main/cpp/generated/react/renderer/components/react_native_default_preference/EventEmitters.h +17 -17
  21. package/harmony/react_native_default_preference/src/main/cpp/generated/react/renderer/components/react_native_default_preference/Props.cpp +19 -19
  22. package/harmony/react_native_default_preference/src/main/cpp/generated/react/renderer/components/react_native_default_preference/Props.h +18 -18
  23. package/harmony/react_native_default_preference/src/main/cpp/generated/react/renderer/components/react_native_default_preference/ShadowNodes.cpp +17 -17
  24. package/harmony/react_native_default_preference/src/main/cpp/generated/react/renderer/components/react_native_default_preference/ShadowNodes.h +23 -23
  25. package/harmony/react_native_default_preference/src/main/cpp/generated/react/renderer/components/react_native_default_preference/States.cpp +16 -16
  26. package/harmony/react_native_default_preference/src/main/cpp/generated/react/renderer/components/react_native_default_preference/States.h +18 -18
  27. package/harmony/react_native_default_preference/src/main/ets/Logger.ts +45 -45
  28. package/harmony/react_native_default_preference/src/main/ets/RNDefaultPreferencePackage.ts +27 -27
  29. package/harmony/react_native_default_preference/src/main/ets/RNDefaultPreferenceTurboModule.ts +143 -143
  30. package/harmony/react_native_default_preference/src/main/ets/generated/components/ts.ts +5 -5
  31. package/harmony/react_native_default_preference/src/main/ets/generated/index.ets +5 -5
  32. package/harmony/react_native_default_preference/src/main/ets/generated/ts.ts +6 -6
  33. package/harmony/react_native_default_preference/src/main/ets/generated/turboModules/DefaultPreferenceNativeModule.ts +32 -32
  34. package/harmony/react_native_default_preference/src/main/ets/generated/turboModules/ts.ts +5 -5
  35. package/harmony/react_native_default_preference/src/main/ets/pages/Index.ets +22 -22
  36. package/harmony/react_native_default_preference/src/main/ets/utils/Calc.ets +8 -8
  37. package/harmony/react_native_default_preference/src/main/module.json5 +10 -10
  38. package/harmony/react_native_default_preference/src/main/resources/base/element/string.json +7 -7
  39. package/harmony/react_native_default_preference/ts.ts +7 -7
  40. package/harmony/react_native_default_preference.har +0 -0
  41. package/index.d.ts +19 -19
  42. package/index.js +12 -12
  43. package/package.json +35 -35
  44. package/src/NativeDefaultPreference.ts +21 -21
  45. package/harmony/react_native_default_preference/oh-package-lock.json5 +0 -18
package/CHANGELOG.md ADDED
@@ -0,0 +1,4 @@
1
+ # v1.4.5-rc.1
2
+ ## 更新内容
3
+ * 修改组织名为@react-native-ohos
4
+ * 内置Codegen生成代码
package/COMMITTERS.md CHANGED
@@ -1,11 +1,7 @@
1
- ## Committers列表
2
-
3
- ### 以下是此项目的committer人员
4
-
5
- 不区分先后顺序
6
-
7
- - [MaDiXin](https://gitee.com/MaDiXin)
8
- - [xiafeng_xf_admin](https://gitee.com/xiafeng_xf_admin)
9
- - [ChenLixi](https://gitee.com/Louis-C7)
10
- - [LinJiacheng](https://gitee.com/LLLLLLin)
11
- - [ZhengJinshou](https://gitee.com/longziz)
1
+ ## Committers列表
2
+
3
+ ### 以下是此项目的committer人员
4
+
5
+ 不区分先后顺序
6
+
7
+ - [xiafeng_xf_admin](https://gitee.com/xiafeng_xf_admin)
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2017 Kevin Leung
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.
1
+ MIT License
2
+
3
+ Copyright (c) 2017 Kevin Leung
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/OAT.xml CHANGED
@@ -1,69 +1,69 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!-- Copyright (c) 2021 Huawei Device Co., Ltd.
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License.
5
- You may obtain a copy of the License at
6
- http://www.apache.org/licenses/LICENSE-2.0
7
- Unless required by applicable law or agreed to in writing, software
8
- distributed under the License is distributed on an "AS IS" BASIS,
9
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
- See the License for the specific language governing permissions and
11
- limitations under the License.
12
- This is the configuration file template for OpenHarmony OSS Audit Tool, please copy it to your project root dir and modify it refer to OpenHarmony/tools_oat/README.
13
- -->
14
-
15
- <configuration>
16
- <oatconfig>
17
- <licensefile>LICENSE</licensefile>
18
- <policylist>
19
- <policy name="projectPolicy" desc="">
20
- <policyitem type="license" name="MIT" path=".*" desc="license under the MIT"/>
21
- </policy>
22
- <policy name="projectPolicy" desc="">
23
- <policyitem type="compatibility" name="GPL-2.0+" path=".*" desc="Process that runs independently, invoked by the X process."/>
24
- <policyitem type="compatibility" name="Apache-2.0" path=".*" desc="不影响兼容性"/>
25
- <policyitem type="compatibility" name="BSDStyleLicense" path=".*" desc="不影响兼容性" />
26
- <policyitem type="compatibility" name="MIT" path=".*" desc="不影响兼容性" />
27
- <policyitem type="compatibility" name="GPLStyleLicense" path=".*" desc="不影响兼容性" />
28
- </policy>
29
- </policylist>
30
- <filefilterlist>
31
- <filefilter name="defaultFilter" desc="Files not to check">
32
-
33
- </filefilter>
34
- <filefilter name="defaultPolicyFilter" desc="Filters for compatibility,license header policies">
35
- <filteritem type="filename" name="LICENSE" desc="许可证说明文件,不添加版权头"/>
36
- <filteritem type="filename" name="RNDefaultPreference.podspec" desc="工程配置文件,不添加版权头"/>
37
- <filteritem type="filename" name="README.OpenSource" desc="许可证说明文件,不添加版权头"/>
38
- <filteritem type="filename" name="index.d.ts" desc="需要引用的原库文件,不添加许可证头"/>
39
- <filteritem type="filename" name="index.js" desc="需要引用的原库文件,不添加许可证头"/>
40
- <filteritem type="filepath" name="flow-typed/index.js" desc="需要引用的原库文件,不添加许可证头"/>
41
- <filteritem type="filepath" name="harmony/react_native_default_preference/src/main/module.json5" desc="工程配置文件,不添加许可证头"/>
42
- <filteritem type="filepath" name="harmony/react_native_default_preference/BuildProfile.ets" desc="工程配置文件,不添加许可证头"/>
43
- <filteritem type="filepath" name="harmony/react_native_default_preference/build-profile.json5" desc="工程配置文件,不添加许可证头"/>
44
- <filteritem type="filepath" name="harmony/react_native_default_preference/hvigorfile.ts" desc="工程配置文件,不添加许可证头"/>
45
- <filteritem type="filepath" name="harmony/react_native_default_preference/oh-package-lock.json5" desc="工程配置文件,不添加许可证头"/>
46
- <filteritem type="filepath" name="harmony/react_native_default_preference/oh-package.json5" desc="工程配置文件,不添加许可证头"/>
47
-
48
- </filefilter>
49
- <filefilter name="binaryFileTypePolicyFilter" desc="Filters for copyright header policies">
50
- <filteritem type="filepath" name="harmony/react_native_default_preference.har" desc="项目打包文件"/>
51
- </filefilter>
52
-
53
- <filefilter name="copyrightPolicyFilter" desc="Filters for copyright header policies">
54
- <filteritem type="filename" name="RNDefaultPreference.podspec" desc="工程配置文件,不添加版权头"/>
55
- <filteritem type="filename" name="README.OpenSource" desc="许可证说明文件,不添加版权头"/>
56
- <filteritem type="filename" name="index.d.ts" desc="需要引用的原库文件,不添加许可证头"/>
57
- <filteritem type="filename" name="index.js" desc="需要引用的原库文件,不添加许可证头"/>
58
- <filteritem type="filepath" name="flow-typed/index.js" desc="需要引用的原库文件,不添加许可证头"/>
59
- <filteritem type="filepath" name="harmony/react_native_default_preference/src/main/module.json5" desc="工程配置文件,不添加许可证头"/>
60
- <filteritem type="filepath" name="harmony/react_native_default_preference/BuildProfile.ets" desc="工程配置文件,不添加许可证头"/>
61
- <filteritem type="filepath" name="harmony/react_native_default_preference/build-profile.json5" desc="工程配置文件,不添加许可证头"/>
62
- <filteritem type="filepath" name="harmony/react_native_default_preference/hvigorfile.ts" desc="工程配置文件,不添加许可证头"/>
63
- <filteritem type="filepath" name="harmony/react_native_default_preference/oh-package-lock.json5" desc="工程配置文件,不添加许可证头"/>
64
- <filteritem type="filepath" name="harmony/react_native_default_preference/oh-package.json5" desc="工程配置文件,不添加许可证头"/>
65
-
66
- </filefilter>
67
- </filefilterlist>
68
- </oatconfig>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Copyright (c) 2021 Huawei Device Co., Ltd.
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+ http://www.apache.org/licenses/LICENSE-2.0
7
+ Unless required by applicable law or agreed to in writing, software
8
+ distributed under the License is distributed on an "AS IS" BASIS,
9
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ See the License for the specific language governing permissions and
11
+ limitations under the License.
12
+ This is the configuration file template for OpenHarmony OSS Audit Tool, please copy it to your project root dir and modify it refer to OpenHarmony/tools_oat/README.
13
+ -->
14
+
15
+ <configuration>
16
+ <oatconfig>
17
+ <licensefile>LICENSE</licensefile>
18
+ <policylist>
19
+ <policy name="projectPolicy" desc="">
20
+ <policyitem type="license" name="MIT" path=".*" desc="license under the MIT"/>
21
+ </policy>
22
+ <policy name="projectPolicy" desc="">
23
+ <policyitem type="compatibility" name="GPL-2.0+" path=".*" desc="Process that runs independently, invoked by the X process."/>
24
+ <policyitem type="compatibility" name="Apache-2.0" path=".*" desc="不影响兼容性"/>
25
+ <policyitem type="compatibility" name="BSDStyleLicense" path=".*" desc="不影响兼容性" />
26
+ <policyitem type="compatibility" name="MIT" path=".*" desc="不影响兼容性" />
27
+ <policyitem type="compatibility" name="GPLStyleLicense" path=".*" desc="不影响兼容性" />
28
+ </policy>
29
+ </policylist>
30
+ <filefilterlist>
31
+ <filefilter name="defaultFilter" desc="Files not to check">
32
+
33
+ </filefilter>
34
+ <filefilter name="defaultPolicyFilter" desc="Filters for compatibility,license header policies">
35
+ <filteritem type="filename" name="LICENSE" desc="许可证说明文件,不添加版权头"/>
36
+ <filteritem type="filename" name="RNDefaultPreference.podspec" desc="工程配置文件,不添加版权头"/>
37
+ <filteritem type="filename" name="README.OpenSource" desc="许可证说明文件,不添加版权头"/>
38
+ <filteritem type="filename" name="index.d.ts" desc="需要引用的原库文件,不添加许可证头"/>
39
+ <filteritem type="filename" name="index.js" desc="需要引用的原库文件,不添加许可证头"/>
40
+ <filteritem type="filepath" name="flow-typed/index.js" desc="需要引用的原库文件,不添加许可证头"/>
41
+ <filteritem type="filepath" name="harmony/react_native_default_preference/src/main/module.json5" desc="工程配置文件,不添加许可证头"/>
42
+ <filteritem type="filepath" name="harmony/react_native_default_preference/BuildProfile.ets" desc="工程配置文件,不添加许可证头"/>
43
+ <filteritem type="filepath" name="harmony/react_native_default_preference/build-profile.json5" desc="工程配置文件,不添加许可证头"/>
44
+ <filteritem type="filepath" name="harmony/react_native_default_preference/hvigorfile.ts" desc="工程配置文件,不添加许可证头"/>
45
+ <filteritem type="filepath" name="harmony/react_native_default_preference/oh-package-lock.json5" desc="工程配置文件,不添加许可证头"/>
46
+ <filteritem type="filepath" name="harmony/react_native_default_preference/oh-package.json5" desc="工程配置文件,不添加许可证头"/>
47
+
48
+ </filefilter>
49
+ <filefilter name="binaryFileTypePolicyFilter" desc="Filters for copyright header policies">
50
+ <filteritem type="filepath" name="harmony/react_native_default_preference.har" desc="项目打包文件"/>
51
+ </filefilter>
52
+
53
+ <filefilter name="copyrightPolicyFilter" desc="Filters for copyright header policies">
54
+ <filteritem type="filename" name="RNDefaultPreference.podspec" desc="工程配置文件,不添加版权头"/>
55
+ <filteritem type="filename" name="README.OpenSource" desc="许可证说明文件,不添加版权头"/>
56
+ <filteritem type="filename" name="index.d.ts" desc="需要引用的原库文件,不添加许可证头"/>
57
+ <filteritem type="filename" name="index.js" desc="需要引用的原库文件,不添加许可证头"/>
58
+ <filteritem type="filepath" name="flow-typed/index.js" desc="需要引用的原库文件,不添加许可证头"/>
59
+ <filteritem type="filepath" name="harmony/react_native_default_preference/src/main/module.json5" desc="工程配置文件,不添加许可证头"/>
60
+ <filteritem type="filepath" name="harmony/react_native_default_preference/BuildProfile.ets" desc="工程配置文件,不添加许可证头"/>
61
+ <filteritem type="filepath" name="harmony/react_native_default_preference/build-profile.json5" desc="工程配置文件,不添加许可证头"/>
62
+ <filteritem type="filepath" name="harmony/react_native_default_preference/hvigorfile.ts" desc="工程配置文件,不添加许可证头"/>
63
+ <filteritem type="filepath" name="harmony/react_native_default_preference/oh-package-lock.json5" desc="工程配置文件,不添加许可证头"/>
64
+ <filteritem type="filepath" name="harmony/react_native_default_preference/oh-package.json5" desc="工程配置文件,不添加许可证头"/>
65
+
66
+ </filefilter>
67
+ </filefilterlist>
68
+ </oatconfig>
69
69
  </configuration>
package/README.OpenSource CHANGED
@@ -1,11 +1,11 @@
1
- [
2
- {
3
- "Name": "react-native-default-preference",
4
- "License": "MIT License",
5
- "License File": "https://github.com/kevinresol/react-native-default-preference/blob/master/LICENSE",
6
- "Version Number": "1.4.4",
7
- "Owner" : "xiafeng@huawei.com",
8
- "Upstream URL": "https://github.com/kevinresol/react-native-default-preference",
9
- "Description": "Use SharedPreference (Android) and UserDefaults (iOS) with React Native over a unified interface"
10
- }
1
+ [
2
+ {
3
+ "Name": "react-native-default-preference",
4
+ "License": "MIT License",
5
+ "License File": "https://github.com/kevinresol/react-native-default-preference/blob/master/LICENSE",
6
+ "Version Number": "1.4.4",
7
+ "Owner" : "xiafeng@huawei.com",
8
+ "Upstream URL": "https://github.com/kevinresol/react-native-default-preference",
9
+ "Description": "Use SharedPreference (Android) and UserDefaults (iOS) with React Native over a unified interface"
10
+ }
11
11
  ]
package/README.md CHANGED
@@ -1,13 +1,13 @@
1
- # @react-native-oh-tpl/react-native-default-preference
2
-
3
- This project is based on [react-native-default-preference](https://github.com/kevinresol/react-native-default-preference)
4
-
5
- ## Documentation
6
-
7
- [中文](https://gitee.com/react-native-oh-library/usage-docs/blob/master/zh-cn/react-native-default-preference.md)
8
-
9
- [English](https://gitee.com/react-native-oh-library/usage-docs/blob/master/en/react-native-default-preference.md)
10
-
11
- ## License
12
-
1
+ # @react-native-ohos/react-native-default-preference
2
+
3
+ This project is based on [react-native-default-preference](https://github.com/kevinresol/react-native-default-preference)
4
+
5
+ ## Documentation
6
+
7
+ [中文](https://gitee.com/react-native-oh-library/usage-docs/blob/master/zh-cn/react-native-default-preference.md)
8
+
9
+ [English](https://gitee.com/react-native-oh-library/usage-docs/blob/master/en/react-native-default-preference.md)
10
+
11
+ ## License
12
+
13
13
  This library is licensed under [The MIT License (MIT)](https://github.com/kevinresol/react-native-default-preference/blob/master/LICENSE).
@@ -1,22 +1,22 @@
1
- require 'json'
2
-
3
- package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4
-
5
- Pod::Spec.new do |s|
6
- s.name = "RNDefaultPreference"
7
- s.version = package['version']
8
- s.summary = package['description']
9
- s.description = package['description']
10
- s.license = package['license']
11
- s.author = package['author']
12
- s.homepage = package['homepage']
13
-
14
- s.platforms = { :ios => "9.0", :tvos => "11.0" }
15
- s.ios.deployment_target = '9.0'
16
-
17
- s.preserve_paths = 'README.md', 'package.json', 'index.js'
18
- s.source_files = 'iOS/*.{h,m}'
19
- s.source = { :git => 'https://github.com/kevinresol/react-native-default-preference.git' }
20
-
21
- s.dependency 'React-Core'
22
- end
1
+ require 'json'
2
+
3
+ package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4
+
5
+ Pod::Spec.new do |s|
6
+ s.name = "RNDefaultPreference"
7
+ s.version = package['version']
8
+ s.summary = package['description']
9
+ s.description = package['description']
10
+ s.license = package['license']
11
+ s.author = package['author']
12
+ s.homepage = package['homepage']
13
+
14
+ s.platforms = { :ios => "9.0", :tvos => "11.0" }
15
+ s.ios.deployment_target = '9.0'
16
+
17
+ s.preserve_paths = 'README.md', 'package.json', 'index.js'
18
+ s.source_files = 'iOS/*.{h,m}'
19
+ s.source = { :git => 'https://github.com/kevinresol/react-native-default-preference.git' }
20
+
21
+ s.dependency 'React-Core'
22
+ end
@@ -1,23 +1,23 @@
1
- /**
2
- * Flowtype definitions for index
3
- * Generated by Flowgen from a Typescript Definition
4
- * Flowgen v1.10.0
5
- */
6
-
7
- declare module "react-native-default-preference" {
8
- declare export interface RNDefaultPreferenceKeys {
9
- [key: string]: string;
10
- }
11
- declare export default class RNDefaultPreference {
12
- static get(key: string): Promise<string | undefined | null>;
13
- static set(key: string, value: string): Promise<void>;
14
- static clear(key: string): Promise<void>;
15
- static getMultiple(keys: string[]): Promise<RNDefaultPreferenceKeys>;
16
- static setMultiple(data: RNDefaultPreferenceKeys): Promise<void>;
17
- static clearMultiple(keys: string[]): Promise<void>;
18
- static getAll(): Promise<RNDefaultPreferenceKeys>;
19
- static clearAll(): Promise<void>;
20
- static getName(): Promise<string>;
21
- static setName(name: string): Promise<void>;
22
- }
23
- }
1
+ /**
2
+ * Flowtype definitions for index
3
+ * Generated by Flowgen from a Typescript Definition
4
+ * Flowgen v1.10.0
5
+ */
6
+
7
+ declare module "react-native-default-preference" {
8
+ declare export interface RNDefaultPreferenceKeys {
9
+ [key: string]: string;
10
+ }
11
+ declare export default class RNDefaultPreference {
12
+ static get(key: string): Promise<string | undefined | null>;
13
+ static set(key: string, value: string): Promise<void>;
14
+ static clear(key: string): Promise<void>;
15
+ static getMultiple(keys: string[]): Promise<RNDefaultPreferenceKeys>;
16
+ static setMultiple(data: RNDefaultPreferenceKeys): Promise<void>;
17
+ static clearMultiple(keys: string[]): Promise<void>;
18
+ static getAll(): Promise<RNDefaultPreferenceKeys>;
19
+ static clearAll(): Promise<void>;
20
+ static getName(): Promise<string>;
21
+ static setName(name: string): Promise<void>;
22
+ }
23
+ }
@@ -1,17 +1,17 @@
1
- /**
2
- * Use these variables when you tailor your ArkTS code. They must be of the const type.
3
- */
4
- export const HAR_VERSION = '1.4.4-0.0.1';
5
- export const BUILD_MODE_NAME = 'debug';
6
- export const DEBUG = true;
7
- export const TARGET_NAME = 'default';
8
-
9
- /**
10
- * BuildProfile Class is used only for compatibility purposes.
11
- */
12
- export default class BuildProfile {
13
- static readonly HAR_VERSION = HAR_VERSION;
14
- static readonly BUILD_MODE_NAME = BUILD_MODE_NAME;
15
- static readonly DEBUG = DEBUG;
16
- static readonly TARGET_NAME = TARGET_NAME;
1
+ /**
2
+ * Use these variables when you tailor your ArkTS code. They must be of the const type.
3
+ */
4
+ export const HAR_VERSION = '1.4.5';
5
+ export const BUILD_MODE_NAME = 'debug';
6
+ export const DEBUG = true;
7
+ export const TARGET_NAME = 'default';
8
+
9
+ /**
10
+ * BuildProfile Class is used only for compatibility purposes.
11
+ */
12
+ export default class BuildProfile {
13
+ static readonly HAR_VERSION = HAR_VERSION;
14
+ static readonly BUILD_MODE_NAME = BUILD_MODE_NAME;
15
+ static readonly DEBUG = DEBUG;
16
+ static readonly TARGET_NAME = TARGET_NAME;
17
17
  }
@@ -1,7 +1,7 @@
1
- /*
2
- * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved
3
- * Use of this source code is governed by a MIT license that can be
4
- * found in the LICENSE file.
5
- */
6
-
1
+ /*
2
+ * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved
3
+ * Use of this source code is governed by a MIT license that can be
4
+ * found in the LICENSE file.
5
+ */
6
+
7
7
  export * from "./ts"
@@ -1,26 +1,26 @@
1
- {
2
- "apiType": "stageMode",
3
- /* "buildOption": {
4
- },
5
- "buildOptionSet": [
6
- {
7
- "name": "release",
8
- "arkOptions": {
9
- "obfuscation": {
10
- "ruleOptions": {
11
- "enable": true,
12
- "files": [
13
- "./obfuscation-rules.txt"
14
- ]
15
- }
16
- }
17
- },
18
- },
19
- ],*/
20
- "targets": [
21
- {
22
- "name": "default",
23
- "runtimeOS": "HarmonyOS"
24
- }
25
- ]
1
+ {
2
+ "apiType": "stageMode",
3
+ /* "buildOption": {
4
+ },
5
+ "buildOptionSet": [
6
+ {
7
+ "name": "release",
8
+ "arkOptions": {
9
+ "obfuscation": {
10
+ "ruleOptions": {
11
+ "enable": true,
12
+ "files": [
13
+ "./obfuscation-rules.txt"
14
+ ]
15
+ }
16
+ }
17
+ },
18
+ },
19
+ ],*/
20
+ "targets": [
21
+ {
22
+ "name": "default",
23
+ "runtimeOS": "HarmonyOS"
24
+ }
25
+ ]
26
26
  }
@@ -1,6 +1,6 @@
1
- import { harTasks } from '@ohos/hvigor-ohos-plugin';
2
-
3
- export default {
4
- system: harTasks, /* Built-in plugin of Hvigor. It cannot be modified. */
5
- plugins:[] /* Custom plugin to extend the functionality of Hvigor. */
6
- }
1
+ import { harTasks } from '@ohos/hvigor-ohos-plugin';
2
+
3
+ export default {
4
+ system: harTasks, /* Built-in plugin of Hvigor. It cannot be modified. */
5
+ plugins:[] /* Custom plugin to extend the functionality of Hvigor. */
6
+ }
@@ -1,18 +1,18 @@
1
- # Define project specific obfuscation rules here.
2
- # You can include the obfuscation configuration files in the current module's build-profile.json5.
3
- #
4
- # For more details, see
5
- # https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/source-obfuscation-V5
6
-
7
- # Obfuscation options:
8
- # -disable-obfuscation: disable all obfuscations
9
- # -enable-property-obfuscation: obfuscate the property names
10
- # -enable-toplevel-obfuscation: obfuscate the names in the global scope
11
- # -compact: remove unnecessary blank spaces and all line feeds
12
- # -remove-log: remove all console.* statements
13
- # -print-namecache: print the name cache that contains the mapping from the old names to new names
14
- # -apply-namecache: reuse the given cache file
15
-
16
- # Keep options:
17
- # -keep-property-name: specifies property names that you want to keep
1
+ # Define project specific obfuscation rules here.
2
+ # You can include the obfuscation configuration files in the current module's build-profile.json5.
3
+ #
4
+ # For more details, see
5
+ # https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/source-obfuscation-V5
6
+
7
+ # Obfuscation options:
8
+ # -disable-obfuscation: disable all obfuscations
9
+ # -enable-property-obfuscation: obfuscate the property names
10
+ # -enable-toplevel-obfuscation: obfuscate the names in the global scope
11
+ # -compact: remove unnecessary blank spaces and all line feeds
12
+ # -remove-log: remove all console.* statements
13
+ # -print-namecache: print the name cache that contains the mapping from the old names to new names
14
+ # -apply-namecache: reuse the given cache file
15
+
16
+ # Keep options:
17
+ # -keep-property-name: specifies property names that you want to keep
18
18
  # -keep-global-name: specifies names that you want to keep in the global scope
@@ -1,12 +1,12 @@
1
- {
2
- "name": "@react-native-ohos/react-native-default-preference",
3
- "version": "1.4.5-rc.1",
4
- "description": "Keep the screen from going to sleep",
5
- "main": "Index.ets",
6
- "author": "",
7
- "license": "Apache-2.0",
8
- "dependencies": {
9
- "@rnoh/react-native-openharmony": 'file:../react_native_openharmony'
10
- }
11
- }
12
-
1
+ {
2
+ "name": "@react-native-ohos/react-native-default-preference",
3
+ "version": "1.5.0-rc.1",
4
+ "description": "Keep the screen from going to sleep",
5
+ "main": "Index.ets",
6
+ "author": "",
7
+ "license": "Apache-2.0",
8
+ "dependencies": {
9
+ "@rnoh/react-native-openharmony": 'file:../react_native_openharmony'
10
+ }
11
+ }
12
+