Skip to content

Commit

Permalink
Updated nuspec for 1.2.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
xabre committed Sep 24, 2017
1 parent 05f56c5 commit a7a4d3e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .build/Plugin.Badge.nuspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>Plugin.Badge</id>
<version>1.2.0-beta3</version>
<version>1.2.0</version>
<title>Tab Badge for Xamarin.Forms</title>
<authors>Adrian Seceleanu</authors>
<owners>Adrian Seceleanu</owners>
Expand All @@ -14,6 +14,8 @@
<tags>xamarin xamarin.forms badge tab tabbar monodroid Xamarin.iOS uwp uap android ios</tags>
<iconUrl>https://raw.githubusercontent.com/xabre/xamarin-forms-tab-badge/master/icon_small.png</iconUrl>
<releaseNotes>
[1.2.0]
- #8 #20 #36 Bindable badge position for Android and UWP
[1.2.0-beta3]
- UAP ensure missing *.xr.xml is also copied.
[1.2.0-beta2]
Expand Down
11 changes: 5 additions & 6 deletions Source/Plugin.Badge.UWP/Converters/BadgePositionConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@ public class BadgePositionConverter : Windows.UI.Xaml.Data.IValueConverter
{
private static Dictionary<BadgePosition, bool[]> Alignments = new Dictionary<BadgePosition, bool[]>()
{
{BadgePosition.PositionBottomLeft, new[]{ false, false, true, true, false, false} },
{BadgePosition.PositionBottomRight, new[]{ true, false, true, false, false, false} },
{BadgePosition.PositionTopLeft, new[]{ false, true, false, true, false, false} },
{BadgePosition.PositionTopRight, new[]{ true, true, false, false, false, false} },
{BadgePosition.PositionCenter, new[]{ false, false, false, false, true, true} }

{ BadgePosition.PositionBottomLeft, new[] { false, false, true, true, false, false } },
{ BadgePosition.PositionBottomRight, new[] { true, false, true, false, false, false } },
{ BadgePosition.PositionTopLeft, new[] { false, true, false, true, false, false } },
{ BadgePosition.PositionTopRight, new[] { true, true, false, false, false, false } },
{ BadgePosition.PositionCenter, new[] { false, false, false, false, true, true } }
};

public object Convert(object value, Type targetType, object parameter, string language)
Expand Down

0 comments on commit a7a4d3e

Please sign in to comment.