From b1105eb65d0418d7a71fd11cf8a12ecab5b0f6e8 Mon Sep 17 00:00:00 2001 From: 0xera <56160164+0xera@users.noreply.github.com> Date: Wed, 28 Aug 2024 00:36:57 +0300 Subject: [PATCH] remove suppresses --- .../main/kotlin/io/deepmedia/tools/grease/GreasePlugin.kt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/grease/src/main/kotlin/io/deepmedia/tools/grease/GreasePlugin.kt b/grease/src/main/kotlin/io/deepmedia/tools/grease/GreasePlugin.kt index 5664a4f..3af5679 100644 --- a/grease/src/main/kotlin/io/deepmedia/tools/grease/GreasePlugin.kt +++ b/grease/src/main/kotlin/io/deepmedia/tools/grease/GreasePlugin.kt @@ -1,5 +1,3 @@ -@file:Suppress("UnstableApiUsage") - package io.deepmedia.tools.grease import com.android.build.api.component.analytics.AnalyticsEnabledVariant @@ -54,7 +52,6 @@ open class GreasePlugin : Plugin { private val defaultIssueReporter = DefaultIssueReporter(StdLogger(StdLogger.Level.WARNING)) - @Suppress("NAME_SHADOWING") override fun apply(target: Project) { target.plugins.withId("com.android.library") { val log = Logger(target, "grease") @@ -84,8 +81,8 @@ open class GreasePlugin : Plugin { } // Configure all variants. androidComponents.onVariants { variant -> - val log = log.child("configureVariant") - log.d { "Configuring variant ${variant.name}..." } + val childLog = log.child("configureVariant") + childLog.d { "Configuring variant ${variant.name}..." } target.afterEvaluate { configure(variant, target.greaseOf(variant), target.greaseOf(variant, true)) } @@ -140,7 +137,6 @@ open class GreasePlugin : Plugin { // To retrieve the secondary files, we must query the configuration artifacts. val primaryManifest = processManifestTask.manifestOutputFile.asFile // overwrite - @Suppress("DEPRECATION") val mergedFlavor = componentConfig.oldVariantApiLegacySupport?.mergedFlavor log.d { "Merging manifests... primary=${primaryManifest.get()}, secondary=${extraManifests.files.joinToString()}" }