Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle Configuration Cache #4252

Open
smellouk opened this issue Nov 8, 2024 · 0 comments
Open

Gradle Configuration Cache #4252

smellouk opened this issue Nov 8, 2024 · 0 comments

Comments

@smellouk
Copy link

smellouk commented Nov 8, 2024

What React Native libraries do you use?

React Native without Frameworks

Are you using sentry.io or on-premise?

sentry.io (SaS)

@sentry/react-native SDK Version

5.25.0

How does your development environment look like?

OS: mac-os
arch: arm64
react native: 0.74.3-0
hermes enabled: true

Sentry.init()

 sentry.init({
        dsn: sentryConfig.dsn,
        release: sentryConfig.release,
        enabled: sentryConfig.enabled,
        autoSessionTracking: false,
        ignoreErrors: [],
    });

Steps to Reproduce

  1. Export SENTRY_DISABLE_AUTO_UPLOAD=false
  2. Export SENTRY_AUTH_TOKEN=YOUR_TOKEN
  3. enable org.gradle.configuration-cache=true in gradle.properties
  4. set warn level for configuration cache problems org.gradle.unsafe.configuration-cache-problems=warn in gradle properties
  5. build release app apk or bundle ./gradlew assembleRelease

Expected Result

Building/Assembling APK or bundle tasks should succeed without error.

Actual Result

See the complete report at .../configuration-cache/arbf12exyse0x2d67zxpdnb38/e07xbrg4hyz0msuzuubqcqzuy/configuration-cache-report.html

FAILURE: Build failed with an exception.

* Where:
Script '.../node_modules/@sentry/react-native/sentry.gradle' line: 104

* What went wrong:
Could not evaluate onlyIf predicate for task ':app:createBundleReleaseJsAndAssets_SentryUpload_PACKAGE_ID@VERSION_NAME+VERSION_CODE'.
> Could not evaluate spec for 'Task satisfies onlyIf closure'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Waiting for: Product Owner
Status: Needs Discussion
Development

No branches or pull requests

1 participant