sentry-unity icon indicating copy to clipboard operation
sentry-unity copied to clipboard

Unity Android Upload Symbols Proguard

Open ArnauKokoro opened this issue 1 year ago • 4 comments

Environment

How do you use Sentry? Sentry SaaS (sentry.io)

Which version of the SDK? 1.5.2

How did you install the package? Git-URL

Which version of Unity? 2020.3.15

Is this happening in Unity (editor) or on a player like Android, iOS, Windows? Android

Steps to Reproduce

  1. Proguard Automatically Upload Symbols

Expected Result

Symbols related to a version

Actual Result

Sentry Setting/Proguard Mapping list

All symbols says:

"No releases associated with this proguard mapping file"

Any logs or screenshots

Captura de pantalla 2023-09-09 a las 11 34 15

ArnauKokoro avatar Sep 09 '23 09:09 ArnauKokoro

Thanks for raising this issue! Is this something that broke with an update of the SDK? Can you confirm that it previously worked?

bitsandfoxes avatar Sep 11 '23 18:09 bitsandfoxes

No, was not working either on other versions of the SDK.

ArnauKokoro avatar Sep 11 '23 18:09 ArnauKokoro

This is what Sentry generates on my gradle:

sentry {
    // Disables or enables the handling of Proguard mapping for Sentry.
    // If enabled the plugin will generate a UUID and will take care of
    // uploading the mapping to Sentry. If disabled, all the logic
    // related to proguard mapping will be excluded.
    // Default is enabled.
    // includeProguardMapping = true

    // Whether the plugin should attempt to auto-upload the mapping file to Sentry or not.
    // If disabled the plugin will run a dry-run and just generate a UUID.
    // The mapping file has to be uploaded manually via sentry-cli in this case.
    // Default is enabled.
    // autoUploadProguardMapping = true

    // Experimental flag to turn on support for GuardSquare's tools integration (Dexguard and External Proguard).
    // If enabled, the plugin will try to consume and upload the mapping file produced by Dexguard and External Proguard.
    // Default is disabled.
    // experimentalGuardsquareSupport = false

    // Disables or enables the automatic configuration of Native Symbols
    // for Sentry. This executes sentry-cli automatically so
    // you don't need to do it manually.
    // Default is disabled.
    uploadNativeSymbols = true

    // Does or doesn't include the source code of native code for Sentry.
    // This executes sentry-cli with the --include-sources param. automatically so
    // you don't need to do it manually.
    // Default is disabled.
    includeNativeSources = true

    ignoredBuildTypes = ["debug"]
}

Should be includeProguardMapping or autoUploadProguardMapping enabled? I can see those two does not exists en the SentryExtension for Android Gradle.

Thanks!

ArnauKokoro avatar Oct 10 '23 15:10 ArnauKokoro

These are options set for the Sentry Android Gradle Plugin which the Unity SDK does not rely on.

bitsandfoxes avatar Oct 11 '23 09:10 bitsandfoxes

Fixed by #1626

bitsandfoxes avatar Apr 29 '24 10:04 bitsandfoxes