React-native debug information files not uploaded by gradle

Hey there,

we just ejected to ExpoKit and installed @sentry/react-native. I walked through Manual Setup to verify the installation worked, but had to add the following to android/app/build.gradle myself:

project.ext.sentryCli = [
  logLevel: "debug"
]
apply from: "../../node_modules/@sentry/react-native/sentry.gradle"

While uploading dSYM for iOS works fine, I’m not getting any Debug Information Files uploaded for Android.
I’m neither particularly versed in react-native, android or gradle.

What am I missing here?

I’ve truncated the log to what seemed pertinent to sentry - see full output

➜  ./gradlew bundleRelease --console plain                                                                                  +? ✗ [git:build/daedalus]
Parallel execution with configuration on demand is an incubating feature.

> Configure project :@sentry_react-native
WARNING: The specified Android SDK Build Tools version (28.0.0) is ignored, as it is below the minimum supported version (28.0.3) for Android Gradle Plugin 3.3.2.
Android SDK Build Tools 28.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '28.0.0'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

> Configure project :app

…
> Task :@sentry_react-native:preBuild UP-TO-DATE
…
> Task :@sentry_react-native:preReleaseBuild UP-TO-DATE
>…
> Task :@sentry_react-native:compileReleaseAidl NO-SOURCE
…
> Task :@sentry_react-native:compileReleaseRenderscript UP-TO-DATE
…
> Task :@sentry_react-native:checkReleaseManifest UP-TO-DATE
…
> Task :@sentry_react-native:generateReleaseBuildConfig UP-TO-DATE
…
> Task :@sentry_react-native:generateReleaseResValues UP-TO-DATE
…
> Task :@sentry_react-native:generateReleaseResources UP-TO-DATE
…
> Task :@sentry_react-native:packageReleaseResources UP-TO-DATE
∞
> Task :@sentry_react-native:processReleaseManifest UP-TO-DATE
…
> Task :@sentry_react-native:generateReleaseRFile UP-TO-DATE
…
> Task :@sentry_react-native:prepareLintJar UP-TO-DATE
∞
> Task :@sentry_react-native:generateReleaseSources UP-TO-DATE
…
> Task :@sentry_react-native:javaPreCompileRelease UP-TO-DATE
…
> Task :@sentry_react-native:compileReleaseJavaWithJavac UP-TO-DATE
…
> Task :@sentry_react-native:processReleaseJavaRes NO-SOURCE
…
> Task :@sentry_react-native:transformClassesAndResourcesWithPrepareIntermediateJarsForRelease UP-TO-DATE
> Task :@sentry_react-native:packageReleaseRenderscript NO-SOURCE
…
> Task :@sentry_react-native:mergeReleaseShaders UP-TO-DATE
…
> Task :@sentry_react-native:compileReleaseShaders UP-TO-DATE
> Task :@sentry_react-native:generateReleaseAssets UP-TO-DATE
…
> Task :@sentry_react-native:packageReleaseAssets UP-TO-DATE
…
> Task :@sentry_react-native:mergeReleaseConsumerProguardFiles UP-TO-DATE
…
> Task :@sentry_react-native:compileReleaseNdk NO-SOURCE
…
> Task :@sentry_react-native:mergeReleaseJniLibFolders UP-TO-DATE
…
> Task :@sentry_react-native:transformNativeLibsWithMergeJniLibsForRelease UP-TO-DATE
…
> Task :@sentry_react-native:transformNativeLibsWithIntermediateJniLibsForRelease UP-TO-DATE
…

> Task :app:bundleReleaseResources
> Task :app:buildReleasePreBundle
> Task :app:packageReleaseBundle
> Task :app:bundleRelease

BUILD SUCCESSFUL in 1m 16s
539 actionable tasks: 12 executed, 527 up-to-date

For reference:

➜  ./gradlew --version

------------------------------------------------------------
Gradle 4.10.2
------------------------------------------------------------

Build time:   2018-09-19 18:10:15 UTC
Revision:     b4d8d5d170bb4ba516e88d7fe5647e2323d791dd

Kotlin DSL:   1.0-rc-6
Kotlin:       1.2.61
Groovy:       2.4.15
Ant:          Apache Ant(TM) version 1.9.11 compiled on March 23 2018
JVM:          1.8.0_181 (Oracle Corporation 25.181-b13)
OS:           Mac OS X 10.14.6 x86_64

➜  sentry-cli --version
sentry-cli 1.49.0

➜  grep version ../node_modules/@sentry/react-native/package.json
  "version": "1.1.0"

Kept that version of gradle as instructed by expo.

i guess I’m not getting anything uploaded because bundle*JsAndAssets is not a task I have:

bundle
bundleDebug
bundleDebugAndroidTestClasses
bundleDebugAndroidTestResources
bundleDebugClasses
bundleDebugExpoAssets
bundleDebugResources
bundleDebugUnitTestClasses
bundleRelease
bundleReleaseClasses
bundleReleaseExpoAssets
bundleReleaseResources
bundleReleaseUnitTestClasses

ok, solving this with https://github.com/getsentry/sentry-fastlane-plugin