Skip to content

fix: brownfield Gradle Plugin not to depend on *UpdatesResources task from expo-updates if absent#401

Open
artus9033 wants to merge 5 commits into
mainfrom
fix/expo-updates-bgp
Open

fix: brownfield Gradle Plugin not to depend on *UpdatesResources task from expo-updates if absent#401
artus9033 wants to merge 5 commits into
mainfrom
fix/expo-updates-bgp

Conversation

@artus9033

Copy link
Copy Markdown
Collaborator

Summary

If using Expo and expo-updates is absent, the following error will be thrown:

■  * What went wrong:
│  Could not determine the dependencies of task ':brownfieldlib:preReleaseBuild'.
│  > Task with path ':app:createReleaseUpdatesResources' not found in project ':brownfieldlib'.

The solution is to depend on it only if it exists to cover use cases without expo-updates.

@artus9033 artus9033 requested review from hurali97 and krozniata June 25, 2026 20:29
@artus9033 artus9033 self-assigned this Jun 25, 2026
Copilot AI review requested due to automatic review settings June 25, 2026 20:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Brownfield Gradle plugin to avoid hard-depending on Expo Updates’ *UpdatesResources task when that task is not present, preventing Gradle task dependency resolution failures in Expo projects that don’t include expo-updates.

Changes:

  • Make the plugin’s dependency on create<Variant>UpdatesResources conditional on the task actually existing.
  • Bump the Brownfield Gradle plugin version (and related snapshot/version references) from 2.0.0-alpha02 to 2.0.0-alpha03.
  • Add a changeset entry for the patch and update release-notes test fixtures for the new version tag.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
scripts/tests/generate-brownfield-gradle-plugin-release-notes.test.ts Updates prerelease tag fixture and formatting to reflect the new alpha version.
packages/react-native-brownfield/src/expo-config-plugin/android/utils/constants.ts Bumps the referenced Gradle plugin version used by the Expo config plugin.
gradle-plugins/react/brownfield/src/main/kotlin/com/callstack/react/brownfield/processors/VariantTaskProvider.kt Makes the *UpdatesResources dependency conditional to handle absence of expo-updates.
gradle-plugins/react/brownfield/gradle.properties Bumps the Gradle plugin’s published version to 2.0.0-alpha03.
apps/scripts/prepare-android-build-gradle-for-ci.ts Updates the snapshot version used for CI gradle preparation.
apps/RNApp/android/build.gradle Updates the classpath snapshot version reference.
.changeset/fair-swans-remain.md Adds a changeset documenting the fix as a patch.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants