是否可以找到Gradle插件的所有可用属性和方法,还是仅依赖于文档?
我是否在Android Studio中缺少显示我所有可用选项的Gradle命令或窗口?没有它,我几乎不得不猜测...
在这种情况下,我正在寻找有关Firebase Crashlytics Gradle插件的更多信息。
com.google.firebase:firebase-crashlytics-gradle
编辑
为了使自己更加清楚,在下面的示例中,我从Firebase docs中提取了如何找出可以在firebaseCrashlytics
块中使用的方法。
apply plugin: 'com.android.application'
apply plugin: 'com.google.firebase.crashlytics'
apply plugin: 'com.google.gms.google-services'
android {
// ...
buildTypes {
debug {
minifyEnabled true
firebaseCrashlytics {
// If you don't need crash reporting for your debug build,
// you can speed up your build by disabling mapping file uploading.
mappingFileUploadEnabled false
}
}
release {
minifyEnabled true
// When minifyEnabled is set to true, Crashlytics automatically
// uploads mapping files because the plugin detects that obfuscation
// is enabled. mappingFileUploadEnabled defaults to true if
// minifyEnabled is true.
}
}
}
如果您运行:
./gradlew tasks
它应该为您提供不同任务的列表。