mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-31 11:50:09 +08:00
Simplify buildscript: remove redundant comments
This commit is contained in:
parent
0c964f3144
commit
2a036d7bb3
@ -27,13 +27,8 @@ kotlin {
|
|||||||
explicitApi()
|
explicitApi()
|
||||||
|
|
||||||
if (isAndroidSDKAvailable) {
|
if (isAndroidSDKAvailable) {
|
||||||
// apply(from = rootProject.file("gradle/android.gradle"))
|
|
||||||
// android("android") {
|
|
||||||
// publishAllLibraryVariants()
|
|
||||||
// }
|
|
||||||
jvm("android") {
|
jvm("android") {
|
||||||
attributes.attribute(KotlinPlatformType.attribute, KotlinPlatformType.androidJvm)
|
attributes.attribute(KotlinPlatformType.attribute, KotlinPlatformType.androidJvm)
|
||||||
// publishAllLibraryVariants()
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
printAndroidNotInstalled()
|
printAndroidNotInstalled()
|
||||||
@ -45,9 +40,6 @@ kotlin {
|
|||||||
|
|
||||||
jvm("jvm")
|
jvm("jvm")
|
||||||
|
|
||||||
// jvm("android") {
|
|
||||||
// attributes.attribute(Attribute.of("mirai.target.platform", String::class.java), "android")
|
|
||||||
// }
|
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
val commonMain by getting {
|
val commonMain by getting {
|
||||||
|
@ -33,13 +33,8 @@ kotlin {
|
|||||||
explicitApi()
|
explicitApi()
|
||||||
|
|
||||||
if (isAndroidSDKAvailable) {
|
if (isAndroidSDKAvailable) {
|
||||||
// apply(from = rootProject.file("gradle/android.gradle"))
|
|
||||||
// android("android") {
|
|
||||||
// publishAllLibraryVariants()
|
|
||||||
// }
|
|
||||||
jvm("android") {
|
jvm("android") {
|
||||||
attributes.attribute(KotlinPlatformType.attribute, KotlinPlatformType.androidJvm)
|
attributes.attribute(KotlinPlatformType.attribute, KotlinPlatformType.androidJvm)
|
||||||
// publishAllLibraryVariants()
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
printAndroidNotInstalled()
|
printAndroidNotInstalled()
|
||||||
@ -51,10 +46,6 @@ kotlin {
|
|||||||
|
|
||||||
jvm("jvm")
|
jvm("jvm")
|
||||||
|
|
||||||
/*
|
|
||||||
jvm("android") {
|
|
||||||
attributes.attribute(ATTRIBUTE_MIRAI_TARGET_PLATFORM, "android")
|
|
||||||
}*/
|
|
||||||
sourceSets.apply {
|
sourceSets.apply {
|
||||||
|
|
||||||
val commonMain by getting {
|
val commonMain by getting {
|
||||||
|
Loading…
Reference in New Issue
Block a user