diff --git a/ohos/.gitignore b/ohos/.gitignore index e85c394e925879faf98abac0b5f18c1914c8d924..6f7b4f89c49a6abadc383d9665d3b4c171d466bc 100644 --- a/ohos/.gitignore +++ b/ohos/.gitignore @@ -1,7 +1,17 @@ /node_modules /oh_modules -/.preview -/build -/.cxx -/.test -flutter_embedding.har \ No newline at end of file +/local.properties +/.idea +**/build +/.hvigor +.cxx +/.clangd +/.clang-format +/.clang-tidy +**/.test + +/entry/libs/arm64-v8a/libflutter.so +/entry/src/main/resources/rawfile/flutter_assets +**.har +**/oh-package-lock.json5 +BuildProfile.ets diff --git a/ohos/BuildProfile.ets b/ohos/BuildProfile.ets deleted file mode 100644 index 3a501e5ddee8ea6d28961648fc7dd314a5304bd4..0000000000000000000000000000000000000000 --- a/ohos/BuildProfile.ets +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Use these variables when you tailor your ArkTS code. They must be of the const type. - */ -export const HAR_VERSION = '1.0.0'; -export const BUILD_MODE_NAME = 'debug'; -export const DEBUG = true; -export const TARGET_NAME = 'default'; - -/** - * BuildProfile Class is used only for compatibility purposes. - */ -export default class BuildProfile { - static readonly HAR_VERSION = HAR_VERSION; - static readonly BUILD_MODE_NAME = BUILD_MODE_NAME; - static readonly DEBUG = DEBUG; - static readonly TARGET_NAME = TARGET_NAME; -} \ No newline at end of file diff --git a/ohos/build-profile.json5 b/ohos/build-profile.json5 index 662fdc7ea39800aa579e29943418f2534300e931..dca58bdff2964a97f8d04672c8c1c5ee4e095ce7 100644 --- a/ohos/build-profile.json5 +++ b/ohos/build-profile.json5 @@ -15,31 +15,10 @@ { "apiType": "stageMode", "buildOption": { - "arkOptions": { - // "apPath": "./modules.ap" /* Profile used for profile-guided optimization (PGO), a compiler optimization technique to improve app runtime performance. */ - } }, - "buildOptionSet": [ - { - "name": "release", - "arkOptions": { - "obfuscation": { - "ruleOptions": { - "enable": true, - "files": [ - "./obfuscation-rules.txt" - ] - } - } - } - }, - ], "targets": [ { "name": "default" - }, - { - "name": "ohosTest", } ] } \ No newline at end of file diff --git a/ohos/oh-package-lock.json5 b/ohos/oh-package-lock.json5 deleted file mode 100644 index b9a8790e444bb88bbb069bfffb994ab090d5ba26..0000000000000000000000000000000000000000 --- a/ohos/oh-package-lock.json5 +++ /dev/null @@ -1,17 +0,0 @@ -{ - "meta": { - "stableOrder": false - }, - "lockfileVersion": 3, - "ATTENTION": "THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.", - "specifiers": { - "@ohos/flutter_ohos@../example/ohos/har/flutter.har": "@ohos/flutter_ohos@../example/ohos/har/flutter.har" - }, - "packages": { - "@ohos/flutter_ohos@../example/ohos/har/flutter.har": { - "name": "flutter", - "resolved": "../example/ohos/har/flutter.har", - "registryType": "local" - } - } -} \ No newline at end of file diff --git a/ohos/oh-package.json5 b/ohos/oh-package.json5 index 9235e6f94b1aac66a42c0dc6311e459fc90ed856..392d35f53ff8fe3f7cb621d5caf9fd969d7cea3b 100644 --- a/ohos/oh-package.json5 +++ b/ohos/oh-package.json5 @@ -2,10 +2,10 @@ "name": "mobile_scanner", "version": "1.0.0", "description": "Please describe the basic information.", - "main": "", + "main": "index.ets", "author": "", "license": "Apache-2.0", "dependencies": { - "@ohos/flutter_ohos": "file:har/flutter.har" + "@ohos/flutter_ohos": "file:libs/flutter.har" } } \ No newline at end of file