diff --git a/build-profile.json5 b/build-profile.json5 index 654bef00638d70ff72cf076d86d42b7342ae772d..bd46025bb742d22dfcf8218ceb5694229b7161df 100644 --- a/build-profile.json5 +++ b/build-profile.json5 @@ -53,12 +53,6 @@ "name": "entry", "srcPath": "./entry", "targets": [ - { - "name": "default", - "applyToProducts": [ - "default" - ] - }, { "name": "official", "applyToProducts": [ diff --git a/entry/oh_modules/myhar/src/main/ets/components/MainPage.ets b/entry/oh_modules/myhar/src/main/ets/components/MainPage.ets index 5366a9378251cb0260a5e8b3ad28e03086eeddf2..b0781b02821d83c9bbc7ebc2e49db118f7434b05 100644 --- a/entry/oh_modules/myhar/src/main/ets/components/MainPage.ets +++ b/entry/oh_modules/myhar/src/main/ets/components/MainPage.ets @@ -37,7 +37,7 @@ export struct MainPage { Row() { Column() { // [Start text_Area] - TextArea({ text: 'This is the first page of the beta version of the HAR module. Click the button below to jump to the second page of the beta version of the HAR module - the calculator page.' }) + TextArea({ text: $r('app.string.title_description') }) .fontSize(16) .width('100%') .fontColor('#e6000000') @@ -56,7 +56,7 @@ export struct MainPage { .height(40) .width('100%') .onClick(() => { - this.pageInfos.pushPath({ name: 'official' }); + this.pageInfos.pushPath({ name: BuildProfile.productName }); }) // [End btn] } diff --git a/entry/src/main/ets/pages/Index.ets b/entry/src/main/ets/pages/Index.ets index 49738243ac38572dbf318e7f464e6fda4dc6ff27..7db78edd13758206126b42268d73649f192ad3bc 100644 --- a/entry/src/main/ets/pages/Index.ets +++ b/entry/src/main/ets/pages/Index.ets @@ -14,7 +14,7 @@ */ import { MainPage } from 'myhar' // [Start main_page] -import { getName, getTitleName } from '../../../test_pages/VersionInfo' +import { getName, getTitleName } from 'entry/VersionInfo' @Entry @Component diff --git a/myhar/consumer-rules.txt b/myhar/consumer-rules.txt deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/myhar/obfuscation-rules.txt b/myhar/obfuscation-rules.txt deleted file mode 100644 index 985b2aeb7658286b17bd26eab8f217c3fe75ea8b..0000000000000000000000000000000000000000 --- a/myhar/obfuscation-rules.txt +++ /dev/null @@ -1,18 +0,0 @@ -# Define project specific obfuscation rules here. -# 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 - -# Obfuscation options: -# -disable-obfuscation: disable all obfuscations -# -enable-property-obfuscation: obfuscate the property names -# -enable-toplevel-obfuscation: obfuscate the names in the global scope -# -compact: remove unnecessary blank spaces and all line feeds -# -remove-log: remove all console.* statements -# -print-namecache: print the name cache that contains the mapping from the old names to new names -# -apply-namecache: reuse the given cache file - -# 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 \ No newline at end of file diff --git a/myhar/src/main/ets/components/MainPage.ets b/myhar/src/main/ets/components/MainPage.ets index 5366a9378251cb0260a5e8b3ad28e03086eeddf2..b0781b02821d83c9bbc7ebc2e49db118f7434b05 100644 --- a/myhar/src/main/ets/components/MainPage.ets +++ b/myhar/src/main/ets/components/MainPage.ets @@ -37,7 +37,7 @@ export struct MainPage { Row() { Column() { // [Start text_Area] - TextArea({ text: 'This is the first page of the beta version of the HAR module. Click the button below to jump to the second page of the beta version of the HAR module - the calculator page.' }) + TextArea({ text: $r('app.string.title_description') }) .fontSize(16) .width('100%') .fontColor('#e6000000') @@ -56,7 +56,7 @@ export struct MainPage { .height(40) .width('100%') .onClick(() => { - this.pageInfos.pushPath({ name: 'official' }); + this.pageInfos.pushPath({ name: BuildProfile.productName }); }) // [End btn] }