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