mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-04 17:55:24 +08:00
...
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||
buildscript {
|
||||
ext.kotlin_version = "1.6.10"
|
||||
repositories {
|
||||
@@ -12,9 +11,6 @@ buildscript {
|
||||
dependencies {
|
||||
classpath "com.android.tools.build:gradle:7.0.4"
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -32,9 +32,9 @@ package com.highcapable.yukihookapi.demo_module.hook
|
||||
import android.app.AlertDialog
|
||||
import com.highcapable.yukihookapi.YukiHookAPI
|
||||
import com.highcapable.yukihookapi.annotation.xposed.InjectYukiHookWithXposed
|
||||
import com.highcapable.yukihookapi.hook.type.BundleClass
|
||||
import com.highcapable.yukihookapi.hook.type.StringType
|
||||
import com.highcapable.yukihookapi.hook.type.UnitType
|
||||
import com.highcapable.yukihookapi.hook.type.android.BundleClass
|
||||
import com.highcapable.yukihookapi.hook.type.java.StringType
|
||||
import com.highcapable.yukihookapi.hook.type.java.UnitType
|
||||
import com.highcapable.yukihookapi.hook.xposed.proxy.YukiHookXposedInitProxy
|
||||
|
||||
@InjectYukiHookWithXposed
|
||||
|
@@ -25,17 +25,20 @@
|
||||
*
|
||||
* This file is Created by fankes on 2022/2/2.
|
||||
*/
|
||||
@file:Suppress("unused")
|
||||
@file:Suppress("unused", "KDocUnresolvedReference")
|
||||
|
||||
package com.highcapable.yukihookapi.hook.type
|
||||
package com.highcapable.yukihookapi.hook.type.android
|
||||
|
||||
import android.app.Activity
|
||||
import android.app.Application
|
||||
import android.app.Service
|
||||
import android.content.BroadcastReceiver
|
||||
import android.content.ContentProvider
|
||||
import android.content.ContentResolver
|
||||
import android.content.Context
|
||||
import android.content.res.Resources
|
||||
import android.os.Bundle
|
||||
import com.highcapable.yukihookapi.hook.factory.clazz
|
||||
|
||||
/**
|
||||
* 获得 [Context] 类型
|
||||
@@ -43,12 +46,24 @@ import android.os.Bundle
|
||||
*/
|
||||
val ContextClass get() = Context::class.java
|
||||
|
||||
/**
|
||||
* 获得 [ContextImpl] 类型
|
||||
* @return [Class]
|
||||
*/
|
||||
val ContextImplClass get() = ("android.app.ContextImpl").clazz
|
||||
|
||||
/**
|
||||
* 获得 [Activity] 类型
|
||||
* @return [Class]
|
||||
*/
|
||||
val ActivityClass get() = Activity::class.java
|
||||
|
||||
/**
|
||||
* 获得 [Fragment] 类型
|
||||
* @return [Class]
|
||||
*/
|
||||
val FragmentClass get() = ("androidx.fragment.app.Fragment").clazz
|
||||
|
||||
/**
|
||||
* 获得 [Service] 类型
|
||||
* @return [Class]
|
||||
@@ -77,4 +92,16 @@ val ResourcesClass get() = Resources::class.java
|
||||
* 获得 [Application] 类型
|
||||
* @return [Class]
|
||||
*/
|
||||
val ApplicationClass get() = Application::class.java
|
||||
val ApplicationClass get() = Application::class.java
|
||||
|
||||
/**
|
||||
* 获得 [ContentResolver] 类型
|
||||
* @return [Class]
|
||||
*/
|
||||
val ContentResolverClass get() = ContentResolver::class.java
|
||||
|
||||
/**
|
||||
* 获得 [ContentProvider] 类型
|
||||
* @return [Class]
|
||||
*/
|
||||
val ContentProviderClass get() = ContentProvider::class.java
|
@@ -27,7 +27,7 @@
|
||||
*/
|
||||
@file:Suppress("unused")
|
||||
|
||||
package com.highcapable.yukihookapi.hook.type
|
||||
package com.highcapable.yukihookapi.hook.type.android
|
||||
|
||||
import android.view.View
|
||||
import android.view.ViewGroup
|
@@ -27,7 +27,7 @@
|
||||
*/
|
||||
@file:Suppress("unused")
|
||||
|
||||
package com.highcapable.yukihookapi.hook.type
|
||||
package com.highcapable.yukihookapi.hook.type.java
|
||||
|
||||
import java.io.Serializable
|
||||
|
Reference in New Issue
Block a user