Skip to content

Create process to automatically generate AndroidManifest.xml attributes #8272

Description

@jpobst

Context: #8235

New API levels often add new AndroidManifest.xml elements that can be specified. We make these available to users as C# attributes, eg: [IntentFilter].

This requires updates to multiple files:
‎src/Mono.Android/Android.App/IntentFilterAttribute.cs
src/Xamarin.Android.Build.Tasks/Mono.Android/IntentFilterAttribute.Partial.cs

We have a script we can manually run to find any new manifest elements:
https://github.com/xamarin/xamarin-android/tree/main/build-tools/manifest-attribute-codegen

However, making the code changes is tedious and potentially error prone. It would be nice if we had a script we could run that would also automatically generate the needed code changes.

Example change:
#8261

Additionally there is some discussion about this process and undocumented attributes here: #1336

Related issue: #8729

Activity

  1. added
    enhancementProposed change to current functionality.
    Area: Mono.AndroidIssues with the Android API binding (Mono.Android.dll).
    on Aug 14, 2023
  2. added this to the .NET 9 Planning milestone on Aug 14, 2023
  3. self-assigned this
    on Aug 14, 2023
  4. locked and limited conversation to collaborators on Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Area: Mono.AndroidIssues with the Android API binding (Mono.Android.dll).enhancementProposed change to current functionality.

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions