Skip to content

Commit c28548e

Browse files
author
jinzhao
committed
fix:harmony代码规范化及RN27包版本发布
1 parent 5dd5636 commit c28548e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+73
-2084
lines changed
Binary file not shown.
Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +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 = '5.1.2-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+
*/
112
export default class BuildProfile {
2-
static readonly HAR_VERSION = '5.1.2-0.0.1';
3-
static readonly BUILD_MODE_NAME = 'debug';
4-
static readonly DEBUG = true;
5-
static readonly TARGET_NAME = 'default';
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;
617
}
Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,31 @@
11
{
22
"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+
"consumerFiles": [
17+
"./consumer-rules.txt"
18+
]
19+
}
20+
},
21+
},
22+
],
323
"targets": [
424
{
5-
"name": "default",
6-
"runtimeOS": "HarmonyOS"
25+
"name": "default"
26+
},
27+
{
28+
"name": "ohosTest"
729
}
830
]
931
}

packages/react-native-performance/harmony/react_native_performance/consumer-rules.txt

Whitespace-only changes.
Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
// import { hapTasks } from '@ohos/hvigor-ohos-plugin';
2-
//
3-
// export default {
4-
// system: hapTasks, /* Built-in plugin of Hvigor. It cannot be modified. */
5-
// plugins:[] /* Custom plugin to extend the functionality of Hvigor. */
6-
// }
7-
export { harTasks } from '@ohos/hvigor-ohos-plugin';
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+
}

packages/react-native-performance/harmony/react_native_performance/obfuscation-rules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# You can include the obfuscation configuration files in the current module's build-profile.json5.
33
#
44
# For more details, see
5-
# https://gitee.com/openharmony/arkcompiler_ets_frontend/blob/master/arkguard/README.md
5+
# https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/source-obfuscation-V5
66

77
# Obfuscation options:
88
# -disable-obfuscation: disable all obfuscations

packages/react-native-performance/harmony/react_native_performance/oh-package-lock.json5

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/react-native-performance/harmony/react_native_performance/oh-package.json5

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@
1010
},
1111
"repository": "git://github.com/react-native-oh-library/react-native-performance.git"
1212
}
13-

packages/react-native-performance/harmony/react_native_performance/src/main/cpp/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

packages/react-native-performance/harmony/react_native_performance/src/main/cpp/CMakeLists.txt

Lines changed: 0 additions & 31 deletions
This file was deleted.

packages/react-native-performance/harmony/react_native_performance/src/main/cpp/PackageProvider.cpp

Lines changed: 0 additions & 9 deletions
This file was deleted.

packages/react-native-performance/harmony/react_native_performance/src/main/ets/Logger.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class Logger {
66
private format: string = '%{public}s, %{public}s';
77
private isDebug: boolean;
88

9-
constructor(prefix: string = 'MyApp', domain: number = 0xFF00, isDebug = false) {
9+
constructor(prefix: string = 'RNPerformance', domain: number = 0xFF00, isDebug = false) {
1010
this.prefix = prefix;
1111
this.domain = domain;
1212
this.isDebug = isDebug;
@@ -31,4 +31,4 @@ class Logger {
3131
}
3232
}
3333

34-
export default new Logger('ImageCropPickerTurboModule', 0xFF00, true)
34+
export default new Logger('RNPerformanceTurboModule', 0xFF00, true)

0 commit comments

Comments
 (0)