Skip to content

Commit

Permalink
feat: chart support api 10
Browse files Browse the repository at this point in the history
  • Loading branch information
neuqzxy committed Feb 18, 2025
1 parent 5cba48a commit fe4a382
Show file tree
Hide file tree
Showing 33 changed files with 152 additions and 304 deletions.
2 changes: 1 addition & 1 deletion packages/harmony_vchart/AppScope/app.json5
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"app": {
"bundleName": "com.example.harmony_vchart",
"bundleName": "com.visactor.harmony_vchart",
"vendor": "example",
"versionCode": 1000000,
"versionName": "1.0.0",
Expand Down
27 changes: 9 additions & 18 deletions packages/harmony_vchart/build-profile.json5
Original file line number Diff line number Diff line change
@@ -1,26 +1,17 @@
{
"app": {
"signingConfigs": [
{
"name": "default",
"type": "HarmonyOS",
"material": {
"certpath": "/Users/bytedance/.ohos/config/default_harmony_vchart_m3X_Q73S0c1PkWCri-2giAIdCwaWn6w0joXKOlYVNTc=.cer",
"storePassword": "0000001BB0821C5BFCDBED9D1A29162535E098C0827C04C46353CC00F356AADA3534B7EBEA6DEB7A1626A0",
"keyAlias": "debugKey",
"keyPassword": "0000001B18C8DAD8D61286031F57F71B70AC4B66B170F6C5EA3AD956B76A038DAA5004AE03B11EA75EDB91",
"profile": "/Users/bytedance/.ohos/config/default_harmony_vchart_m3X_Q73S0c1PkWCri-2giAIdCwaWn6w0joXKOlYVNTc=.p7b",
"signAlg": "SHA256withECDSA",
"storeFile": "/Users/bytedance/.ohos/config/default_harmony_vchart_m3X_Q73S0c1PkWCri-2giAIdCwaWn6w0joXKOlYVNTc=.p12"
}
}
],
"signingConfigs": [],
"products": [
{
"name": "default",
"signingConfig": "default",
"compatibleSdkVersion": "4.1.0(11)",
"compatibleSdkVersion": "4.0.0(10)",
"runtimeOS": "HarmonyOS",
"buildOption": {
"strictMode": {
"caseSensitiveCheck": true,
}
}
}
],
"buildModeSet": [
Expand All @@ -47,7 +38,7 @@
},
{
"name": "library",
"srcPath": "./library"
"srcPath": "./library",
}
]
}
}
20 changes: 20 additions & 0 deletions packages/harmony_vchart/code-linter.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"files": [
"**/*.ets"
],
"ignore": [
"**/src/ohosTest/**/*",
"**/src/test/**/*",
"**/src/mock/**/*",
"**/node_modules/**/*",
"**/oh_modules/**/*",
"**/build/**/*",
"**/.preview/**/*"
],
"ruleSet": [
"plugin:@performance/recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
}
}
4 changes: 2 additions & 2 deletions packages/harmony_vchart/entry/build-profile.json5
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"arkOptions": {
"obfuscation": {
"ruleOptions": {
"enable": true,
"enable": false,
"files": [
"./obfuscation-rules.txt"
]
Expand All @@ -25,4 +25,4 @@
"name": "ohosTest",
}
]
}
}
9 changes: 7 additions & 2 deletions packages/harmony_vchart/entry/obfuscation-rules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# You can include the obfuscation configuration files in the current module's build-profile.json5.
#
# For more details, see
# https://gitee.com/openharmony/arkcompiler_ets_frontend/blob/master/arkguard/README.md
# https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/source-obfuscation-V5

# Obfuscation options:
# -disable-obfuscation: disable all obfuscations
Expand All @@ -15,4 +15,9 @@

# Keep options:
# -keep-property-name: specifies property names that you want to keep
# -keep-global-name: specifies names that you want to keep in the global scope
# -keep-global-name: specifies names that you want to keep in the global scope

-enable-property-obfuscation
-enable-toplevel-obfuscation
-enable-filename-obfuscation
-enable-export-obfuscation
12 changes: 6 additions & 6 deletions packages/harmony_vchart/entry/oh-package-lock.json5

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import hilog from '@ohos.hilog';
import BackupExtensionAbility, { BundleVersion } from '@ohos.application.BackupExtensionAbility';

export default class EntryBackupAbility extends BackupExtensionAbility {
async onBackup() {
hilog.info(0x0000, 'testTag', 'onBackup ok');
}

async onRestore(bundleVersion: BundleVersion) {
hilog.info(0x0000, 'testTag', 'onRestore ok %{public}s', JSON.stringify(bundleVersion));
}
}
16 changes: 15 additions & 1 deletion packages/harmony_vchart/entry/src/main/module.json5
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,20 @@
}
]
}
],
"extensionAbilities": [
{
"name": "EntryBackupAbility",
"srcEntry": "./ets/entrybackupability/EntryBackupAbility.ets",
"type": "backup",
"exported": false,
"metadata": [
{
"name": "ohos.extension.backup",
"resource": "$profile:backup_config"
}
],
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"allowToBackupRestore": false
}
2 changes: 0 additions & 2 deletions packages/harmony_vchart/entry/src/mock/mock-config.json5

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { hilog } from '@kit.PerformanceAnalysisKit';
import hilog from '@ohos.hilog';
import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium';

export default function abilityTest() {
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

27 changes: 1 addition & 26 deletions packages/harmony_vchart/entry/src/ohosTest/module.json5
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,12 @@
"module": {
"name": "entry_test",
"type": "feature",
"description": "$string:module_test_desc",
"mainElement": "TestAbility",
"deviceTypes": [
"phone",
"tablet",
"2in1"
],
"deliveryWithInstall": true,
"installationFree": false,
"pages": "$profile:test_pages",
"abilities": [
{
"name": "TestAbility",
"srcEntry": "./ets/testability/TestAbility.ets",
"description": "$string:TestAbility_desc",
"icon": "$media:icon",
"label": "$string:TestAbility_label",
"exported": true,
"startWindowIcon": "$media:icon",
"startWindowBackground": "$color:start_window_background",
"skills": [
{
"actions": [
"action.system.home"
],
"entities": [
"entity.system.home"
]
}
]
}
]
"installationFree": false
}
}
Loading

0 comments on commit fe4a382

Please sign in to comment.