Skip to content

Commit

Permalink
Uno.Permission: deprecate all members
Browse files Browse the repository at this point in the history
A fork of this package (Fuse.Android.Permissions) is being merged into
Fuselibs (fuse-open/fuselibs#1387).

Please move to that package instead.
  • Loading branch information
mortend committed Dec 26, 2020
1 parent 441975d commit 90ac3a6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Uno.Permissions/Permissions.uno
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ using Uno.Compiler.ExportTargetInterop.Android;

namespace Uno.Permissions
{
[Obsolete("Please use Fuse.Android.Permissions.PlatformPermission (fuselibs) instead.")]
public struct PlatformPermission
{
public readonly string Name;
Expand All @@ -16,12 +17,14 @@ namespace Uno.Permissions
}
}

[Obsolete("Please use Fuse.Android.Permissions.IPermissionPromise (fuselibs) instead.")]
interface IPermissionPromise
{
void Resolve();
void Reject(Exception e);
}

[Obsolete("Please use Fuse.Android.Permissions.PermissionPromise (fuselibs) instead.")]
class PermissionPromise : Promise<PlatformPermission>, IPermissionPromise
{
PlatformPermission _permission;
Expand All @@ -36,6 +39,7 @@ namespace Uno.Permissions
}
}

[Obsolete("Please use Fuse.Android.Permissions.PermissionsPromise (fuselibs) instead.")]
class PermissionsPromise : Promise<PlatformPermission[]>, IPermissionPromise
{
PlatformPermission[] _permissions;
Expand All @@ -50,6 +54,7 @@ namespace Uno.Permissions
}
}

[Obsolete("Please use Fuse.Android.Permissions.Permissions (fuselibs) instead.")]
public static extern(android) class Permissions
{

Expand Down Expand Up @@ -274,6 +279,7 @@ namespace Uno.Permissions
}
}

[Obsolete("Please use Fuse.Android.Permissions.Permissions (fuselibs) instead.")]
public static extern(!android) class Permissions
{
public static bool ShouldShowInformation(PlatformPermission x)
Expand Down

0 comments on commit 90ac3a6

Please sign in to comment.