sh.christian.aaraar.gradle.agp.Agp7AndroidPackaging.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of agp-compat-agp7 Show documentation
Show all versions of agp-compat-agp7 Show documentation
Compatibility layer for interacting with AGP 7.
The newest version!
package sh.christian.aaraar.gradle.agp
import com.android.build.api.variant.JniLibsPackaging
import com.android.build.api.variant.Packaging
import com.android.build.api.variant.ResourcesPackaging
import org.gradle.api.provider.SetProperty
class Agp7AndroidPackaging(packaging: Packaging) : AndroidPackaging {
override val jniLibs: AndroidPackaging.JniLibs = Agp7JniLibs(packaging.jniLibs)
override val resources: AndroidPackaging.Resources = Agp7Resources(packaging.resources)
private class Agp7JniLibs(jniLibs: JniLibsPackaging) : AndroidPackaging.JniLibs {
override val pickFirsts: SetProperty = jniLibs.pickFirsts
override val excludes: SetProperty = jniLibs.excludes
}
private class Agp7Resources(resources: ResourcesPackaging) : AndroidPackaging.Resources {
override val pickFirsts: SetProperty = resources.pickFirsts
override val merges: SetProperty = resources.merges
override val excludes: SetProperty = resources.excludes
}
}