kotlin 修改

This commit is contained in:
“lushunming” 2025-07-18 22:16:26 +08:00
parent 787b35c979
commit 882b07dd41
6 changed files with 13 additions and 13 deletions

View File

@ -2,6 +2,7 @@ plugins {
id 'com.android.application' id 'com.android.application'
id 'ru.cleverpumpkin.proguard-dictionaries-generator' id 'ru.cleverpumpkin.proguard-dictionaries-generator'
id 'org.jetbrains.kotlin.android' id 'org.jetbrains.kotlin.android'
} }
java { java {
toolchain { toolchain {
@ -85,7 +86,8 @@ dependencies {
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1" implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1"
implementation 'io.ktor:ktor-server-core:2.3.13' implementation 'io.ktor:ktor-server-core:2.3.13'
implementation 'io.ktor:ktor-server-jetty:2.3.13'
implementation 'io.ktor:ktor-server-netty:2.3.13'
implementation 'io.ktor:ktor-server-call-logging:2.3.13' implementation 'io.ktor:ktor-server-call-logging:2.3.13'
implementation("org.slf4j:slf4j-android:1.7.36") implementation("org.slf4j:slf4j-android:1.7.36")

View File

@ -94,11 +94,9 @@
-keepattributes SourceFile,LineNumberTable -keepattributes SourceFile,LineNumberTable
# Please add these rules to your existing keep rules in order to suppress warnings. -keepattributes Signature,InnerClasses
# This is generated automatically by the Android Gradle plugin. -keepclasseswithmembers class io.netty.** {
-dontwarn java.lang.Module *;
-dontwarn javax.naming.ldap.LdapName }
-dontwarn javax.naming.ldap.Rdn -dontwarn io.netty.**
-dontwarn org.eclipse.jetty.alpn.ALPN$Provider -dontwarn sun.**
-dontwarn org.eclipse.jetty.alpn.ALPN$ServerProvider
-dontwarn org.eclipse.jetty.alpn.ALPN

View File

@ -11,7 +11,7 @@ import io.ktor.server.application.call
import io.ktor.server.application.install import io.ktor.server.application.install
import io.ktor.server.engine.embeddedServer import io.ktor.server.engine.embeddedServer
import io.ktor.server.jetty.Jetty import io.ktor.server.netty.Netty
import io.ktor.server.plugins.callloging.CallLogging import io.ktor.server.plugins.callloging.CallLogging
import io.ktor.server.response.respondBytesWriter import io.ktor.server.response.respondBytesWriter
import io.ktor.server.response.respondText import io.ktor.server.response.respondText
@ -39,7 +39,7 @@ object KtorServer {
do { do {
try { try {
ser = embeddedServer(Jetty, port) { ser = embeddedServer(Netty, port) {
install(CallLogging) install(CallLogging)

Binary file not shown.

View File

@ -1 +1 @@
433aa9783b078958774623d1922795cd 8a9fee904fd090f7eb5ec9eb73fc257a

View File

@ -1,5 +1,5 @@
{ {
"spider": "https://gh.llkk.cc/https://raw.githubusercontent.com/lushunming/AndroidCatVodSpider/multiThreadNew/jar/custom_spider.jar;md5;433aa9783b078958774623d1922795cd", "spider": "https://gh.llkk.cc/https://raw.githubusercontent.com/lushunming/AndroidCatVodSpider/multiThreadNew/jar/custom_spider.jar;md5;8a9fee904fd090f7eb5ec9eb73fc257a",
"lives": [ "lives": [
{ {
"name": "电视直播", "name": "电视直播",