From 488c853fd9a6eafff66451c09e6c82332c1fdadb Mon Sep 17 00:00:00 2001 From: t00605578 Date: Fri, 17 May 2024 09:16:20 +0800 Subject: [PATCH] tyj test dep lottie Signed-off-by: t00605578 --- application/entry/oh-package.json5 | 4 +++- application/entry/src/main/ets/pages/ContinueSwitch.ets | 1 + application/oh-package.json5 | 4 +++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/application/entry/oh-package.json5 b/application/entry/oh-package.json5 index 2d009f6f..05976599 100644 --- a/application/entry/oh-package.json5 +++ b/application/entry/oh-package.json5 @@ -21,5 +21,7 @@ "description": "Please describe the basic information.", "main": "", "version": "1.0.0", - "dependencies": {} + "dependencies": { + "@ohos/lottie": "^2.0.10" + } } diff --git a/application/entry/src/main/ets/pages/ContinueSwitch.ets b/application/entry/src/main/ets/pages/ContinueSwitch.ets index ead3a416..aa271dd2 100644 --- a/application/entry/src/main/ets/pages/ContinueSwitch.ets +++ b/application/entry/src/main/ets/pages/ContinueSwitch.ets @@ -18,6 +18,7 @@ import settings from '@ohos.settings'; import UIExtensionContentSession from '@ohos.app.ability.UIExtensionContentSession'; import deviceInfo from '@ohos.deviceInfo'; import { BusinessError } from '@ohos.base'; +import lottie from '@ohos/lottie'; const TAG = '[ContinueSwitch_Page] : '; let context = getContext(this) as common.UIAbilityContext; diff --git a/application/oh-package.json5 b/application/oh-package.json5 index 06694870..7feebf0c 100644 --- a/application/oh-package.json5 +++ b/application/oh-package.json5 @@ -23,5 +23,7 @@ "description": "Please describe the basic information.", "main": "", "version": "1.0.0", - "dependencies": {} + "dependencies": { + "@ohos/lottie": "^2.0.10" + } } -- Gitee