com.likethesalad.android.templates.provider.locator.TemplateResourcesProviderEntryPoint.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of templates-provider-plugin Show documentation
Show all versions of templates-provider-plugin Show documentation
This is a Gradle plugin for Android applications which resolves XML string references in other XML strings.
The newest version!
package com.likethesalad.android.templates.provider.locator
import com.likethesalad.tools.resource.collector.android.data.variant.VariantTree
import com.likethesalad.tools.resource.locator.android.extension.configuration.ResourceLocatorEntryPoint
import com.likethesalad.tools.resource.locator.android.extension.configuration.source.ResourceSourceConfiguration
import com.likethesalad.tools.resource.locator.android.extension.configuration.source.utils.CommonSourceConfigurationCreator
class TemplateResourcesProviderEntryPoint(
private val commonSourceConfigurationCreator: CommonSourceConfigurationCreator,
) : ResourceLocatorEntryPoint {
override fun getResourceSourceConfigurations(variantTree: VariantTree): List {
val rawConfiguration = commonSourceConfigurationCreator.createAndroidRawConfiguration(variantTree)
return listOf(rawConfiguration)
}
}