[英]Disable mapping file (deob) upload on proguard build for Android Fabric/Crashlytics
Android App using proguard: 使用proguard的Android应用:
Crashlytics automatically uploads the mapping files for reach of your build variants. Crashlytics会自动上传映射文件,以达到您的构建变体的范围。 https://docs.fabric.io/android/crashlytics/dex-and-proguard.html#gradle https://docs.fabric.io/android/crashlytics/dex-and-proguard.html#gradle
We need to get rid off this warning since our bamboo build agent has no outside connection. 我们需要摆脱这个警告,因为我们的竹代工没有外部联系。
WARN - Crashlytics had a problem uploading the deobs file.
Please check network connectivity and try again.
build 22-Jan-2018 15:20:18
com.crashlytics.reloc.org.apache.http.conn.HttpHostConnectException: Connect to cm.crashlytics.com:443
How can we disable this upload feature? 我们如何禁用此上传功能?
Edit - clarification: We do not want to disable crashlytics for this build; 编辑-澄清:我们不想为此版本禁用crashlytics; in fact we need it.. We just want to disable the upload of the mapping file since we have no outside connection on this agent. 实际上,我们需要它。我们只想禁用映射文件的上载,因为我们在此代理上没有外部连接。
Thanks in advance. 提前致谢。
You can disable tasks by setting the enabled
-flag in your top-level build.gradle file for specific tasks to false
. 您可以通过设置禁用任务enabled
为特定任务顶层的build.gradle文件-flag false
。
subprojects {
tasks.whenTaskAdded { task ->
boolean isCrashlyticsTask = task.name.toLowerCase().contains("crashlytics")
if (isCrashlyticsTask) {
task.enabled = false
}
}
}
How about: 怎么样:
android {
buildTypes {
debug {
ext.enableCrashlytics = false
...
As in the crashlytics documentation . 如crashlytics文档中所述 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.