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