如何使用自己的自定义插件以编程方式访问另一个插件的DSL?
debug {
ext.enableCrashlytics = false
ext.alwaysUpdateBuildId = false
}
release {
ext.enableCrashlytics = true
ext.alwaysUpdateBuildId = true
}
例如,如果我有自己的自定义插件:
class MyCustomPlugin : Plugin<Project> {
override fun apply(project: Project) {
// how do I modify availability for `debug` and `release` crashlytics support?
}
}