Skip to content
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

[Xamarin.Android.Build.Tasks] Make manifestmerger.jar the default. #8392

Merged
merged 3 commits into from
Oct 9, 2023

Conversation

dellis1972
Copy link
Contributor

Context #8387

The value for AndroidManifestMerger should be updated to be manifestmerger.jar. This allows users to make use of the new features like AndroidManifestOverlay out of the box.

The old system is still available, the users will need to add the following to their csproj.

<AndroidManifestMerger>legacy</AndroidManifestMerger>

Context xamarin#8387

The value for `AndroidManifestMerger` should be updated to
be `manifestmerger.jar`. This allows users to make use of
the new features like `AndroidManifestOverlay` out of the box.

The old system is still available, the users will need to
add the following to their csproj.

```
<AndroidManifestMerger>legacy</AndroidManifestMerger>
```
Copy link
Member

@jonathanpeppers jonathanpeppers left a comment

Choose a reason for hiding this comment

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

It might be worth mentioning somewhere in the final commit message that AndroidX NuGets have been doing this for some time:

https://github.com/xamarin/AndroidX/blob/bf6eee9c60b1eda8bc161eba1626fdef29ce2f2e/source/AndroidXTargets.cshtml#L33

I don't think parts of AndroidX would even work without this. Should be fine to do in our .targets, too.

@jonpryor jonpryor merged commit c6d5025 into xamarin:main Oct 9, 2023
44 of 47 checks passed
@dellis1972 dellis1972 deleted the manifestmerger branch October 10, 2023 09:15
jonathanpeppers pushed a commit that referenced this pull request Oct 10, 2023
…8392)

Context: #8387

Context: 2c6f5cd
Context: f7ea4a3
Context: d794534

Update the value for `$(AndroidManifestMerger)` (f7ea4a3) to
`manifestmerger.jar`.  This allows users to make use of the new
features like `@(AndroidManifestOverlay)` (d794534) out of the box.

The old system is still available, users will need to add the
following to their csproj:

	<AndroidManifestMerger>legacy</AndroidManifestMerger>

AndroidX has been building with
`$(AndroidManifestMerger)`=manifestmerger.jar for
[over three years][0].

[0]: xamarin/AndroidX@c6c0e50
grendello added a commit to grendello/xamarin-android that referenced this pull request Oct 10, 2023
* main:
  [Xamarin.Android.Build.Tasks] Add support for $(AndroidEnableObsoleteOverrideInheritance). (xamarin#8393)
  [Xamarin.Android.Build.Tasks] Make manifestmerger.jar the default. (xamarin#8392)
jonathanpeppers pushed a commit that referenced this pull request Oct 17, 2023
…8392)

Context: #8387

Context: 2c6f5cd
Context: f7ea4a3
Context: d794534

Update the value for `$(AndroidManifestMerger)` (f7ea4a3) to
`manifestmerger.jar`.  This allows users to make use of the new
features like `@(AndroidManifestOverlay)` (d794534) out of the box.

The old system is still available, users will need to add the
following to their csproj:

	<AndroidManifestMerger>legacy</AndroidManifestMerger>

AndroidX has been building with
`$(AndroidManifestMerger)`=manifestmerger.jar for
[over three years][0].

[0]: xamarin/AndroidX@c6c0e50
@github-actions github-actions bot locked and limited conversation to collaborators Jan 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants