From 2a036d7bb32d4530f3d04a07efa8f696778e4046 Mon Sep 17 00:00:00 2001 From: Him188 Date: Thu, 6 Jan 2022 04:46:58 +0000 Subject: [PATCH] Simplify buildscript: remove redundant comments --- mirai-core-api/build.gradle.kts | 8 -------- mirai-core/build.gradle.kts | 9 --------- 2 files changed, 17 deletions(-) diff --git a/mirai-core-api/build.gradle.kts b/mirai-core-api/build.gradle.kts index 1a5442cc3..07b124ac1 100644 --- a/mirai-core-api/build.gradle.kts +++ b/mirai-core-api/build.gradle.kts @@ -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 { diff --git a/mirai-core/build.gradle.kts b/mirai-core/build.gradle.kts index ab76907c5..473845051 100644 --- a/mirai-core/build.gradle.kts +++ b/mirai-core/build.gradle.kts @@ -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 {