diff --git a/app/build.gradle b/app/build.gradle index 8f213ba..1d090f5 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -76,14 +76,14 @@ android { dependencies { implementation(fileTree('libs')) - implementation 'androidx.core:core-ktx:1.10.1' + implementation 'androidx.core:core-ktx:1.12.0' implementation 'androidx.appcompat:appcompat:1.6.1' implementation 'com.google.android.material:material:1.9.0' implementation 'androidx.constraintlayout:constraintlayout:2.1.4' - implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.6.1' - implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1' - implementation 'androidx.navigation:navigation-fragment-ktx:2.7.0' - implementation 'androidx.navigation:navigation-ui-ktx:2.7.0' + implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.6.2' + implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2' + implementation 'androidx.navigation:navigation-fragment-ktx:2.7.3' + implementation 'androidx.navigation:navigation-ui-ktx:2.7.3' implementation 'androidx.room:room-runtime:2.5.2' implementation 'androidx.coordinatorlayout:coordinatorlayout:1.2.0' implementation 'androidx.preference:preference-ktx:1.2.1' diff --git a/app/src/main/java/io/nekohasekai/sfa/utils/CommandClient.kt b/app/src/main/java/io/nekohasekai/sfa/utils/CommandClient.kt index 18a71ef..fa79d1f 100644 --- a/app/src/main/java/io/nekohasekai/sfa/utils/CommandClient.kt +++ b/app/src/main/java/io/nekohasekai/sfa/utils/CommandClient.kt @@ -32,6 +32,7 @@ open class CommandClient( fun onDisconnected() {} fun updateStatus(status: StatusMessage) {} fun updateGroups(groups: List) {} + fun clearLog() {} fun appendLog(message: String) {} fun initializeClashMode(modeList: List, currentMode: String) {} fun updateClashMode(newMode: String) {} @@ -106,6 +107,10 @@ open class CommandClient( handler.updateGroups(groups) } + override fun clearLog() { + handler.clearLog() + } + override fun writeLog(message: String?) { if (message == null) { return diff --git a/build.gradle b/build.gradle index 124bca1..17971be 100644 --- a/build.gradle +++ b/build.gradle @@ -6,8 +6,8 @@ buildscript { } plugins { - id 'com.android.application' version '8.1.1' apply false - id 'com.android.library' version '8.1.1' apply false + id 'com.android.application' version '8.1.2' apply false + id 'com.android.library' version '8.1.2' apply false id 'org.jetbrains.kotlin.android' version '1.9.0' apply false id 'com.google.devtools.ksp' version '1.9.0-1.0.12' apply false }