sh.christian.aaraar.gradle.agp.Agp8AndroidExtension.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of agp-compat-agp8 Show documentation
Show all versions of agp-compat-agp8 Show documentation
Compatibility layer for interacting with AGP 8.
package sh.christian.aaraar.gradle.agp
import com.android.build.api.dsl.LibraryExtension
internal class Agp8AndroidExtension(
private val android: LibraryExtension,
) : AndroidExtension {
override fun onBuildTypes(callback: (String) -> Unit) {
return android.buildTypes.configureEach { callback(name) }
}
override fun packagingResourceExcludes(): Set {
return android.packaging.resources.excludes.toSet()
}
}