import Application from 'android.app.Application';
import Log from 'android.util.Log';
function test1(){
console.log(1111)
}
function test2(){
console.log(2222)
}
export function test3(){
console.log(3333)
}
export class AppHookProxy implements UTSAndroidHookProxy {
override onCreate(application: Application) {
//当前应用是否 取得用户同意隐私协议
// 初始化快捷方式
test1()
Log.d("AppHookProxy", "AppHookProxy--onCreate---")
if(UTSAndroid.isPrivacyAgree()) {
test2()
//onCreate 初始化三方SDK
Log.d("AppHookProxy", "AppHookProxy--onCreate---isPrivacyAgree")
}
}
}
// 打过自定义基座了但是onCreate里的内容没有打印,是不是没执行啊?