ktor
This commit is contained in:
parent
de412d36d1
commit
db0752a530
|
|
@ -84,16 +84,12 @@ 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.4') {
|
implementation 'io.ktor:ktor-server-core:2.3.4'
|
||||||
exclude group : "org.slf4j", module : "slf4j-api"
|
implementation 'io.ktor:ktor-server-cio:2.3.4'
|
||||||
|
|
||||||
}
|
|
||||||
implementation('io.ktor:ktor-server-cio:2.3.4') {
|
|
||||||
exclude group : "org.slf4j", module : "slf4j-api"
|
|
||||||
}
|
|
||||||
|
|
||||||
implementation 'io.ktor:ktor-server-call-logging:2.3.4'
|
implementation 'io.ktor:ktor-server-call-logging:2.3.4'
|
||||||
implementation("ch.qos.logback:logback-classic:1.2.6")
|
implementation("org.slf4j:slf4j-simple:1.7.36")
|
||||||
|
|
||||||
//implementation 'wang.harlon.quickjs:wrapper-java:1.0.0'
|
//implementation 'wang.harlon.quickjs:wrapper-java:1.0.0'
|
||||||
// implementation(ext: 'aar', name: 'quickjs', group: 'fongmi', version: 'release')
|
// implementation(ext: 'aar', name: 'quickjs', group: 'fongmi', version: 'release')
|
||||||
// api 'wang.harlon.quickjs:wrapper-android:2.0.0'
|
// api 'wang.harlon.quickjs:wrapper-android:2.0.0'
|
||||||
|
|
|
||||||
|
|
@ -60,6 +60,7 @@ object KtorServer {
|
||||||
|
|
||||||
/** 启动服务器 */
|
/** 启动服务器 */
|
||||||
fun start() {
|
fun start() {
|
||||||
|
SpiderDebug.log("ktorServer start on $port")
|
||||||
CoroutineScope(Dispatchers.IO).launch { server.start(true) }
|
CoroutineScope(Dispatchers.IO).launch { server.start(true) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1 +1 @@
|
||||||
96a7cb9b87ece2ef9276d43c5848c47a
|
6dcdbca14cd1a6d6dc5d62458bcc58d2
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spider": "https://ghproxy.net/https://raw.githubusercontent.com/lushunming/AndroidCatVodSpider/multiThreadNew/jar/custom_spider.jar;md5;96a7cb9b87ece2ef9276d43c5848c47a",
|
"spider": "https://ghproxy.net/https://raw.githubusercontent.com/lushunming/AndroidCatVodSpider/multiThreadNew/jar/custom_spider.jar;md5;6dcdbca14cd1a6d6dc5d62458bcc58d2",
|
||||||
"lives": [
|
"lives": [
|
||||||
{
|
{
|
||||||
"name": "电视直播",
|
"name": "电视直播",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue