Skip to content

Commit 04405c5

Browse files
authored
更新依赖库以支持 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.
1 parent f5a3f31 commit 04405c5

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

gradle/sweet-dependency/sweet-dependency-config.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,22 @@ repositories:
1919
plugins:
2020
org.jetbrains.kotlin.jvm:
2121
alias: kotlin-jvm
22-
version: 1.9.22
22+
version: 2.0.0
2323
org.jetbrains.kotlin.android:
2424
alias: kotlin-android
2525
version-ref: kotlin-jvm
2626
com.google.devtools.ksp:
2727
alias: kotlin-ksp
28-
version: 1.9.22-1.0.17
28+
version: 2.0.0-1.0.21
2929
com.android.application:
3030
alias: android-application
31-
version: 8.2.2
31+
version: 8.4.1
3232
com.android.library:
3333
alias: android-library
3434
version-ref: android-application
3535
com.vanniktech.maven.publish:
3636
alias: maven-publish
37-
version: 0.27.0
37+
version: 0.28.0
3838

3939
libraries:
4040
de.robv.android.xposed:
@@ -58,22 +58,22 @@ libraries:
5858
version: 1.1.0
5959
androidx.annotation:
6060
annotation:
61-
version: 1.7.1
61+
version: 1.8.0
6262
androidx.preference:
6363
preference-ktx:
6464
version: 1.2.1
6565
androidx.core:
6666
core-ktx:
67-
version: 1.12.0
67+
version: 1.13.1
6868
androidx.appcompat:
6969
appcompat:
70-
version: 1.6.1
70+
version: 1.7.0
7171
androidx.lifecycle:
7272
lifecycle-viewmodel-ktx:
73-
version: 2.7.0
73+
version: 2.8.1
7474
com.google.android.material:
7575
material:
76-
version: 1.11.0
76+
version: 1.12.0
7777
androidx.constraintlayout:
7878
constraintlayout:
7979
version: 2.1.4
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
2-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
2+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
33
distributionPath=wrapper/dists
44
zipStorePath=wrapper/dists
55
zipStoreBase=GRADLE_USER_HOME

yukihookapi-core/src/main/java/com/highcapable/yukihookapi/YukiHookAPI.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,11 +461,11 @@ object YukiHookAPI {
461461
fun encase(baseContext: Context?, vararg hooker: YukiBaseHooker) {
462462
isLoadedFromBaseContext = true
463463
if (HookApiCategoryHelper.hasAvailableHookApi)
464-
(if (baseContext != null)
464+
if (baseContext != null)
465465
if (hooker.isNotEmpty()) {
466466
printSplashInfo()
467467
hooker.forEach { it.assignInstance(packageParam = baseContext.createPackageParam()) }
468-
} else YLog.innerE("Failed to passing \"encase\" method because your hooker param is empty", isImplicit = true))
468+
} else YLog.innerE("Failed to passing \"encase\" method because your hooker param is empty", isImplicit = true)
469469
else printNotFoundHookApiError()
470470
}
471471

0 commit comments

Comments
 (0)