From edf42f19ece635c3b82787c0385c1b26748ab26f Mon Sep 17 00:00:00 2001 From: lloyd <754415+llince@user.noreply.gitee.com> Date: Thu, 26 Dec 2024 10:12:15 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=B8=80=E6=AC=A1=E5=BC=80=E5=8F=91?= =?UTF-8?q?=EF=BC=8C=E5=A4=9A=E7=AB=AF=E9=83=A8=E7=BD=B2-=E9=93=B6?= =?UTF-8?q?=E8=A1=8C=E7=90=86=E8=B4=A2=E3=80=91=E6=8E=A5=E5=8F=A3=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commons/basic/obfuscation-rules.txt | 6 +++++- features/fund/obfuscation-rules.txt | 6 +++++- features/fund/oh-package.json5 | 2 +- features/fundComparison/obfuscation-rules.txt | 6 +++++- .../src/main/ets/view/ComparisonDetailComponent.ets | 4 ++-- features/home/obfuscation-rules.txt | 6 +++++- features/transaction/obfuscation-rules.txt | 6 +++++- product/phone/obfuscation-rules.txt | 6 +++++- 8 files changed, 33 insertions(+), 9 deletions(-) diff --git a/commons/basic/obfuscation-rules.txt b/commons/basic/obfuscation-rules.txt index 985b2ae..a1dfa0b 100644 --- a/commons/basic/obfuscation-rules.txt +++ b/commons/basic/obfuscation-rules.txt @@ -15,4 +15,8 @@ # 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 +# -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 \ No newline at end of file diff --git a/features/fund/obfuscation-rules.txt b/features/fund/obfuscation-rules.txt index 985b2ae..a1dfa0b 100644 --- a/features/fund/obfuscation-rules.txt +++ b/features/fund/obfuscation-rules.txt @@ -15,4 +15,8 @@ # 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 +# -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 \ No newline at end of file diff --git a/features/fund/oh-package.json5 b/features/fund/oh-package.json5 index 317afbd..7e2de41 100644 --- a/features/fund/oh-package.json5 +++ b/features/fund/oh-package.json5 @@ -12,6 +12,6 @@ "@ohos/transaction": "file:../transaction", "@ohos/fundComparison": "file:../fundComparison", "@ohos/basic": "file:../../commons/basic", - "@ohos/mpchart": "3.0.0-rc.1" + "@ohos/mpchart": "^3.0.0-rc.1" } } diff --git a/features/fundComparison/obfuscation-rules.txt b/features/fundComparison/obfuscation-rules.txt index 985b2ae..a1dfa0b 100644 --- a/features/fundComparison/obfuscation-rules.txt +++ b/features/fundComparison/obfuscation-rules.txt @@ -15,4 +15,8 @@ # 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 +# -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 \ No newline at end of file diff --git a/features/fundComparison/src/main/ets/view/ComparisonDetailComponent.ets b/features/fundComparison/src/main/ets/view/ComparisonDetailComponent.ets index c341be8..fbcc394 100644 --- a/features/fundComparison/src/main/ets/view/ComparisonDetailComponent.ets +++ b/features/fundComparison/src/main/ets/view/ComparisonDetailComponent.ets @@ -155,7 +155,7 @@ export struct ComparisonDetailComponent { .scrollBar(BarState.Off) .listDirection(Axis.Horizontal) .edgeEffect(EdgeEffect.None) - .onScroll((scrollOffset: number) => { + .onWillScroll((_scrollOffset: number) => { if (this.isScroll) { let offset = this.scrollerList.currentOffset().xOffset; this.scroller.scrollTo({ xOffset: offset, yOffset: 0 }); @@ -290,7 +290,7 @@ export struct ComparisonDetailComponent { .scrollable(ScrollDirection.Horizontal) .scrollBar(BarState.Off) .edgeEffect(EdgeEffect.None) - .onScroll((scrollOffset: number) => { + .onWillScroll((_scrollOffset: number) => { if (this.isListScroll) { let offset = this.scroller.currentOffset().xOffset; this.scrollerList.scrollTo({ xOffset: offset, yOffset: 0 }); diff --git a/features/home/obfuscation-rules.txt b/features/home/obfuscation-rules.txt index 985b2ae..a1dfa0b 100644 --- a/features/home/obfuscation-rules.txt +++ b/features/home/obfuscation-rules.txt @@ -15,4 +15,8 @@ # 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 +# -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 \ No newline at end of file diff --git a/features/transaction/obfuscation-rules.txt b/features/transaction/obfuscation-rules.txt index 985b2ae..a1dfa0b 100644 --- a/features/transaction/obfuscation-rules.txt +++ b/features/transaction/obfuscation-rules.txt @@ -15,4 +15,8 @@ # 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 +# -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 \ No newline at end of file diff --git a/product/phone/obfuscation-rules.txt b/product/phone/obfuscation-rules.txt index 985b2ae..a1dfa0b 100644 --- a/product/phone/obfuscation-rules.txt +++ b/product/phone/obfuscation-rules.txt @@ -15,4 +15,8 @@ # 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 +# -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 \ No newline at end of file -- Gitee