Skip to content

Settings for assembly definitions and native binaries include all platforms #1962

Closed
@AndrewCarvalho

Description

@AndrewCarvalho

Environment

How do you use Sentry?
Unknown, not relevant

Which version of the SDK?
Unknown, not relevant

How did you install the package?
Git url

Which version of Unity?
2021.3.38

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

Steps to Reproduce

  1. Build for an unsupported platform (Most platforms, error was first found on PS5)
  2. Run the build until something is logged by sentry

Expected Result

Sentry assemblies should not be included or have empty stubs for unsupported platforms

Actual Result

Runtime errors when trying to call into sentry methods.

Solution

Due to git packages not being editable, The default settings where assemblies are included for all platforms by default can't be changed without embedding the package into the project.

Ideally, the assemblies should not have All Platforms enabled and instead only enable explicitly supported platforms.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    • Status

      Done
    • Status

      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions