Skip to content

Update to v1.2.0 breaking Android build #378

Description

@euc-callum

Describe what happened

Since updating to v1.2.0 we've seen Android builds failing with the below error:

[stderr] 1: Task failed with an exception.
[stderr] -----------
[stderr] * Where:
[stderr] Script '/home/expo/workingdir/build/node_modules/@datadog/mobile-react-native/datadog-sourcemaps.gradle' line: 83
[stderr] * What went wrong:
[stderr] Execution failed for task ':app:uploadReleaseSourcemaps'.
[stderr] > JS bundle file doesn't exist, aborting upload.

I suspect this is related to the included changes modifying how the bundle is located.

We've mitigated this by disabling uploads for Android builds via the following configuration:

androidProguardMappingFiles: false,
androidSourcemaps: false,

Steps to reproduce the issue:

  • Update to v.1.2.0
  • Ensure Android uploads are enabled
  • Run a build with Gradle 7.5.1

Describe what you expected:

  • A successful build with bundle/source maps uploaded to DataDog

Additional context

Versions: Expo SDK 47, React Native 0.70

  • Version of the SDK
  • package.json
  • Podfile and Podfile.lock
  • android/build.gradle and android/app/build.gradle

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions