Showing
53 changed files
with
59 additions
and
611 deletions
ohos/AppScope/app.json5
deleted
100644 → 0

2.71 KB
1 | { | 1 | { |
2 | - "app": { | ||
3 | - "signingConfigs": [], | ||
4 | - "products": [ | ||
5 | - { | ||
6 | - "name": "default", | ||
7 | - "signingConfig": "default", | ||
8 | - "compatibleSdkVersion": "5.0.1(13)", | ||
9 | - "runtimeOS": "HarmonyOS", | ||
10 | - "buildOption": { | ||
11 | - "strictMode": { | ||
12 | - "caseSensitiveCheck": true, | ||
13 | - "useNormalizedOHMUrl": true | ||
14 | - } | ||
15 | - } | ||
16 | - } | ||
17 | - ], | ||
18 | - "buildModeSet": [ | ||
19 | - { | ||
20 | - "name": "debug", | ||
21 | - }, | ||
22 | - { | ||
23 | - "name": "release" | ||
24 | - } | ||
25 | - ] | 2 | + "apiType": "stageMode", |
3 | + "buildOption": { | ||
26 | }, | 4 | }, |
27 | - "modules": [ | 5 | + "buildOptionSet": [ |
28 | { | 6 | { |
29 | - "name": "entry", | ||
30 | - "srcPath": "./entry", | ||
31 | - "targets": [ | ||
32 | - { | ||
33 | - "name": "default", | ||
34 | - "applyToProducts": [ | ||
35 | - "default" | 7 | + "name": "release", |
8 | + "arkOptions": { | ||
9 | + "obfuscation": { | ||
10 | + "ruleOptions": { | ||
11 | + "enable": false, | ||
12 | + "files": [ | ||
13 | + "./obfuscation-rules.txt" | ||
14 | + ] | ||
15 | + }, | ||
16 | + "consumerFiles": [ | ||
17 | + "./consumer-rules.txt" | ||
36 | ] | 18 | ] |
37 | } | 19 | } |
38 | - ] | 20 | + }, |
21 | + "nativeLib": { | ||
22 | + "debugSymbol": { | ||
23 | + "strip": true, | ||
24 | + "exclude": [] | ||
25 | + } | ||
26 | + } | ||
39 | }, | 27 | }, |
28 | + ], | ||
29 | + "targets": [ | ||
40 | { | 30 | { |
41 | - "name": "xlog", | ||
42 | - "srcPath": "./xlog", | ||
43 | - "targets": [ | ||
44 | - { | ||
45 | - "name": "default", | ||
46 | - "applyToProducts": [ | ||
47 | - "default" | ||
48 | - ] | ||
49 | - } | ||
50 | - ] | 31 | + "name": "default" |
32 | + }, | ||
33 | + { | ||
34 | + "name": "ohosTest" | ||
51 | } | 35 | } |
52 | ] | 36 | ] |
53 | -} | ||
37 | +} |
ohos/code-linter.json5
deleted
100644 → 0
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 | - "@security/no-unsafe-aes": "error", | ||
20 | - "@security/no-unsafe-hash": "error", | ||
21 | - "@security/no-unsafe-mac": "warn", | ||
22 | - "@security/no-unsafe-dh": "error", | ||
23 | - "@security/no-unsafe-dsa": "error", | ||
24 | - "@security/no-unsafe-ecdsa": "error", | ||
25 | - "@security/no-unsafe-rsa-encrypt": "error", | ||
26 | - "@security/no-unsafe-rsa-sign": "error", | ||
27 | - "@security/no-unsafe-rsa-key": "error", | ||
28 | - "@security/no-unsafe-dsa-key": "error", | ||
29 | - "@security/no-unsafe-dh-key": "error", | ||
30 | - "@security/no-unsafe-3des": "error" | ||
31 | - } | ||
32 | -} |
ohos/consumer-rules.txt
0 → 100644
ohos/entry/.gitignore
deleted
100644 → 0
ohos/entry/build-profile.json5
deleted
100644 → 0
1 | -{ | ||
2 | - "apiType": "stageMode", | ||
3 | - "buildOption": { | ||
4 | - }, | ||
5 | - "buildOptionSet": [ | ||
6 | - { | ||
7 | - "name": "release", | ||
8 | - "arkOptions": { | ||
9 | - "obfuscation": { | ||
10 | - "ruleOptions": { | ||
11 | - "enable": false, | ||
12 | - "files": [ | ||
13 | - "./obfuscation-rules.txt" | ||
14 | - ] | ||
15 | - } | ||
16 | - } | ||
17 | - } | ||
18 | - }, | ||
19 | - ], | ||
20 | - "targets": [ | ||
21 | - { | ||
22 | - "name": "default" | ||
23 | - }, | ||
24 | - { | ||
25 | - "name": "ohosTest", | ||
26 | - } | ||
27 | - ] | ||
28 | -} |
ohos/entry/hvigorfile.ts
deleted
100644 → 0
ohos/entry/oh-package.json5
deleted
100644 → 0
1 | -import { AbilityConstant, ConfigurationConstant, UIAbility, Want } from '@kit.AbilityKit'; | ||
2 | -import { hilog } from '@kit.PerformanceAnalysisKit'; | ||
3 | -import { window } from '@kit.ArkUI'; | ||
4 | - | ||
5 | -const DOMAIN = 0x0000; | ||
6 | - | ||
7 | -export default class EntryAbility extends UIAbility { | ||
8 | - onCreate(want: Want, launchParam: AbilityConstant.LaunchParam): void { | ||
9 | - this.context.getApplicationContext().setColorMode(ConfigurationConstant.ColorMode.COLOR_MODE_NOT_SET); | ||
10 | - hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onCreate'); | ||
11 | - } | ||
12 | - | ||
13 | - onDestroy(): void { | ||
14 | - hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onDestroy'); | ||
15 | - } | ||
16 | - | ||
17 | - onWindowStageCreate(windowStage: window.WindowStage): void { | ||
18 | - // Main window is created, set main page for this ability | ||
19 | - hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onWindowStageCreate'); | ||
20 | - | ||
21 | - windowStage.loadContent('pages/Index', (err) => { | ||
22 | - if (err.code) { | ||
23 | - hilog.error(DOMAIN, 'testTag', 'Failed to load the content. Cause: %{public}s', JSON.stringify(err)); | ||
24 | - return; | ||
25 | - } | ||
26 | - hilog.info(DOMAIN, 'testTag', 'Succeeded in loading the content.'); | ||
27 | - }); | ||
28 | - } | ||
29 | - | ||
30 | - onWindowStageDestroy(): void { | ||
31 | - // Main window is destroyed, release UI related resources | ||
32 | - hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onWindowStageDestroy'); | ||
33 | - } | ||
34 | - | ||
35 | - onForeground(): void { | ||
36 | - // Ability has brought to foreground | ||
37 | - hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onForeground'); | ||
38 | - } | ||
39 | - | ||
40 | - onBackground(): void { | ||
41 | - // Ability has back to background | ||
42 | - hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onBackground'); | ||
43 | - } | ||
44 | -} |
1 | -import { hilog } from '@kit.PerformanceAnalysisKit'; | ||
2 | -import { BackupExtensionAbility, BundleVersion } from '@kit.CoreFileKit'; | ||
3 | - | ||
4 | -const DOMAIN = 0x0000; | ||
5 | - | ||
6 | -export default class EntryBackupAbility extends BackupExtensionAbility { | ||
7 | - async onBackup() { | ||
8 | - hilog.info(DOMAIN, 'testTag', 'onBackup ok'); | ||
9 | - await Promise.resolve(); | ||
10 | - } | ||
11 | - | ||
12 | - async onRestore(bundleVersion: BundleVersion) { | ||
13 | - hilog.info(DOMAIN, 'testTag', 'onRestore ok %{public}s', JSON.stringify(bundleVersion)); | ||
14 | - await Promise.resolve(); | ||
15 | - } | ||
16 | -} |
1 | -@Entry | ||
2 | -@Component | ||
3 | -struct Index { | ||
4 | - @State message: string = 'Hello World'; | ||
5 | - | ||
6 | - build() { | ||
7 | - RelativeContainer() { | ||
8 | - Text(this.message) | ||
9 | - .id('HelloWorld') | ||
10 | - .fontSize($r('app.float.page_text_font_size')) | ||
11 | - .fontWeight(FontWeight.Bold) | ||
12 | - .alignRules({ | ||
13 | - center: { anchor: '__container__', align: VerticalAlign.Center }, | ||
14 | - middle: { anchor: '__container__', align: HorizontalAlign.Center } | ||
15 | - }) | ||
16 | - .onClick(() => { | ||
17 | - this.message = 'Welcome'; | ||
18 | - }) | ||
19 | - } | ||
20 | - .height('100%') | ||
21 | - .width('100%') | ||
22 | - } | ||
23 | -} |
ohos/entry/src/main/module.json5
deleted
100644 → 0
1 | -{ | ||
2 | - "module": { | ||
3 | - "name": "entry", | ||
4 | - "type": "entry", | ||
5 | - "description": "$string:module_desc", | ||
6 | - "mainElement": "EntryAbility", | ||
7 | - "deviceTypes": [ | ||
8 | - "phone", | ||
9 | - "tablet", | ||
10 | - "2in1" | ||
11 | - ], | ||
12 | - "deliveryWithInstall": true, | ||
13 | - "installationFree": false, | ||
14 | - "pages": "$profile:main_pages", | ||
15 | - "abilities": [ | ||
16 | - { | ||
17 | - "name": "EntryAbility", | ||
18 | - "srcEntry": "./ets/entryability/EntryAbility.ets", | ||
19 | - "description": "$string:EntryAbility_desc", | ||
20 | - "icon": "$media:layered_image", | ||
21 | - "label": "$string:EntryAbility_label", | ||
22 | - "startWindowIcon": "$media:startIcon", | ||
23 | - "startWindowBackground": "$color:start_window_background", | ||
24 | - "exported": true, | ||
25 | - "skills": [ | ||
26 | - { | ||
27 | - "entities": [ | ||
28 | - "entity.system.home" | ||
29 | - ], | ||
30 | - "actions": [ | ||
31 | - "action.system.home" | ||
32 | - ] | ||
33 | - } | ||
34 | - ] | ||
35 | - } | ||
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 | - } | ||
50 | - ] | ||
51 | - } | ||
52 | -} |

89.8 KB

8.6 KB

19.6 KB
1 | -import { hilog } from '@kit.PerformanceAnalysisKit'; | ||
2 | -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'; | ||
3 | - | ||
4 | -export default function abilityTest() { | ||
5 | - describe('ActsAbilityTest', () => { | ||
6 | - // Defines a test suite. Two parameters are supported: test suite name and test suite function. | ||
7 | - beforeAll(() => { | ||
8 | - // Presets an action, which is performed only once before all test cases of the test suite start. | ||
9 | - // This API supports only one parameter: preset action function. | ||
10 | - }) | ||
11 | - beforeEach(() => { | ||
12 | - // Presets an action, which is performed before each unit test case starts. | ||
13 | - // The number of execution times is the same as the number of test cases defined by **it**. | ||
14 | - // This API supports only one parameter: preset action function. | ||
15 | - }) | ||
16 | - afterEach(() => { | ||
17 | - // Presets a clear action, which is performed after each unit test case ends. | ||
18 | - // The number of execution times is the same as the number of test cases defined by **it**. | ||
19 | - // This API supports only one parameter: clear action function. | ||
20 | - }) | ||
21 | - afterAll(() => { | ||
22 | - // Presets a clear action, which is performed after all test cases of the test suite end. | ||
23 | - // This API supports only one parameter: clear action function. | ||
24 | - }) | ||
25 | - it('assertContain', 0, () => { | ||
26 | - // Defines a test case. This API supports three parameters: test case name, filter parameter, and test case function. | ||
27 | - hilog.info(0x0000, 'testTag', '%{public}s', 'it begin'); | ||
28 | - let a = 'abc'; | ||
29 | - let b = 'b'; | ||
30 | - // Defines a variety of assertion methods, which are used to declare expected boolean conditions. | ||
31 | - expect(a).assertContain(b); | ||
32 | - expect(a).assertEqual(a); | ||
33 | - }) | ||
34 | - }) | ||
35 | -} |
ohos/entry/src/ohosTest/module.json5
deleted
100644 → 0
ohos/entry/src/test/List.test.ets
deleted
100644 → 0
1 | -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium'; | ||
2 | - | ||
3 | -export default function localUnitTest() { | ||
4 | - describe('localUnitTest', () => { | ||
5 | - // Defines a test suite. Two parameters are supported: test suite name and test suite function. | ||
6 | - beforeAll(() => { | ||
7 | - // Presets an action, which is performed only once before all test cases of the test suite start. | ||
8 | - // This API supports only one parameter: preset action function. | ||
9 | - }); | ||
10 | - beforeEach(() => { | ||
11 | - // Presets an action, which is performed before each unit test case starts. | ||
12 | - // The number of execution times is the same as the number of test cases defined by **it**. | ||
13 | - // This API supports only one parameter: preset action function. | ||
14 | - }); | ||
15 | - afterEach(() => { | ||
16 | - // Presets a clear action, which is performed after each unit test case ends. | ||
17 | - // The number of execution times is the same as the number of test cases defined by **it**. | ||
18 | - // This API supports only one parameter: clear action function. | ||
19 | - }); | ||
20 | - afterAll(() => { | ||
21 | - // Presets a clear action, which is performed after all test cases of the test suite end. | ||
22 | - // This API supports only one parameter: clear action function. | ||
23 | - }); | ||
24 | - it('assertContain', 0, () => { | ||
25 | - // Defines a test case. This API supports three parameters: test case name, filter parameter, and test case function. | ||
26 | - let a = 'abc'; | ||
27 | - let b = 'b'; | ||
28 | - // Defines a variety of assertion methods, which are used to declare expected boolean conditions. | ||
29 | - expect(a).assertContain(b); | ||
30 | - expect(a).assertEqual(a); | ||
31 | - }); | ||
32 | - }); | ||
33 | -} |
This file is too large to display.
ohos/hvigor/hvigor-config.json5
deleted
100644 → 0
1 | -{ | ||
2 | - "modelVersion": "5.0.2", | ||
3 | - "dependencies": { | ||
4 | - }, | ||
5 | - "execution": { | ||
6 | - // "analyze": "normal", /* Define the build analyze mode. Value: [ "normal" | "advanced" | false ]. Default: "normal" */ | ||
7 | - // "daemon": true, /* Enable daemon compilation. Value: [ true | false ]. Default: true */ | ||
8 | - // "incremental": true, /* Enable incremental compilation. Value: [ true | false ]. Default: true */ | ||
9 | - // "parallel": true, /* Enable parallel compilation. Value: [ true | false ]. Default: true */ | ||
10 | - // "typeCheck": false, /* Enable typeCheck. Value: [ true | false ]. Default: false */ | ||
11 | - }, | ||
12 | - "logging": { | ||
13 | - // "level": "info" /* Define the log level. Value: [ "debug" | "info" | "warn" | "error" ]. Default: "info" */ | ||
14 | - }, | ||
15 | - "debugging": { | ||
16 | - // "stacktrace": false /* Disable stacktrace compilation. Value: [ true | false ]. Default: false */ | ||
17 | - }, | ||
18 | - "nodeOptions": { | ||
19 | - // "maxOldSpaceSize": 8192 /* Enable nodeOptions maxOldSpaceSize compilation. Unit M. Used for the daemon process. Default: 8192*/ | ||
20 | - // "exposeGC": true /* Enable to trigger garbage collection explicitly. Default: true*/ | ||
21 | - } | ||
22 | -} |
1 | -import { appTasks } from '@ohos/hvigor-ohos-plugin'; | 1 | +import { harTasks } from '@ohos/hvigor-ohos-plugin'; |
2 | 2 | ||
3 | export default { | 3 | export default { |
4 | - system: appTasks, /* Built-in plugin of Hvigor. It cannot be modified. */ | 4 | + system: harTasks, /* Built-in plugin of Hvigor. It cannot be modified. */ |
5 | plugins:[] /* Custom plugin to extend the functionality of Hvigor. */ | 5 | plugins:[] /* Custom plugin to extend the functionality of Hvigor. */ |
6 | } | 6 | } |
ohos/index.ets
0 → 100644
No preview for this file type
No preview for this file type
ohos/log.txt
deleted
100644 → 0
1 | -20:19:02:379 log enqueue task | ||
2 | -20:19:02:888 log timer task size: 1 | ||
3 | -20:19:02:889 log reparse source files: file:///D:/project/mars/mars/openssl/include/openssl/rand.h | ||
4 | -20:19:02:893 log header include: D:\project\mars\mars\comm\shuffle.h | ||
5 | -20:19:02:901 log active files: D:\project\mars\mars\openssl\include\openssl\rand.h | ||
6 | -20:19:02:902 log reparse file: D:\project\mars\mars\openssl\include\openssl\rand.h | ||
7 | -13:27:55:229 log enqueue task | ||
8 | -13:27:55:230 log task queue not empty | ||
9 | -13:27:55:231 log task size: 1 | ||
10 | -13:27:55:232 log before pop task size: 1 | ||
11 | -13:27:55:232 log after task size: 0 | ||
12 | -13:27:55:774 log timer task size: 1 | ||
13 | -13:27:55:786 log reparse source files: file:///D:/project/mars/mars/flutter_xlog/ohos/xlog/src/main/cpp/include/xlog/xlogger.h | ||
14 | -13:27:55:787 log header include: D:\project\mars\mars\flutter_xlog\ohos\xlog\src\main\cpp\napi_init.cpp | ||
15 | -13:27:55:792 log active files: D:\project\mars\mars\xlog\jni\Java2C_Xlog.cc | ||
16 | -13:27:55:793 log active files: D:\project\mars\mars\flutter_xlog\ohos\xlog\src\main\cpp\include\xlog\xlogger.h | ||
17 | -13:27:55:815 log reparse file: D:\project\mars\mars\flutter_xlog\ohos\xlog\src\main\cpp\include\xlog\xlogger.h | ||
18 | -13:27:55:818 log active files: D:\project\mars\mars\flutter_xlog\ohos\xlog\src\main\cpp\napi_init.cpp | ||
19 | -13:27:55:819 log reparse file: D:\project\mars\mars\flutter_xlog\ohos\xlog\src\main\cpp\napi_init.cpp |
@@ -5,23 +5,21 @@ | @@ -5,23 +5,21 @@ | ||
5 | "lockfileVersion": 3, | 5 | "lockfileVersion": 3, |
6 | "ATTENTION": "THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.", | 6 | "ATTENTION": "THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.", |
7 | "specifiers": { | 7 | "specifiers": { |
8 | - "@ohos/hamock@1.0.0": "@ohos/hamock@1.0.0", | ||
9 | - "@ohos/hypium@1.0.21": "@ohos/hypium@1.0.21" | 8 | + "@ohos/flutter_ohos@har/flutter.har": "@ohos/flutter_ohos@har/flutter.har", |
9 | + "libmarsxlog.so@src/main/cpp/types/libxlog": "libmarsxlog.so@src/main/cpp/types/libxlog" | ||
10 | }, | 10 | }, |
11 | "packages": { | 11 | "packages": { |
12 | - "@ohos/hamock@1.0.0": { | ||
13 | - "name": "@ohos/hamock", | ||
14 | - "version": "1.0.0", | ||
15 | - "integrity": "sha512-K6lDPYc6VkKe6ZBNQa9aoG+ZZMiwqfcR/7yAVFSUGIuOAhPvCJAo9+t1fZnpe0dBRBPxj2bxPPbKh69VuyAtDg==", | ||
16 | - "resolved": "https://ohpm.openharmony.cn/ohpm/@ohos/hamock/-/hamock-1.0.0.har", | ||
17 | - "registryType": "ohpm" | 12 | + "@ohos/flutter_ohos@har/flutter.har": { |
13 | + "name": "@ohos/flutter_ohos", | ||
14 | + "version": "1.0.0-ebd1283e6e", | ||
15 | + "resolved": "har/flutter.har", | ||
16 | + "registryType": "local" | ||
18 | }, | 17 | }, |
19 | - "@ohos/hypium@1.0.21": { | ||
20 | - "name": "@ohos/hypium", | ||
21 | - "version": "1.0.21", | ||
22 | - "integrity": "sha512-iyKGMXxE+9PpCkqEwu0VykN/7hNpb+QOeIuHwkmZnxOpI+dFZt6yhPB7k89EgV1MiSK/ieV/hMjr5Z2mWwRfMQ==", | ||
23 | - "resolved": "https://ohpm.openharmony.cn/ohpm/@ohos/hypium/-/hypium-1.0.21.har", | ||
24 | - "registryType": "ohpm" | 18 | + "libmarsxlog.so@src/main/cpp/types/libxlog": { |
19 | + "name": "libmarsxlog.so", | ||
20 | + "version": "1.0.0", | ||
21 | + "resolved": "src/main/cpp/types/libxlog", | ||
22 | + "registryType": "local" | ||
25 | } | 23 | } |
26 | } | 24 | } |
27 | } | 25 | } |
1 | { | 1 | { |
2 | - "modelVersion": "5.0.2", | 2 | + "name": "flutter_xlog", |
3 | + "version": "1.0.0", | ||
3 | "description": "Please describe the basic information.", | 4 | "description": "Please describe the basic information.", |
5 | + "main": "Index.ets", | ||
6 | + "author": "", | ||
7 | + "license": "", | ||
4 | "dependencies": { | 8 | "dependencies": { |
9 | + "libmarsxlog.so": "file:./src/main/cpp/types/libxlog", | ||
10 | + "@ohos/flutter_ohos": "file:./har/flutter.har", | ||
5 | }, | 11 | }, |
6 | - "devDependencies": { | ||
7 | - "@ohos/hypium": "1.0.21", | ||
8 | - "@ohos/hamock": "1.0.0" | ||
9 | - } | ||
10 | -} | 12 | + "modelVersion": "5.0.1", |
13 | + "compatibleSdkVersion": "13", | ||
14 | + "compatibleSdkType": "HarmonyOS" | ||
15 | +} |
ohos/xlog/src/main/ets/plugin/FlutterXLogPlugin.ets
→
ohos/src/main/ets/plugin/FlutterXLogPlugin.ets
ohos/xlog/.gitignore
deleted
100644 → 0
ohos/xlog/build-profile.json5
deleted
100644 → 0
1 | -{ | ||
2 | - "apiType": "stageMode", | ||
3 | - "buildOption": { | ||
4 | - "externalNativeOptions": { | ||
5 | - "path": "./src/main/cpp/CMakeLists.txt", | ||
6 | - "arguments": "", | ||
7 | - "cppFlags": "", | ||
8 | - } | ||
9 | - }, | ||
10 | - "buildOptionSet": [ | ||
11 | - { | ||
12 | - "name": "release", | ||
13 | - "arkOptions": { | ||
14 | - "obfuscation": { | ||
15 | - "ruleOptions": { | ||
16 | - "enable": false, | ||
17 | - "files": [ | ||
18 | - "./obfuscation-rules.txt" | ||
19 | - ] | ||
20 | - } | ||
21 | - } | ||
22 | - }, | ||
23 | - "nativeLib": { | ||
24 | - "debugSymbol": { | ||
25 | - "strip": true, | ||
26 | - "exclude": [] | ||
27 | - } | ||
28 | - } | ||
29 | - }, | ||
30 | - ], | ||
31 | - "targets": [ | ||
32 | - { | ||
33 | - "name": "default" | ||
34 | - }, | ||
35 | - { | ||
36 | - "name": "ohosTest", | ||
37 | - } | ||
38 | - ] | ||
39 | -} |
ohos/xlog/hvigorfile.ts
deleted
100644 → 0
ohos/xlog/obfuscation-rules.txt
deleted
100644 → 0
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 | -# -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 |
ohos/xlog/oh-package-lock.json5
deleted
100644 → 0
1 | -{ | ||
2 | - "meta": { | ||
3 | - "stableOrder": true | ||
4 | - }, | ||
5 | - "lockfileVersion": 3, | ||
6 | - "ATTENTION": "THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.", | ||
7 | - "specifiers": { | ||
8 | - "@ohos/flutter_ohos@har/flutter.har": "@ohos/flutter_ohos@har/flutter.har", | ||
9 | - "libmarsxlog.so@src/main/cpp/types/libxlog": "libmarsxlog.so@src/main/cpp/types/libxlog" | ||
10 | - }, | ||
11 | - "packages": { | ||
12 | - "@ohos/flutter_ohos@har/flutter.har": { | ||
13 | - "name": "@ohos/flutter_ohos", | ||
14 | - "version": "1.0.0-ebd1283e6e", | ||
15 | - "resolved": "har/flutter.har", | ||
16 | - "registryType": "local" | ||
17 | - }, | ||
18 | - "libmarsxlog.so@src/main/cpp/types/libxlog": { | ||
19 | - "name": "libmarsxlog.so", | ||
20 | - "version": "1.0.0", | ||
21 | - "resolved": "src/main/cpp/types/libxlog", | ||
22 | - "registryType": "local" | ||
23 | - } | ||
24 | - } | ||
25 | -} |
ohos/xlog/oh-package.json5
deleted
100644 → 0
1 | -{ | ||
2 | - "name": "xlog", | ||
3 | - "version": "1.0.0", | ||
4 | - "description": "Please describe the basic information.", | ||
5 | - "main": "", | ||
6 | - "author": "", | ||
7 | - "license": "", | ||
8 | - "dependencies": { | ||
9 | - "libmarsxlog.so": "file:./src/main/cpp/types/libxlog", | ||
10 | - "@ohos/flutter_ohos": "file:./har/flutter.har", | ||
11 | - } | ||
12 | -} |
-
Please register or login to post a comment