Skip to content

nitpick pickfirst refactor#213

Draft
radoslawrolka wants to merge 4 commits intomainfrom
rolkrado/fix-pickfirst
Draft

nitpick pickfirst refactor#213
radoslawrolka wants to merge 4 commits intomainfrom
rolkrado/fix-pickfirst

Conversation

@radoslawrolka
Copy link
Collaborator

@radoslawrolka radoslawrolka commented Jan 15, 2026

📝 Description

Always add pickfirst if package is in project, so that prebuilds resolution works correctly

🎯 Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)

Copy link
Contributor

Copilot AI left a comment

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 fixes a bug where the configurePickFirsts function was checking against supportedPackages instead of projectPackages, causing pickFirst rules to not be applied for packages that are in the project but not yet supported by the prebuilds system. The fix ensures that pickFirst rules are correctly configured for all packages present in the project.

Changes:

  • Changed configurePickFirsts to use projectPackages instead of supportedPackages
  • Simplified the pickFirst configuration by replacing explicit architecture iteration with a wildcard pattern

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

radoslawrolka and others added 2 commits January 15, 2026 13:12
…o/tools/prebuilds/PrebuildsPlugin.kt

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@radoslawrolka radoslawrolka changed the title Rolkrado/fix pickfirst nitpick pickfirst refactor Jan 21, 2026
Copy link
Member

@kmagiera kmagiera left a comment

Choose a reason for hiding this comment

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

Why is this needed? I understand we need pickfirst because reanimated aars have libworklets. But in that instance the solutions should be to not distribute libworklets with reanimated. The PR description should mention the motivation for this change

@radoslawrolka radoslawrolka marked this pull request as draft February 2, 2026 09:04
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.

3 participants