kotlin 修改
This commit is contained in:
parent
787b35c979
commit
882b07dd41
|
|
@ -2,6 +2,7 @@ plugins {
|
|||
id 'com.android.application'
|
||||
id 'ru.cleverpumpkin.proguard-dictionaries-generator'
|
||||
id 'org.jetbrains.kotlin.android'
|
||||
|
||||
}
|
||||
java {
|
||||
toolchain {
|
||||
|
|
@ -85,7 +86,8 @@ dependencies {
|
|||
|
||||
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1"
|
||||
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("org.slf4j:slf4j-android:1.7.36")
|
||||
|
|
|
|||
|
|
@ -94,11 +94,9 @@
|
|||
|
||||
-keepattributes SourceFile,LineNumberTable
|
||||
|
||||
# Please add these rules to your existing keep rules in order to suppress warnings.
|
||||
# This is generated automatically by the Android Gradle plugin.
|
||||
-dontwarn java.lang.Module
|
||||
-dontwarn javax.naming.ldap.LdapName
|
||||
-dontwarn javax.naming.ldap.Rdn
|
||||
-dontwarn org.eclipse.jetty.alpn.ALPN$Provider
|
||||
-dontwarn org.eclipse.jetty.alpn.ALPN$ServerProvider
|
||||
-dontwarn org.eclipse.jetty.alpn.ALPN
|
||||
-keepattributes Signature,InnerClasses
|
||||
-keepclasseswithmembers class io.netty.** {
|
||||
*;
|
||||
}
|
||||
-dontwarn io.netty.**
|
||||
-dontwarn sun.**
|
||||
|
|
@ -11,7 +11,7 @@ import io.ktor.server.application.call
|
|||
import io.ktor.server.application.install
|
||||
|
||||
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.response.respondBytesWriter
|
||||
import io.ktor.server.response.respondText
|
||||
|
|
@ -39,7 +39,7 @@ object KtorServer {
|
|||
|
||||
do {
|
||||
try {
|
||||
ser = embeddedServer(Jetty, port) {
|
||||
ser = embeddedServer(Netty, port) {
|
||||
install(CallLogging)
|
||||
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
433aa9783b078958774623d1922795cd
|
||||
8a9fee904fd090f7eb5ec9eb73fc257a
|
||||
|
|
|
|||
|
|
@ -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": [
|
||||
{
|
||||
"name": "电视直播",
|
||||
|
|
|
|||
Loading…
Reference in New Issue