-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Deprecate autolink functionality to copy useWinUI3 flags from react-native.config.js into ExperimentalFeatures.props #14761
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
base: main
Are you sure you want to change the base?
Conversation
… react-native.config.js Co-authored-by: anupriya13 <54227869+anupriya13@users.noreply.github.com>
@copilot run |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
@copilot Completely remove the |
Co-authored-by: jonthysell <10852185+jonthysell@users.noreply.github.com>
I've completely removed the
The changes resulted in a net reduction of 260+ lines of code. The autolink functionality now focuses purely on generating autolink files for native modules without any XAML dialect management. Commit: 7ce01ee Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
/azp run PR |
Azure Pipelines successfully started running 1 pipeline(s). |
Summary
This PR removes the deprecated functionality in
ensureXAMLDialect()
that alloweduseWinUI3
values fromreact-native.config.js
to override values inExperimentalFeatures.props
. This feature was confusing, unnecessary, and causing test failures.Background
The
ensureXAMLDialect()
function previously had logic that:useWinUI3
fromreact-native.config.js
ExperimentalFeatures.props
This behavior was problematic because:
Changes Made
Core Logic Changes
ensureXAMLDialect()
function inautolinkWindows.ts
:useWinUI3FromConfig
variable and related logicExperimentalFeatures.props
ExperimentalFeatures.props
Test Updates
Removed failing tests in
autolink.test.ts
:ensureXAMLDialect - useWinUI3=true in react-native.config.js, useWinUI3=false in ExperimentalFeatures.props
ensureXAMLDialect - useWinUI3=false in react-native.config.js, useWinUI3=true in ExperimentalFeatures.props
Removed broken test in
projectConfig.test.ts
:Preserved Functionality
useWinUI3
setting inreact-native.config.js
remains available for other uses (e.g., project generation)ExperimentalFeatures.props
values directlyImpact
useWinUI3
usageTesting
The remaining tests verify that:
useWinUI3
is not specified in config, the function usesExperimentalFeatures.props
values directlyUseWinUI3=true
andUseWinUI3=false
in project filesFixes #14601.