blob: f6145f5a4e0cf116e83a14e5d2bbcc0204145ba9 [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.3/.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
}
}
}