Skip to content

Commit fe4a382

Browse files
committed
feat: chart support api 10
1 parent 5cba48a commit fe4a382

33 files changed

+152
-304
lines changed

packages/harmony_vchart/AppScope/app.json5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"app": {
3-
"bundleName": "com.example.harmony_vchart",
3+
"bundleName": "com.visactor.harmony_vchart",
44
"vendor": "example",
55
"versionCode": 1000000,
66
"versionName": "1.0.0",

packages/harmony_vchart/build-profile.json5

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,17 @@
11
{
22
"app": {
3-
"signingConfigs": [
4-
{
5-
"name": "default",
6-
"type": "HarmonyOS",
7-
"material": {
8-
"certpath": "/Users/bytedance/.ohos/config/default_harmony_vchart_m3X_Q73S0c1PkWCri-2giAIdCwaWn6w0joXKOlYVNTc=.cer",
9-
"storePassword": "0000001BB0821C5BFCDBED9D1A29162535E098C0827C04C46353CC00F356AADA3534B7EBEA6DEB7A1626A0",
10-
"keyAlias": "debugKey",
11-
"keyPassword": "0000001B18C8DAD8D61286031F57F71B70AC4B66B170F6C5EA3AD956B76A038DAA5004AE03B11EA75EDB91",
12-
"profile": "/Users/bytedance/.ohos/config/default_harmony_vchart_m3X_Q73S0c1PkWCri-2giAIdCwaWn6w0joXKOlYVNTc=.p7b",
13-
"signAlg": "SHA256withECDSA",
14-
"storeFile": "/Users/bytedance/.ohos/config/default_harmony_vchart_m3X_Q73S0c1PkWCri-2giAIdCwaWn6w0joXKOlYVNTc=.p12"
15-
}
16-
}
17-
],
3+
"signingConfigs": [],
184
"products": [
195
{
206
"name": "default",
217
"signingConfig": "default",
22-
"compatibleSdkVersion": "4.1.0(11)",
8+
"compatibleSdkVersion": "4.0.0(10)",
239
"runtimeOS": "HarmonyOS",
10+
"buildOption": {
11+
"strictMode": {
12+
"caseSensitiveCheck": true,
13+
}
14+
}
2415
}
2516
],
2617
"buildModeSet": [
@@ -47,7 +38,7 @@
4738
},
4839
{
4940
"name": "library",
50-
"srcPath": "./library"
41+
"srcPath": "./library",
5142
}
5243
]
53-
}
44+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"files": [
3+
"**/*.ets"
4+
],
5+
"ignore": [
6+
"**/src/ohosTest/**/*",
7+
"**/src/test/**/*",
8+
"**/src/mock/**/*",
9+
"**/node_modules/**/*",
10+
"**/oh_modules/**/*",
11+
"**/build/**/*",
12+
"**/.preview/**/*"
13+
],
14+
"ruleSet": [
15+
"plugin:@performance/recommended",
16+
"plugin:@typescript-eslint/recommended"
17+
],
18+
"rules": {
19+
}
20+
}

packages/harmony_vchart/entry/build-profile.json5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"arkOptions": {
99
"obfuscation": {
1010
"ruleOptions": {
11-
"enable": true,
11+
"enable": false,
1212
"files": [
1313
"./obfuscation-rules.txt"
1414
]
@@ -25,4 +25,4 @@
2525
"name": "ohosTest",
2626
}
2727
]
28-
}
28+
}

packages/harmony_vchart/entry/obfuscation-rules.txt

Lines changed: 7 additions & 2 deletions
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
@@ -15,4 +15,9 @@
1515

1616
# Keep options:
1717
# -keep-property-name: specifies property names that you want to keep
18-
# -keep-global-name: specifies names that you want to keep in the global scope
18+
# -keep-global-name: specifies names that you want to keep in the global scope
19+
20+
-enable-property-obfuscation
21+
-enable-toplevel-obfuscation
22+
-enable-filename-obfuscation
23+
-enable-export-obfuscation

packages/harmony_vchart/entry/oh-package-lock.json5

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import hilog from '@ohos.hilog';
2+
import BackupExtensionAbility, { BundleVersion } from '@ohos.application.BackupExtensionAbility';
3+
4+
export default class EntryBackupAbility extends BackupExtensionAbility {
5+
async onBackup() {
6+
hilog.info(0x0000, 'testTag', 'onBackup ok');
7+
}
8+
9+
async onRestore(bundleVersion: BundleVersion) {
10+
hilog.info(0x0000, 'testTag', 'onRestore ok %{public}s', JSON.stringify(bundleVersion));
11+
}
12+
}

packages/harmony_vchart/entry/src/main/module.json5

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,20 @@
3333
}
3434
]
3535
}
36+
],
37+
"extensionAbilities": [
38+
{
39+
"name": "EntryBackupAbility",
40+
"srcEntry": "./ets/entrybackupability/EntryBackupAbility.ets",
41+
"type": "backup",
42+
"exported": false,
43+
"metadata": [
44+
{
45+
"name": "ohos.extension.backup",
46+
"resource": "$profile:backup_config"
47+
}
48+
],
49+
}
3650
]
3751
}
38-
}
52+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"allowToBackupRestore": false
3+
}

packages/harmony_vchart/entry/src/mock/mock-config.json5

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

packages/harmony_vchart/entry/src/ohosTest/ets/test/Ability.test.ets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { hilog } from '@kit.PerformanceAnalysisKit';
1+
import hilog from '@ohos.hilog';
22
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium';
33

44
export default function abilityTest() {

packages/harmony_vchart/entry/src/ohosTest/ets/testability/TestAbility.ets

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

packages/harmony_vchart/entry/src/ohosTest/ets/testability/pages/Index.ets

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

packages/harmony_vchart/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ets

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

packages/harmony_vchart/entry/src/ohosTest/module.json5

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,12 @@
22
"module": {
33
"name": "entry_test",
44
"type": "feature",
5-
"description": "$string:module_test_desc",
6-
"mainElement": "TestAbility",
75
"deviceTypes": [
86
"phone",
97
"tablet",
108
"2in1"
119
],
1210
"deliveryWithInstall": true,
13-
"installationFree": false,
14-
"pages": "$profile:test_pages",
15-
"abilities": [
16-
{
17-
"name": "TestAbility",
18-
"srcEntry": "./ets/testability/TestAbility.ets",
19-
"description": "$string:TestAbility_desc",
20-
"icon": "$media:icon",
21-
"label": "$string:TestAbility_label",
22-
"exported": true,
23-
"startWindowIcon": "$media:icon",
24-
"startWindowBackground": "$color:start_window_background",
25-
"skills": [
26-
{
27-
"actions": [
28-
"action.system.home"
29-
],
30-
"entities": [
31-
"entity.system.home"
32-
]
33-
}
34-
]
35-
}
36-
]
11+
"installationFree": false
3712
}
3813
}

0 commit comments

Comments
 (0)