Bug 52862 - AndroidManifest lookup for aar binding projects
Summary: AndroidManifest lookup for aar binding projects
Status: CONFIRMED
Alias: None
Product: Android
Classification: Xamarin
Component: Bindings ()
Version: 7.1 (C9)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Atsushi Eno
URL:
Depends on:
Blocks:
 
Reported: 2017-02-27 19:46 UTC by max.delgiudice
Modified: 2017-06-27 17:32 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 52862 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description max.delgiudice 2017-02-27 19:46:42 UTC
It seems that .aar binding projects do not pull in the source library's AndroidManifest automatically. We currently have to manually build the AndroidManifest through a series of attribute declarations -- i.e., we have several classes in the Additions folder that exist purely to generate the library's manifest. For example:

```
[Android.Runtime.Preserve (AllMembers = true)]
[BroadcastReceiver (Exported = true, Permission = "com.google.android.c2dm.permission.SEND")]
[IntentFilter (new[]{"com.google.android.c2dm.intent.RECEIVE", "com.google.android.c2dm.intent.REGISTRATION"}, 
        Categories = new[]{"@PACKAGE_NAME@"})]
public partial class GcmPushReceiver
{
 
}
```

I'm wondering whether there is any intention to automate this. It seems like the final comment on this ticket noted it as a wishlist item, but that was 2 years ago: https://bugzilla.xamarin.com/show_bug.cgi?id=22943
Comment 1 Jon Douglas [MSFT] 2017-05-01 21:41:44 UTC
Potentially related:

https://bugzilla.xamarin.com/show_bug.cgi?id=52857
Comment 2 Tom Opgenorth 2017-06-27 17:32:36 UTC
This does seem to be related to 52857 (and other questions about "advanced" AndroidManifest.XML merging), so marking this as CONFIRMED.