From 7ddff81e1aff382e8169f62d781b8b716c67ef0c Mon Sep 17 00:00:00 2001 From: Seth Valdetero Date: Fri, 26 Jun 2015 15:25:08 -0500 Subject: [PATCH] Syntax clean up. Bumped version. --- SevenDays.Core/Services/AkavacheCacheService.cs | 4 ++-- SevenDays.Core/ViewModels/ServerListViewModel.cs | 8 +++++--- .../Properties/AndroidManifest.xml | 2 +- .../Properties/WMAppManifest.xml | 2 +- SevenDays.UI/SevenDays.UI.iOS/Info.plist | 12 ++++++++---- SevenDays.UI/SevenDays.UI/Templates/ServerCell.cs | 4 ++-- SevenDays.UI/SevenDays.UI/Views/ServerListPage.cs | 2 +- 7 files changed, 20 insertions(+), 14 deletions(-) diff --git a/SevenDays.Core/Services/AkavacheCacheService.cs b/SevenDays.Core/Services/AkavacheCacheService.cs index c953855..7881887 100644 --- a/SevenDays.Core/Services/AkavacheCacheService.cs +++ b/SevenDays.Core/Services/AkavacheCacheService.cs @@ -34,7 +34,7 @@ public async Task RemoveObject(string key) { return await BlobCache.LocalMachine.GetObject(key); } - catch (KeyNotFoundException exception) + catch (KeyNotFoundException) { return default(T); } @@ -52,7 +52,7 @@ public async Task> GetAllObjects() { return await BlobCache.LocalMachine.GetAllObjects(); } - catch (KeyNotFoundException exception) + catch (KeyNotFoundException) { return new List(); } diff --git a/SevenDays.Core/ViewModels/ServerListViewModel.cs b/SevenDays.Core/ViewModels/ServerListViewModel.cs index 4990de3..9b9c4b6 100644 --- a/SevenDays.Core/ViewModels/ServerListViewModel.cs +++ b/SevenDays.Core/ViewModels/ServerListViewModel.cs @@ -47,6 +47,7 @@ public async Task ExecuteGetServersCommand() Servers = new ObservableCollection(servers); } +/* private RelayCommand checkConnectivityCommand; public ICommand CheckConnectivityCommand { @@ -54,7 +55,7 @@ public ICommand CheckConnectivityCommand } [Insights] - public async Task ExecuteCheckConnectivityCommand() + public Task ExecuteCheckConnectivityCommand() { throw new NotImplementedException(); } @@ -66,7 +67,7 @@ public ICommand DeleteServerCommand } [Insights] - public async Task ExecuteDeleteServerCommand() + public Task ExecuteDeleteServerCommand() { throw new NotImplementedException(); } @@ -78,9 +79,10 @@ public ICommand AddServerCommand } [Insights] - public async Task ExecuteAddServerCommand() + public Task ExecuteAddServerCommand() { throw new NotImplementedException(); } +*/ } } diff --git a/SevenDays.UI/SevenDays.UI.Droid/Properties/AndroidManifest.xml b/SevenDays.UI/SevenDays.UI.Droid/Properties/AndroidManifest.xml index 257cfd8..8e735e4 100644 --- a/SevenDays.UI/SevenDays.UI.Droid/Properties/AndroidManifest.xml +++ b/SevenDays.UI/SevenDays.UI.Droid/Properties/AndroidManifest.xml @@ -1,5 +1,5 @@  - + diff --git a/SevenDays.UI/SevenDays.UI.WinPhone/Properties/WMAppManifest.xml b/SevenDays.UI/SevenDays.UI.WinPhone/Properties/WMAppManifest.xml index 16df11c..9e8bda7 100644 --- a/SevenDays.UI/SevenDays.UI.WinPhone/Properties/WMAppManifest.xml +++ b/SevenDays.UI/SevenDays.UI.WinPhone/Properties/WMAppManifest.xml @@ -1,7 +1,7 @@  - + Assets\Icon.png diff --git a/SevenDays.UI/SevenDays.UI.iOS/Info.plist b/SevenDays.UI/SevenDays.UI.iOS/Info.plist index 4a8dab3..239ebb4 100644 --- a/SevenDays.UI/SevenDays.UI.iOS/Info.plist +++ b/SevenDays.UI/SevenDays.UI.iOS/Info.plist @@ -25,17 +25,21 @@ CFBundleIdentifier com.sparkhound.SevenDays.UI CFBundleVersion - 1.0 + 1.3 CFBundleIconFiles Icon60@2x.png - Icon29@2x.png - Icon29@1x.png + Default.png + Default@2x.png + Default-568h@2x.png + Default-Portrait.png + Default-Portrait@2x.png Icon40@2x.png + Icon29@1x.png UILaunchStoryboardName LaunchScreen CFBundleShortVersionString - 1.1.0.0 + 1.3.0.0 diff --git a/SevenDays.UI/SevenDays.UI/Templates/ServerCell.cs b/SevenDays.UI/SevenDays.UI/Templates/ServerCell.cs index 533da20..59b12e9 100644 --- a/SevenDays.UI/SevenDays.UI/Templates/ServerCell.cs +++ b/SevenDays.UI/SevenDays.UI/Templates/ServerCell.cs @@ -16,7 +16,7 @@ public ServerCell() var favoriteAction = new MenuItem { Text = "Favorite" }; favoriteAction.SetBinding(MenuItem.CommandParameterProperty, new Binding(".")); favoriteAction.SetBinding(MenuItem.CommandProperty, x => x.SetDefaultCommand); - favoriteAction.Clicked += async (sender, e) => + favoriteAction.Clicked += (sender, e) => { var mi = (MenuItem)sender; var vm = (ServerViewModel)mi.CommandParameter; @@ -26,7 +26,7 @@ public ServerCell() var deleteAction = new MenuItem { Text = "Delete", IsDestructive = true }; deleteAction.SetBinding(MenuItem.CommandParameterProperty, new Binding(".")); deleteAction.SetBinding(MenuItem.CommandProperty, x => x.DeleteCommand); - deleteAction.Clicked += async (sender, e) => + deleteAction.Clicked += (sender, e) => { var mi = (MenuItem)sender; var vm = (ServerViewModel)mi.CommandParameter; diff --git a/SevenDays.UI/SevenDays.UI/Views/ServerListPage.cs b/SevenDays.UI/SevenDays.UI/Views/ServerListPage.cs index 17456c2..c33a771 100644 --- a/SevenDays.UI/SevenDays.UI/Views/ServerListPage.cs +++ b/SevenDays.UI/SevenDays.UI/Views/ServerListPage.cs @@ -63,7 +63,7 @@ protected override async void OnAppearing() await DependencyService.Get().Notify(ToastNotificationType.Warning, "No Favorite", "Please select a favorite", TimeSpan.FromSeconds(3)); } }); - MessagingCenter.Subscribe(this, "Favorite", async (sender, arg) => + MessagingCenter.Subscribe(this, "Favorite", (sender, arg) => { foreach (var server in ViewModel.Servers) {