remove suppresses · deepmedia/Grease@b1105eb

Original file line numberDiff line numberDiff line change

@@ -1,5 +1,3 @@

1-

@file:Suppress("UnstableApiUsage")

2-
31

package io.deepmedia.tools.grease

42
53

import com.android.build.api.component.analytics.AnalyticsEnabledVariant

@@ -54,7 +52,6 @@ open class GreasePlugin : Plugin<Project> {

5452
5553

private val defaultIssueReporter = DefaultIssueReporter(StdLogger(StdLogger.Level.WARNING))

5654
57-

@Suppress("NAME_SHADOWING")

5855

override fun apply(target: Project) {

5956

target.plugins.withId("com.android.library") {

6057

val log = Logger(target, "grease")

@@ -84,8 +81,8 @@ open class GreasePlugin : Plugin<Project> {

8481

}

8582

// Configure all variants.

8683

androidComponents.onVariants { variant ->

87-

val log = log.child("configureVariant")

88-

log.d { "Configuring variant ${variant.name}..." }

84+

val childLog = log.child("configureVariant")

85+

childLog.d { "Configuring variant ${variant.name}..." }

8986

target.afterEvaluate {

9087

configure(variant, target.greaseOf(variant), target.greaseOf(variant, true))

9188

}

@@ -140,7 +137,6 @@ open class GreasePlugin : Plugin<Project> {

140137

// To retrieve the secondary files, we must query the configuration artifacts.

141138

val primaryManifest = processManifestTask.manifestOutputFile.asFile // overwrite

142139
143-

@Suppress("DEPRECATION")

144140

val mergedFlavor = componentConfig.oldVariantApiLegacySupport?.mergedFlavor

145141
146142

log.d { "Merging manifests... primary=${primaryManifest.get()}, secondary=${extraManifests.files.joinToString()}" }