diff --git a/Borepin/Borepin.Android/Borepin.Android.csproj b/Borepin/Borepin.Android/Borepin.Android.csproj index faed791..a6f3713 100644 --- a/Borepin/Borepin.Android/Borepin.Android.csproj +++ b/Borepin/Borepin.Android/Borepin.Android.csproj @@ -1,4 +1,4 @@ - + Debug @@ -78,6 +78,7 @@ + @@ -188,4 +189,4 @@ - + \ No newline at end of file diff --git a/Borepin/Borepin.Android/PlatformInitializer.cs b/Borepin/Borepin.Android/PlatformInitializer.cs index 3ef5cd9..7d8bdc6 100644 --- a/Borepin/Borepin.Android/PlatformInitializer.cs +++ b/Borepin/Borepin.Android/PlatformInitializer.cs @@ -1,5 +1,6 @@ using Borepin.Droid.Services; using Borepin.Service.Storage; +using Borepin.Service.Versioning; using Prism; using Prism.Ioc; @@ -11,6 +12,7 @@ namespace Borepin.Droid { containerRegistry.Register(); containerRegistry.Register(); + containerRegistry.Register(); } } } \ No newline at end of file diff --git a/Borepin/Borepin.Android/Services/VersioningService.cs b/Borepin/Borepin.Android/Services/VersioningService.cs new file mode 100644 index 0000000..17f2262 --- /dev/null +++ b/Borepin/Borepin.Android/Services/VersioningService.cs @@ -0,0 +1,30 @@ +using Borepin.Service.Versioning; +using Xamarin.Essentials; + +namespace Borepin.Droid.Services +{ + public class VersioningService : IVersioningService + { + #region Constructors + public VersioningService() + { + VersionTracking.Track(); + } + #endregion + public string CurrentBuild + { + get + { + return VersionTracking.CurrentBuild; + } + } + + public string CurrentVersion + { + get + { + return VersionTracking.CurrentVersion; + } + } + } +} \ No newline at end of file diff --git a/Borepin/Borepin.UWP/Borepin.UWP.csproj b/Borepin/Borepin.UWP/Borepin.UWP.csproj index ee66686..e344410 100644 --- a/Borepin/Borepin.UWP/Borepin.UWP.csproj +++ b/Borepin/Borepin.UWP/Borepin.UWP.csproj @@ -100,6 +100,7 @@ + diff --git a/Borepin/Borepin.UWP/PlatformInitializer.cs b/Borepin/Borepin.UWP/PlatformInitializer.cs index f82af1b..08027a6 100644 --- a/Borepin/Borepin.UWP/PlatformInitializer.cs +++ b/Borepin/Borepin.UWP/PlatformInitializer.cs @@ -2,6 +2,7 @@ using Prism; using Prism.Ioc; using Borepin.Service.Storage; +using Borepin.Service.Versioning; namespace Borepin.UWP { @@ -11,6 +12,7 @@ namespace Borepin.UWP { containerRegistry.Register(); containerRegistry.Register(); + containerRegistry.Register(); } } } diff --git a/Borepin/Borepin.UWP/Services/VersioningService.cs b/Borepin/Borepin.UWP/Services/VersioningService.cs new file mode 100644 index 0000000..1205e72 --- /dev/null +++ b/Borepin/Borepin.UWP/Services/VersioningService.cs @@ -0,0 +1,30 @@ +using Borepin.Service.Versioning; +using Xamarin.Essentials; + +namespace Borepin.UWP.Services +{ + public class VersioningService : IVersioningService + { + #region Constructors + public VersioningService() + { + VersionTracking.Track(); + } + #endregion + public string CurrentBuild + { + get + { + return VersionTracking.CurrentBuild; + } + } + + public string CurrentVersion + { + get + { + return VersionTracking.CurrentVersion; + } + } + } +} \ No newline at end of file diff --git a/Borepin/Borepin.iOS/Borepin.iOS.csproj b/Borepin/Borepin.iOS/Borepin.iOS.csproj index 5761e94..034aecc 100644 --- a/Borepin/Borepin.iOS/Borepin.iOS.csproj +++ b/Borepin/Borepin.iOS/Borepin.iOS.csproj @@ -1,4 +1,4 @@ - + true @@ -52,11 +52,13 @@ ARM64 true Entitlements.plist - SdkOnly - -all + None + + --optimize=experimental-xforms-product-type iPhone Developer + false none @@ -69,6 +71,9 @@ --optimize=experimental-xforms-product-type SdkOnly iPhone Distribution + + false + -all @@ -78,6 +83,7 @@ + @@ -198,4 +204,4 @@ - + \ No newline at end of file diff --git a/Borepin/Borepin.iOS/PlatformInitializer.cs b/Borepin/Borepin.iOS/PlatformInitializer.cs index 21dfdbc..ff22291 100644 --- a/Borepin/Borepin.iOS/PlatformInitializer.cs +++ b/Borepin/Borepin.iOS/PlatformInitializer.cs @@ -1,5 +1,6 @@ using Borepin.iOS.Services; using Borepin.Service.Storage; +using Borepin.Service.Versioning; using Prism; using Prism.Ioc; @@ -11,6 +12,7 @@ namespace Borepin.iOS { containerRegistry.Register(); containerRegistry.Register(); + containerRegistry.Register(); } } } \ No newline at end of file diff --git a/Borepin/Borepin.iOS/Services/VersioningService.cs b/Borepin/Borepin.iOS/Services/VersioningService.cs new file mode 100644 index 0000000..38411e1 --- /dev/null +++ b/Borepin/Borepin.iOS/Services/VersioningService.cs @@ -0,0 +1,30 @@ +using Borepin.Service.Versioning; +using Xamarin.Essentials; + +namespace Borepin.iOS.Services +{ + public class VersioningService : IVersioningService + { + #region Constructors + public VersioningService() + { + VersionTracking.Track(); + } + #endregion + public string CurrentBuild + { + get + { + return VersionTracking.CurrentBuild; + } + } + + public string CurrentVersion + { + get + { + return VersionTracking.CurrentVersion; + } + } + } +} \ No newline at end of file diff --git a/Borepin/Borepin/Borepin.csproj b/Borepin/Borepin/Borepin.csproj index 6e8e1a7..176986f 100644 --- a/Borepin/Borepin/Borepin.csproj +++ b/Borepin/Borepin/Borepin.csproj @@ -29,6 +29,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive + diff --git a/Borepin/Borepin/Converter/ListNotEmptyConverter.cs b/Borepin/Borepin/Converter/ListNotEmptyConverter.cs new file mode 100644 index 0000000..dc48d65 --- /dev/null +++ b/Borepin/Borepin/Converter/ListNotEmptyConverter.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections; +using System.Globalization; +using Xamarin.Forms; + +namespace Borepin.Converter +{ + public class ListNotEmptyConverter : IValueConverter + { + public object Convert(object value, Type targetType, object parameter, CultureInfo culture) + { + if(value != null && value is IList) + { + ICollection collection = value as ICollection; + return collection.Count > 0; + } + return false; + } + + public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) + { + throw new NotSupportedException(); + } + } +} diff --git a/Borepin/Borepin/Dialog/ConfirmDialog.xaml b/Borepin/Borepin/Dialog/ConfirmDialog.xaml index 116e979..aedfd2e 100644 --- a/Borepin/Borepin/Dialog/ConfirmDialog.xaml +++ b/Borepin/Borepin/Dialog/ConfirmDialog.xaml @@ -4,11 +4,11 @@ x:Class="Borepin.Dialog.ConfirmDialog" BackgroundColor="White"> - - diff --git a/Borepin/Borepin/Page/MainPage.xaml b/Borepin/Borepin/Page/MainPage.xaml index b39d289..539e2f5 100644 --- a/Borepin/Borepin/Page/MainPage.xaml +++ b/Borepin/Borepin/Page/MainPage.xaml @@ -4,10 +4,16 @@ x:Class="Borepin.Page.MainPage" Title="MainPage"> - - -