Repository navigation
build: stop exposing internals to production packages - #566
Merged
Merged
Conversation
- Remove the InternalsVisibleTo grants from ReactiveUI.Binding to the platform packages and from the generators to the code fixes. - Compile the stateless helpers and polyfills the platform packages use into each of them with linked sources.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #566 +/- ##
=======================================
Coverage 99.09% 99.09%
=======================================
Files 487 487
Lines 19275 19275
Branches 2903 2903
=======================================
Hits 19100 19100
Misses 175 175 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



What changed
ReactiveUI.BindingandReactiveUI.Binding.Reactiveno longer grantInternalsVisibleToto the platform packages (Wpf, WinForms, Maui, Avalonia and Uno, plain and Reactive). The Roslyn 4.8, 4.14 and 5.0 generator builds no longer grant it toReactiveUI.SourceGenerators.Analyzers.CodeFixes. Only test projects see internals.ArgumentExceptionHelperand the nullability, trimming andIsExternalInitpolyfill attributes fromReactiveUI.Binding.Shared. Each package now compiles the files it needs with<Compile Include Link>. None of them holds state.InternalsVisibleToassembly attribute lines. No type or member changes.Verification
dotnet build ReactiveUI.SourceGenerators.slnxon Linux and on Windows (every target framework): 0 errors.dotnet test --solution ReactiveUI.SourceGenerators.slnx: 14,538 passed, 0 failed.