Bug 7865 - Add UsesFeatureAttribute to generate AndroidManifest.xml /manifest/uses-feature element
Summary: Add UsesFeatureAttribute to generate AndroidManifest.xml /manifest/uses-featu...
Alias: None
Product: Android
Classification: Xamarin
Component: BCL Class Libraries (show other bugs)
Version: 4.2.x
Hardware: PC Mac OS
: --- enhancement
Target Milestone: ---
Assignee: dean.ellis
Depends on:
Reported: 2012-10-16 11:22 UTC by Jonathan Pryor
Modified: 2012-11-13 11:38 UTC (History)
3 users (show)

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


Description Jonathan Pryor 2012-10-16 11:22:46 UTC
Add UsesFeatureAttribute to generate AndroidManifest.xml /manifest/uses-feature element.
Comment 2 dean.ellis 2012-11-06 13:44:32 UTC
Fixed in master/cf0f2d75e9
Comment 3 dean.ellis 2012-11-08 07:26:47 UTC
The UsesFeatureAttribute has been added to allow users
to use the following code in the AssemblyInfo.cs

[assembly: UsesFeature("android.hardware.bluetooth")]
[assembly: UsesFeature(GLESVersion=0x00020000)]

This will generate the appropriate uses-feature element
in the AndroidManifest.xml

It also supports the Required parameter above API Level 7

[assembly: UsesFeature("android.hardware.bluetooth", Required=true)]
[assembly: UsesFeature(GLESVersion=0x00020000, Required=true)]

Note You need to log in before you can comment on or make changes to this bug.