Use <AndroidNamespaceReplacement>
instead of metadata to rename namespaces.
#555
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.
Context: dotnet/android#6643
Context: dotnet/java-interop#727
Use
<AndroidNamespaceReplacement>
instead of Metadata to specify namespaces. This allows us to significantly cut down the amount of work needed to ensure proper namespaces.For example, all of the following lines are needed simply to correctly capitalize
AndroidX
:This can be replaced with:
Additionally add "standard" replacements for combined words that require special capitalization:
This ensures that these words are always capitalized consistently across all the packages in this repo.
Going forward, we will rarely need to manually handle new namespaces. We should only need to worry if a new combined-word namespace is added.
(This is why #558 is important, since we will not need to actively adjust every new namespace.)