更新依赖库以支持 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:
xihan123
2024-05-31 01:53:07 +08:00
committed by GitHub
parent f5a3f31cc9
commit 04405c5a53
3 changed files with 12 additions and 12 deletions

View File

@@ -19,22 +19,22 @@ repositories:
plugins:
org.jetbrains.kotlin.jvm:
alias: kotlin-jvm
version: 1.9.22
version: 2.0.0
org.jetbrains.kotlin.android:
alias: kotlin-android
version-ref: kotlin-jvm
com.google.devtools.ksp:
alias: kotlin-ksp
version: 1.9.22-1.0.17
version: 2.0.0-1.0.21
com.android.application:
alias: android-application
version: 8.2.2
version: 8.4.1
com.android.library:
alias: android-library
version-ref: android-application
com.vanniktech.maven.publish:
alias: maven-publish
version: 0.27.0
version: 0.28.0
libraries:
de.robv.android.xposed:
@@ -58,22 +58,22 @@ libraries:
version: 1.1.0
androidx.annotation:
annotation:
version: 1.7.1
version: 1.8.0
androidx.preference:
preference-ktx:
version: 1.2.1
androidx.core:
core-ktx:
version: 1.12.0
version: 1.13.1
androidx.appcompat:
appcompat:
version: 1.6.1
version: 1.7.0
androidx.lifecycle:
lifecycle-viewmodel-ktx:
version: 2.7.0
version: 2.8.1
com.google.android.material:
material:
version: 1.11.0
version: 1.12.0
androidx.constraintlayout:
constraintlayout:
version: 2.1.4

View File

@@ -1,5 +1,5 @@
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
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME

View File

@@ -461,11 +461,11 @@ object YukiHookAPI {
fun encase(baseContext: Context?, vararg hooker: YukiBaseHooker) {
isLoadedFromBaseContext = true
if (HookApiCategoryHelper.hasAvailableHookApi)
(if (baseContext != null)
if (baseContext != null)
if (hooker.isNotEmpty()) {
printSplashInfo()
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()
}