blob: 41b161e28e88663518a5a11b6da0dd22bf535102 [file] [log] [blame]
import org.lineageos.generatebp.GenerateBpPlugin
import org.lineageos.generatebp.GenerateBpPluginExtension
import org.lineageos.generatebp.models.Module
apply {
plugin<GenerateBpPlugin>()
}
buildscript {
repositories {
maven("https://raw.githubusercontent.com/lineage-next/gradle-generatebp/v1.9/.m2")
}
dependencies {
classpath("org.lineageos:gradle-generatebp:+")
}
}
configure<GenerateBpPluginExtension> {
targetSdk.set(extra.get("targetSdk") as Int)
availableInAOSP.set { module: Module ->
when {
module.group.startsWith("androidx") -> true
module.group.startsWith("com.google") -> true
module.group.startsWith("org.jetbrains") -> true
else -> false
}
}
}