fix: 正常に絵文字が出力されない問題を修正2
This commit is contained in:
parent
7d1063b0c3
commit
28d3c78172
|
@ -9,12 +9,4 @@ repositories {
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly(gradleApi())
|
compileOnly(gradleApi())
|
||||||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
|
|
||||||
implementation("io.ktor:ktor-client-core:2.2.3")
|
|
||||||
implementation("io.ktor:ktor-client-cio:2.2.3")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
buildscript {
|
|
||||||
|
|
||||||
}
|
|
||||||
ext["kotlin_version"] = "1.8.10"
|
|
||||||
|
|
|
@ -17,9 +17,6 @@ class EmojiPlugin : Plugin<Project> {
|
||||||
override fun apply(project: Project) {
|
override fun apply(project: Project) {
|
||||||
project.task("generateEmoji")
|
project.task("generateEmoji")
|
||||||
.doLast(Action {
|
.doLast(Action {
|
||||||
runBlocking {
|
|
||||||
|
|
||||||
|
|
||||||
val httpClient = HttpClient.newBuilder()
|
val httpClient = HttpClient.newBuilder()
|
||||||
.version(HttpClient.Version.HTTP_1_1)
|
.version(HttpClient.Version.HTTP_1_1)
|
||||||
.followRedirects(HttpClient.Redirect.NORMAL)
|
.followRedirects(HttpClient.Redirect.NORMAL)
|
||||||
|
@ -96,7 +93,7 @@ class EmojiPlugin : Plugin<Project> {
|
||||||
}
|
}
|
||||||
|
|
||||||
enumList.putIfAbsent(
|
enumList.putIfAbsent(
|
||||||
description,
|
(description + "_" + status),
|
||||||
Emoji(
|
Emoji(
|
||||||
group + groupCount,
|
group + groupCount,
|
||||||
"${
|
"${
|
||||||
|
@ -187,7 +184,7 @@ ${joinToString}
|
||||||
}"""
|
}"""
|
||||||
asFile.writeText(trimIndent)
|
asFile.writeText(trimIndent)
|
||||||
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue