From 8e9c1f1201eb7b19d774f407b63cd25653339550 Mon Sep 17 00:00:00 2001 From: Aaron Faber <aaron.faber@ovoenergy.com> Date: Mon, 8 Jul 2019 15:36:05 +0100 Subject: [PATCH] BREAKING CHANGE: remove old wp8 platform, no longer supported --- src/wp8/FileOpener2.cs | 43 ------------------------------------------ 1 file changed, 43 deletions(-) delete mode 100644 src/wp8/FileOpener2.cs diff --git a/src/wp8/FileOpener2.cs b/src/wp8/FileOpener2.cs deleted file mode 100644 index b19604d..0000000 --- a/src/wp8/FileOpener2.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using System.Threading.Tasks; -using System.Windows; -using System.Windows.Controls; -using Microsoft.Phone.Controls; -using System.Windows.Controls.Primitives; -using System.Windows.Media; -using Windows.Storage; -using System.Diagnostics; -using System.IO; - -namespace WPCordovaClassLib.Cordova.Commands -{ - public class FileOpener2 : BaseCommand - { - - public async void open(string options) - { - string[] args = JSON.JsonHelper.Deserialize<string[]>(options); - - string aliasCurrentCommandCallbackId = args[2]; - - try - { - // Get the file. - StorageFile file = await Windows.Storage.StorageFile.GetFileFromPathAsync(args[0]); - - // Launch the bug query file. - await Windows.System.Launcher.LaunchFileAsync(file); - - DispatchCommandResult(new PluginResult(PluginResult.Status.OK), aliasCurrentCommandCallbackId); - } - catch (FileNotFoundException) - { - DispatchCommandResult(new PluginResult(PluginResult.Status.IO_EXCEPTION), aliasCurrentCommandCallbackId); - } - catch (Exception) - { - DispatchCommandResult(new PluginResult(PluginResult.Status.ERROR), aliasCurrentCommandCallbackId); - } - } - } -} \ No newline at end of file