Skip to content

Commit

Permalink
[Mono.Android] Add more android:directBootAware attribute support. (#192
Browse files Browse the repository at this point in the history
  • Loading branch information
atsushieno authored and jonpryor committed Aug 30, 2016
1 parent d5c277f commit c2f0e57
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ partial class ActivityAttribute {
"configChanges",
self => self.ConfigurationChanges,
(self, value) => self.ConfigurationChanges = (ConfigChanges) value
}, {
"DirectBootAware",
"directBootAware",
self => self.DirectBootAware,
(self, value) => self.DirectBootAware = (bool) value
}, {
"Enabled",
"enabled",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ partial class ApplicationAttribute {
"description",
self => self.Description,
(self, value) => self.Description = (string) value
}, {
"DirectBootAware",
"directBootAware",
self => self.DirectBootAware,
(self, value) => self.DirectBootAware = (bool) value
}, {
"Enabled",
"enabled",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ partial class ContentProviderAttribute {
"authorities",
(self, value) => self.Authorities = ToStringArray (value),
self => string.Join (";", self.Authorities)
}, {
"DirectBootAware",
"directBootAware",
self => self.DirectBootAware,
(self, value) => self.DirectBootAware = (bool) value
}, {
"Enabled",
"enabled",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ partial class ServiceAttribute {

static ManifestDocumentElement<ServiceAttribute> mapping = new ManifestDocumentElement<ServiceAttribute> ("service") {
{
"DirectBootAware",
"directBootAware",
self => self.DirectBootAware,
(self, value) => self.DirectBootAware = (bool) value
}, {
"Enabled",
"enabled",
self => self.Enabled,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ public ActivityAttribute ()
public bool AlwaysRetainTaskState {get; set;}
public bool ClearTaskOnLaunch {get; set;}
public ConfigChanges ConfigurationChanges {get; set;}
#if ANDROID_24
public bool DirectBootAware {get; set;}
#endif
public bool Enabled {get; set;}
public bool ExcludeFromRecents {get; set;}
public bool Exported {get; set;}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ public ApplicationAttribute ()
#endif
public bool Debuggable {get; set;}
public string Description {get; set;}
#if ANDROID_24
public bool DirectBootAware {get; set;}
#endif
public bool Enabled {get; set;}
#if ANDROID_23
public bool ExtractNativeLibs {get; set;}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ public ServiceAttribute ()

public string Name {get; set;}

#if ANDROID_24
public bool DirectBootAware {get; set;}
#endif
public bool Enabled {get; set;}
public bool Exported {get; set;}
public string Icon {get; set;}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ public ContentProviderAttribute (string[] authorities)
}

public string[] Authorities {get; private set;}
#if ANDROID_24
public bool DirectBootAware {get; set;}
#endif
public bool Enabled {get; set;}
public bool Exported {get; set;}
public bool GrantUriPermissions {get; set;}
Expand Down

0 comments on commit c2f0e57

Please sign in to comment.