[Gradle] Remove unused method in Kapt3KotlinGradleSubplugin.kt
^KT-56904 In Progress
This commit is contained in:
committed by
Space Team
parent
8028e2a42d
commit
78edc45ded
-27
@@ -318,33 +318,6 @@ class Kapt3GradleSubplugin @Inject internal constructor(private val registry: To
|
|||||||
return project.provider { emptyList<SubpluginOption>() }
|
return project.provider { emptyList<SubpluginOption>() }
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun Kapt3SubpluginContext.getAPOptions(): Provider<CompositeSubpluginOption> = project.provider {
|
|
||||||
val androidVariantData = KaptWithAndroid.androidVariantData(this)
|
|
||||||
|
|
||||||
val annotationProcessorProviders = androidVariantData?.annotationProcessorOptionProviders
|
|
||||||
|
|
||||||
val subluginOptionsFromProvidedApOptions = lazy {
|
|
||||||
val apOptionsFromProviders =
|
|
||||||
annotationProcessorProviders
|
|
||||||
?.flatMap { it.asArguments() }
|
|
||||||
.orEmpty()
|
|
||||||
|
|
||||||
apOptionsFromProviders.map {
|
|
||||||
// Use the internal subplugin option type to exclude them from Gradle input/output checks, as their providers are already
|
|
||||||
// properly registered as a nested input:
|
|
||||||
|
|
||||||
// Pass options as they are in the key-only form (key = 'a=b'), kapt will deal with them:
|
|
||||||
InternalSubpluginOption(key = it.removePrefix("-A"), value = "")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
CompositeSubpluginOption(
|
|
||||||
"apoptions",
|
|
||||||
lazy { encodeList((getDslKaptApOptions().get() + subluginOptionsFromProvidedApOptions.value).associate { it.key to it.value }) },
|
|
||||||
getDslKaptApOptions().get()
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Returns AP options from static DSL. */
|
/* Returns AP options from static DSL. */
|
||||||
private fun Kapt3SubpluginContext.getDslKaptApOptions(): Provider<List<SubpluginOption>> = project.provider {
|
private fun Kapt3SubpluginContext.getDslKaptApOptions(): Provider<List<SubpluginOption>> = project.provider {
|
||||||
val androidVariantData = KaptWithAndroid.androidVariantData(this)
|
val androidVariantData = KaptWithAndroid.androidVariantData(this)
|
||||||
|
|||||||
Reference in New Issue
Block a user