简体   繁体   English

禁止在Proguard构建中为Android Fabric / Crashlytics上传映射文件(deob)

[英]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.

相关问题 适用于Android的Crashlytics:禁用通过Gradle构建自动上传映射文件 - Crashlytics for Android: Disable automatic upload of mapping file via Gradle build Android 将特定构建警告视为错误,因此当 Crashlytics 映射文件上传失败时构建失败 - Android treat specific build warning as error so build fails when upload of Crashlytics mapping file fails Firebase Crashlytics 何时将 Proguard/R8 映射文件上传到他们的服务器? - When does Firebase Crashlytics upload Proguard/R8 mapping file to their server? Android 的 Crashlytics 报告被 Proguard 和 Proguard 映射设置混淆了 - Android's Crashlytics reports are obfuscated with Proguard and Proguard mapping setup 每次在 Firebase Crashlytics 上都会覆盖 Proguard 映射文件,是否会创建新的发布版本? - Is Proguard mapping file overwritten each time on Firebase Crashlytics a new release build is created? 具有Phonegap构建的Fabric Crashlytics - Fabric Crashlytics with Phonegap Build 将映射Proguard文件上传到Firebase时出错 - Error to upload mapping proguard file to Firebase 适用于 Android 的 Fabric Crashlytics 不起作用 - Fabric Crashlytics for Android not working Firebase crashlytics 映射文件上传不起作用 - Firebase crashlytics mapping file upload doesn't work Fabric和Crashlytics无法与Bazel构建配合使用 - Fabric and Crashlytics not working with Bazel build
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM