mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-04 09:45:19 +08:00
更新依赖库以支持 kotlin 2.0.0 版本 (#76)
* chore: bump gradle to 8.7 * chore: bump dependencies * fix(style): 'if' must have both main and 'else' branches when used as an expression.
This commit is contained in:
@@ -19,22 +19,22 @@ repositories:
|
|||||||
plugins:
|
plugins:
|
||||||
org.jetbrains.kotlin.jvm:
|
org.jetbrains.kotlin.jvm:
|
||||||
alias: kotlin-jvm
|
alias: kotlin-jvm
|
||||||
version: 1.9.22
|
version: 2.0.0
|
||||||
org.jetbrains.kotlin.android:
|
org.jetbrains.kotlin.android:
|
||||||
alias: kotlin-android
|
alias: kotlin-android
|
||||||
version-ref: kotlin-jvm
|
version-ref: kotlin-jvm
|
||||||
com.google.devtools.ksp:
|
com.google.devtools.ksp:
|
||||||
alias: kotlin-ksp
|
alias: kotlin-ksp
|
||||||
version: 1.9.22-1.0.17
|
version: 2.0.0-1.0.21
|
||||||
com.android.application:
|
com.android.application:
|
||||||
alias: android-application
|
alias: android-application
|
||||||
version: 8.2.2
|
version: 8.4.1
|
||||||
com.android.library:
|
com.android.library:
|
||||||
alias: android-library
|
alias: android-library
|
||||||
version-ref: android-application
|
version-ref: android-application
|
||||||
com.vanniktech.maven.publish:
|
com.vanniktech.maven.publish:
|
||||||
alias: maven-publish
|
alias: maven-publish
|
||||||
version: 0.27.0
|
version: 0.28.0
|
||||||
|
|
||||||
libraries:
|
libraries:
|
||||||
de.robv.android.xposed:
|
de.robv.android.xposed:
|
||||||
@@ -58,22 +58,22 @@ libraries:
|
|||||||
version: 1.1.0
|
version: 1.1.0
|
||||||
androidx.annotation:
|
androidx.annotation:
|
||||||
annotation:
|
annotation:
|
||||||
version: 1.7.1
|
version: 1.8.0
|
||||||
androidx.preference:
|
androidx.preference:
|
||||||
preference-ktx:
|
preference-ktx:
|
||||||
version: 1.2.1
|
version: 1.2.1
|
||||||
androidx.core:
|
androidx.core:
|
||||||
core-ktx:
|
core-ktx:
|
||||||
version: 1.12.0
|
version: 1.13.1
|
||||||
androidx.appcompat:
|
androidx.appcompat:
|
||||||
appcompat:
|
appcompat:
|
||||||
version: 1.6.1
|
version: 1.7.0
|
||||||
androidx.lifecycle:
|
androidx.lifecycle:
|
||||||
lifecycle-viewmodel-ktx:
|
lifecycle-viewmodel-ktx:
|
||||||
version: 2.7.0
|
version: 2.8.1
|
||||||
com.google.android.material:
|
com.google.android.material:
|
||||||
material:
|
material:
|
||||||
version: 1.11.0
|
version: 1.12.0
|
||||||
androidx.constraintlayout:
|
androidx.constraintlayout:
|
||||||
constraintlayout:
|
constraintlayout:
|
||||||
version: 2.1.4
|
version: 2.1.4
|
||||||
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@@ -1,5 +1,5 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
@@ -461,11 +461,11 @@ object YukiHookAPI {
|
|||||||
fun encase(baseContext: Context?, vararg hooker: YukiBaseHooker) {
|
fun encase(baseContext: Context?, vararg hooker: YukiBaseHooker) {
|
||||||
isLoadedFromBaseContext = true
|
isLoadedFromBaseContext = true
|
||||||
if (HookApiCategoryHelper.hasAvailableHookApi)
|
if (HookApiCategoryHelper.hasAvailableHookApi)
|
||||||
(if (baseContext != null)
|
if (baseContext != null)
|
||||||
if (hooker.isNotEmpty()) {
|
if (hooker.isNotEmpty()) {
|
||||||
printSplashInfo()
|
printSplashInfo()
|
||||||
hooker.forEach { it.assignInstance(packageParam = baseContext.createPackageParam()) }
|
hooker.forEach { it.assignInstance(packageParam = baseContext.createPackageParam()) }
|
||||||
} else YLog.innerE("Failed to passing \"encase\" method because your hooker param is empty", isImplicit = true))
|
} else YLog.innerE("Failed to passing \"encase\" method because your hooker param is empty", isImplicit = true)
|
||||||
else printNotFoundHookApiError()
|
else printNotFoundHookApiError()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user