From b933420f5a16d1a1d5f820b7604a9c9ad5815ec5 Mon Sep 17 00:00:00 2001 From: duqingquan Date: Tue, 23 Apr 2024 11:45:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DAppHookProxy=20=E7=A4=BA?= =?UTF-8?q?=E4=BE=8B=E5=91=8A=E8=AD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uts-nativepage/utssdk/app-android/index.uts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/uni_modules/uts-nativepage/utssdk/app-android/index.uts b/uni_modules/uts-nativepage/utssdk/app-android/index.uts index 59faeb9..e9ffd19 100644 --- a/uni_modules/uts-nativepage/utssdk/app-android/index.uts +++ b/uni_modules/uts-nativepage/utssdk/app-android/index.uts @@ -27,6 +27,8 @@ import LayoutInflater from 'android.view.LayoutInflater'; import LinearLayoutManager from 'androidx.recyclerview.widget.LinearLayoutManager'; export {DoAppWidget} from "./DoAppWidget.uts" import Application from 'android.app.Application'; +import Log from 'android.util.Log'; + import File from 'java.io.File'; import Uri from 'android.net.Uri'; export * from './CustomAccessibilityService.uts' @@ -34,10 +36,10 @@ export * from './CustomAccessibilityService.uts' export class AppHookProxy implements UTSAndroidHookProxy { override onCreate(application: Application) { //当前应用是否 取得用户同意隐私协议 - android.util.Log.d("AppHookProxy", "AppHookProxy--onCreate---") + Log.d("AppHookProxy", "AppHookProxy--onCreate---") if(UTSAndroid.isPrivacyAgree()) { //onCreate 初始化三方SDK - android.util.Log.d("AppHookProxy", "AppHookProxy--onCreate---isPrivacyAgree") + Log.d("AppHookProxy", "AppHookProxy--onCreate---isPrivacyAgree") } } } -- GitLab