This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
usage() | |
{ | |
# Display Help | |
echo "*********************************************************************************************************************************************************" | |
echo " MacOS Application Notarization Script" | |
echo "*********************************************************************************************************************************************************" | |
echo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Android.App; | |
using Android.Content; | |
using Android.Content.PM; | |
using Android.OS; | |
namespace AppLinksSample.Droid | |
{ | |
[Activity(Label = "AppLinksSample", Icon = "@mipmap/icon", Theme = "@style/MainTheme", | |
MainLauncher = true, | |
ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Xamarin.Forms; | |
using Xamarin.Forms.Xaml; | |
[assembly: XamlCompilation(XamlCompilationOptions.Compile)] | |
namespace AppLinksSample | |
{ | |
public partial class App : Application | |
{ | |
public App() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class NativeOverlayView : UIView | |
{ | |
bool showOverlay = true; | |
public bool ShowOverlay | |
{ | |
get { return showOverlay; } | |
set | |
{ | |
showOverlay = value; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private class StartupTaskSequencer : IStartupTaskSequencer | |
{ | |
public StartupTaskSequencer(Queue<IStartupTask> tasks) => _tasks = tasks; | |
public async Task StartAsync(IStartupTask task, IStartupTaskParameters parameters = null) | |
{ | |
parameters ??= StartupTaskParameters.None; | |
foreach (var next in _tasks.SkipWhile(x => x != task)) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class StartupPage : ContentPage, IStartupTask | |
{ | |
... | |
async Task<IStartupTaskParameters> IStartupTask.RunAsync(IStartupTaskParameters parameters) | |
{ | |
_tcs = new TaskCompletionSource<IStartupTaskParameters>(); | |
await OnStartAsync(parameters); | |
await App.Current.MainPage.Navigation.PushModalAsync(this); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IStartupTaskSequencer | |
{ | |
Task StartAsync(); | |
Task StartAsync(IStartupTask task, IStartupTaskParameters parameters = null); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public partial class LoginPage : StartupPage | |
{ | |
public ICommand NextCommand { get; } | |
public LoginPage() : base() | |
{ | |
InitializeComponent(); | |
NextCommand = new Command(async() => | |
{ | |
await CompleteAsync(new StartupTaskParameters() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public partial class HomePage : TabbedPage, IStartupTask | |
{ | |
public HomePage() | |
{ | |
InitializeComponent(); | |
} | |
public Task<bool> CanRunAsync() => Task.FromResult(true); | |
public async Task<IStartupTaskParameters> RunAsync(IStartupTaskParameters parameters) | |
{ |
NewerOlder