From 07595b2b1f2a6442934d95bde0be8e306369a480 Mon Sep 17 00:00:00 2001 From: jiangwensai Date: Thu, 24 Nov 2022 15:20:40 +0800 Subject: [PATCH] IssueNo: #I62WT6 Description: add log. Sig: sig-systemapplications Feature or Bugfix: Bugfix Binary Source: No Signed-off-by: jiangwensai --- .gitignore | 2 ++ build-profile.json5 | 1 + common/resources/.gitignore | 3 ++- common/utils/.gitignore | 3 ++- features/.gitignore | 3 ++- features/src/main/ets/components/NoteContentComp.ets | 2 +- product/default/.gitignore | 3 ++- product/default/src/main/ets/MainAbility/MainAbility.ts | 7 ++++--- product/default/src/main/module.json5 | 8 +++++++- 9 files changed, 23 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index d2e1429..fd58715 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ /.idea **/build /signature +/.hvigor +/package.json \ No newline at end of file diff --git a/build-profile.json5 b/build-profile.json5 index d0bff52..1daeb7c 100644 --- a/build-profile.json5 +++ b/build-profile.json5 @@ -21,6 +21,7 @@ "products": [ { "name": "default", + "signingConfig": "default" } ] }, diff --git a/common/resources/.gitignore b/common/resources/.gitignore index 4f9a973..a5c564a 100644 --- a/common/resources/.gitignore +++ b/common/resources/.gitignore @@ -1,3 +1,4 @@ /node_modules /.preview -/build \ No newline at end of file +/build +/package.json \ No newline at end of file diff --git a/common/utils/.gitignore b/common/utils/.gitignore index 4f9a973..a5c564a 100644 --- a/common/utils/.gitignore +++ b/common/utils/.gitignore @@ -1,3 +1,4 @@ /node_modules /.preview -/build \ No newline at end of file +/build +/package.json \ No newline at end of file diff --git a/features/.gitignore b/features/.gitignore index 5a6ba80..9924c4f 100644 --- a/features/.gitignore +++ b/features/.gitignore @@ -1,4 +1,5 @@ /node_modules /.preview /build -/.cxx \ No newline at end of file +/.cxx +/package.json \ No newline at end of file diff --git a/features/src/main/ets/components/NoteContentComp.ets b/features/src/main/ets/components/NoteContentComp.ets index 8fe0c08..ca89cf1 100644 --- a/features/src/main/ets/components/NoteContentComp.ets +++ b/features/src/main/ets/components/NoteContentComp.ets @@ -570,7 +570,7 @@ export struct ToolBarComp { // 清单 this.controllerShow.runJavaScript({ script: "javascript:RICH_EDITOR.setTodo()" }) // 退出键盘 - iinputMethod.getController().stopInputSession(); + inputMethod.getController().stopInputSession(); }) }.width(42) .height(42) diff --git a/product/default/.gitignore b/product/default/.gitignore index 4f9a973..a5c564a 100644 --- a/product/default/.gitignore +++ b/product/default/.gitignore @@ -1,3 +1,4 @@ /node_modules /.preview -/build \ No newline at end of file +/build +/package.json \ No newline at end of file diff --git a/product/default/src/main/ets/MainAbility/MainAbility.ts b/product/default/src/main/ets/MainAbility/MainAbility.ts index 9011f1b..4007d73 100644 --- a/product/default/src/main/ets/MainAbility/MainAbility.ts +++ b/product/default/src/main/ets/MainAbility/MainAbility.ts @@ -23,7 +23,6 @@ import { atob } from 'js-base64' import display from '@ohos.display'; import window from '@ohos.window'; - globalThis.rdbStore = undefined export default class MainAbility extends Ability { @@ -33,11 +32,12 @@ export default class MainAbility extends Ability { // @ts-ignore window.getLastWindow(this.context,(err,data)=>{ let windowWidth = data.getWindowProperties().windowRect.width + LogUtil.info(this.Tag, " getLastWindow:" + windowWidth) this.screenBreakPoints(windowWidth) }) AppStorage.SetOrCreate('closeEditContentDialog', true) - LogUtil.info(this.Tag, " onCreate, launchReason is " + launchParam.launchReason) - LogUtil.info(this.Tag, " onCreate, deviceType" + deviceInfo.deviceType) + LogUtil.info(this.Tag, " onCreate, launchReason is " + launchParam.launchReason + + ", deviceType" + deviceInfo.deviceType) if (deviceInfo.deviceType === 'phone' || deviceInfo.deviceType === 'default') { AppStorage.SetOrCreate('Expand', false) AppStorage.SetOrCreate('Choose', true) @@ -203,6 +203,7 @@ export default class MainAbility extends Ability { displayClass = display.getDefaultDisplaySync() screenDpi = displayClass.densityDPI let windowWidth = data / (screenDpi / 160) + LogUtil.debug(this.Tag, " screenBreakPoints windowWidth: " + windowWidth) if (windowWidth >= 320 && windowWidth < 520 || windowWidth < 320) { AppStorage.SetOrCreate('breakPoint', 'sm') } else if (windowWidth >= 520 && windowWidth < 840) { diff --git a/product/default/src/main/module.json5 b/product/default/src/main/module.json5 index 86c2979..884c1bd 100644 --- a/product/default/src/main/module.json5 +++ b/product/default/src/main/module.json5 @@ -44,12 +44,18 @@ { "name": "ohos.permission.DISTRIBUTED_DATASYNC", "reason": "$string:distributed_dataSync_permission" - }, + } ], "deliveryWithInstall": true, "installationFree": false, "pages": "$profile:main_pages", "uiSyntax": "ets", + "metadata": [ + { + "name": "ArkTSPartialUpdate", + "value": "true" + } + ], "abilities": [ { "name": "MainAbility", -- Gitee