All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sh.christian.aaraar.gradle.agp.Agp7AndroidPackaging.kt Maven / Gradle / Ivy

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
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy