mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-23 06:10:30 +08:00
Fix NPE
This commit is contained in:
parent
27819d7343
commit
b9e00f4169
@ -30,8 +30,9 @@ fun ktor(id: String, version: String) = "io.ktor:ktor-$id:$version"
|
||||
description = "QQ protocol library"
|
||||
version = rootProject.ext.get("mirai_version")!!.toString()
|
||||
|
||||
kotlin {
|
||||
val isAndroidSDKAvailable: Boolean by project
|
||||
|
||||
kotlin {
|
||||
if (isAndroidSDKAvailable) {
|
||||
android("android") {
|
||||
publishAllLibraryVariants()
|
||||
@ -96,6 +97,7 @@ kotlin {
|
||||
}
|
||||
}
|
||||
|
||||
if (isAndroidSDKAvailable) {
|
||||
val androidMain by getting {
|
||||
dependencies {
|
||||
}
|
||||
@ -109,6 +111,7 @@ kotlin {
|
||||
api(kotlin("test-common"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
val jvmMain by getting {
|
||||
dependencies {
|
||||
|
@ -30,8 +30,9 @@ fun ktor(id: String, version: String) = "io.ktor:ktor-$id:$version"
|
||||
description = "QQ protocol library"
|
||||
version = rootProject.ext.get("mirai_version")!!.toString()
|
||||
|
||||
kotlin {
|
||||
val isAndroidSDKAvailable: Boolean by project
|
||||
|
||||
kotlin {
|
||||
if (isAndroidSDKAvailable) {
|
||||
android("android") {
|
||||
publishAllLibraryVariants()
|
||||
@ -95,6 +96,7 @@ kotlin {
|
||||
}
|
||||
}
|
||||
|
||||
if (isAndroidSDKAvailable) {
|
||||
val androidMain by getting {
|
||||
dependencies {
|
||||
}
|
||||
@ -108,6 +110,7 @@ kotlin {
|
||||
api(kotlin("test-common"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
val jvmMain by getting {
|
||||
dependencies {
|
||||
|
@ -29,8 +29,9 @@ fun ktor(id: String, version: String) = "io.ktor:ktor-$id:$version"
|
||||
|
||||
description = "QQ protocol library"
|
||||
|
||||
kotlin {
|
||||
val isAndroidSDKAvailable: Boolean by project
|
||||
|
||||
kotlin {
|
||||
if (isAndroidSDKAvailable) {
|
||||
android("android") {
|
||||
publishAllLibraryVariants()
|
||||
@ -108,6 +109,7 @@ kotlin {
|
||||
}
|
||||
}
|
||||
|
||||
if (isAndroidSDKAvailable) {
|
||||
val androidMain by getting {
|
||||
dependencies {
|
||||
api(kotlin("reflect", kotlinVersion))
|
||||
@ -127,6 +129,7 @@ kotlin {
|
||||
api(kotlin("test-common"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
val jvmMain by getting {
|
||||
dependencies {
|
||||
|
Loading…
Reference in New Issue
Block a user