mirror of
https://github.com/bitwarden/android.git
synced 2025-01-08 17:27:39 +03:00
75ed72f91b
* WIP Add Share app extension on iOS for Send * Added Share app extension on iOS for Send and some code fixes as well * Updated iOS csprojs configs to linkskip the new extension project and also added AdHoc and AppStore configurations to iOS.ShareExtension.csproj * Code clean up and transformed bundle resources into links to the already used pngs of the main iOS project on ShareExtension * Updated build.yml to include provisioning profile for iOS Share extension * Adding in the missing provisioning profile * Removed .DS_Store from the iOS.ShareExtension csproj Resources * switching out the share extension profile * Added Share extension provisioning profile configuration on export options app store for github and also removed custom info.plist config for localhost which is not necessary Co-authored-by: Joseph Flinn <joseph.s.flinn@gmail.com>
27 lines
888 B
C#
27 lines
888 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Bit.Core.Utilities
|
|
{
|
|
public static class TaskExtensions
|
|
{
|
|
/// <summary>
|
|
/// Fires a task and ignores any exception.
|
|
/// See http://stackoverflow.com/a/22864616/344182
|
|
/// </summary>
|
|
/// <param name="task">The task to be forgotten.</param>
|
|
/// <param name="onException">Action to be called on exception.</param>
|
|
public static async void FireAndForget(this Task task, Action<Exception> onException = null)
|
|
{
|
|
try
|
|
{
|
|
await task.ConfigureAwait(false);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
onException?.Invoke(ex);
|
|
// TODO: Add app center exception handling in here, but we have to check whether we can add the AppCenter package to Core
|
|
}
|
|
}
|
|
}
|
|
}
|