├── .gitattributes
├── SimpleApp
├── SimpleApp
│ ├── AssemblyInfo.cs
│ ├── Models
│ │ └── Item.cs
│ ├── ViewModels
│ │ ├── ItemDetailViewModel.cs
│ │ ├── AboutViewModel.cs
│ │ ├── ItemsViewModel.cs
│ │ └── BaseViewModel.cs
│ ├── Services
│ │ ├── IDataStore.cs
│ │ └── MockDataStore.cs
│ ├── Views
│ │ ├── MainPage.xaml.cs
│ │ ├── AboutPage.xaml.cs
│ │ ├── LoginPage.xaml.cs
│ │ ├── ItemDetailPage.xaml
│ │ ├── LoginPage.xaml
│ │ ├── ItemDetailPage.xaml.cs
│ │ ├── NewItemPage.xaml.cs
│ │ ├── NewItemPage.xaml
│ │ ├── ItemsPage.xaml.cs
│ │ ├── MainPage.xaml
│ │ ├── ItemsPage.xaml
│ │ └── AboutPage.xaml
│ ├── SimpleApp.csproj
│ ├── App.xaml.cs
│ └── App.xaml
├── SimpleApp.iOS
│ ├── Resources
│ │ ├── Default.png
│ │ ├── tab_feed.png
│ │ ├── Default@2x.png
│ │ ├── tab_about.png
│ │ ├── tab_feed@2x.png
│ │ ├── tab_feed@3x.png
│ │ ├── tab_about@2x.png
│ │ ├── tab_about@3x.png
│ │ ├── xamarin_logo.png
│ │ ├── Default-568h@2x.png
│ │ ├── Default-Portrait.png
│ │ ├── xamarin_logo@2x.png
│ │ ├── xamarin_logo@3x.png
│ │ ├── Default-Portrait@2x.png
│ │ └── LaunchScreen.storyboard
│ ├── Assets.xcassets
│ │ └── AppIcon.appiconset
│ │ │ ├── Icon20.png
│ │ │ ├── Icon29.png
│ │ │ ├── Icon40.png
│ │ │ ├── Icon58.png
│ │ │ ├── Icon60.png
│ │ │ ├── Icon76.png
│ │ │ ├── Icon80.png
│ │ │ ├── Icon87.png
│ │ │ ├── Icon1024.png
│ │ │ ├── Icon120.png
│ │ │ ├── Icon152.png
│ │ │ ├── Icon167.png
│ │ │ ├── Icon180.png
│ │ │ └── Contents.json
│ ├── Entitlements.plist
│ ├── Main.cs
│ ├── AppDelegate.cs
│ ├── Info.plist
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ └── SimpleApp.iOS.csproj
├── SimpleApp.Android
│ ├── Resources
│ │ ├── mipmap-hdpi
│ │ │ ├── icon.png
│ │ │ └── launcher_foreground.png
│ │ ├── mipmap-mdpi
│ │ │ ├── icon.png
│ │ │ └── launcher_foreground.png
│ │ ├── mipmap-xhdpi
│ │ │ ├── icon.png
│ │ │ └── launcher_foreground.png
│ │ ├── mipmap-xxhdpi
│ │ │ ├── icon.png
│ │ │ └── launcher_foreground.png
│ │ ├── mipmap-xxxhdpi
│ │ │ ├── icon.png
│ │ │ └── launcher_foreground.png
│ │ ├── drawable
│ │ │ └── xamarin_logo.png
│ │ ├── mipmap-anydpi-v26
│ │ │ ├── icon.xml
│ │ │ └── icon_round.xml
│ │ ├── values
│ │ │ ├── colors.xml
│ │ │ └── styles.xml
│ │ ├── layout
│ │ │ ├── Toolbar.xml
│ │ │ └── Tabbar.xml
│ │ └── AboutResources.txt
│ ├── Properties
│ │ ├── AndroidManifest.xml
│ │ └── AssemblyInfo.cs
│ ├── Assets
│ │ └── AboutAssets.txt
│ ├── MainActivity.cs
│ └── SimpleApp.Android.csproj
└── SimpleApp.sln
├── SimpleApp.Appium.Core
├── SimpleApp.Appium.Core.csproj
├── TestMainPage_iOS.cs
├── TestMainPage_Droid.cs
├── AppiumTest.cs
└── TestMainPage.cs
├── README.md
└── .gitignore
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using Xamarin.Forms.Xaml;
2 |
3 | [assembly: XamlCompilation(XamlCompilationOptions.Compile)]
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.iOS/Resources/Default.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.iOS/Resources/Default.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.iOS/Resources/tab_feed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.iOS/Resources/tab_feed.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.iOS/Resources/Default@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.iOS/Resources/Default@2x.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.iOS/Resources/tab_about.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.iOS/Resources/tab_about.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.iOS/Resources/tab_feed@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.iOS/Resources/tab_feed@2x.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.iOS/Resources/tab_feed@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.iOS/Resources/tab_feed@3x.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.iOS/Resources/tab_about@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.iOS/Resources/tab_about@2x.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.iOS/Resources/tab_about@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.iOS/Resources/tab_about@3x.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.iOS/Resources/xamarin_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.iOS/Resources/xamarin_logo.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.iOS/Resources/Default-568h@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.iOS/Resources/Default-568h@2x.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.iOS/Resources/Default-Portrait.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.iOS/Resources/Default-Portrait.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.iOS/Resources/xamarin_logo@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.iOS/Resources/xamarin_logo@2x.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.iOS/Resources/xamarin_logo@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.iOS/Resources/xamarin_logo@3x.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.Android/Resources/mipmap-hdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.Android/Resources/mipmap-hdpi/icon.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.Android/Resources/mipmap-mdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.Android/Resources/mipmap-mdpi/icon.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.Android/Resources/mipmap-xhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.Android/Resources/mipmap-xhdpi/icon.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.iOS/Resources/Default-Portrait@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.iOS/Resources/Default-Portrait@2x.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.Android/Resources/mipmap-xxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.Android/Resources/mipmap-xxhdpi/icon.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.Android/Resources/mipmap-xxxhdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.Android/Resources/mipmap-xxxhdpi/icon.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.Android/Resources/drawable/xamarin_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.Android/Resources/drawable/xamarin_logo.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.iOS/Assets.xcassets/AppIcon.appiconset/Icon20.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.iOS/Assets.xcassets/AppIcon.appiconset/Icon20.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.iOS/Assets.xcassets/AppIcon.appiconset/Icon29.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.iOS/Assets.xcassets/AppIcon.appiconset/Icon29.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.iOS/Assets.xcassets/AppIcon.appiconset/Icon40.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.iOS/Assets.xcassets/AppIcon.appiconset/Icon40.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.iOS/Assets.xcassets/AppIcon.appiconset/Icon58.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.iOS/Assets.xcassets/AppIcon.appiconset/Icon58.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.iOS/Assets.xcassets/AppIcon.appiconset/Icon60.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.iOS/Assets.xcassets/AppIcon.appiconset/Icon60.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.iOS/Assets.xcassets/AppIcon.appiconset/Icon76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.iOS/Assets.xcassets/AppIcon.appiconset/Icon76.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.iOS/Assets.xcassets/AppIcon.appiconset/Icon80.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.iOS/Assets.xcassets/AppIcon.appiconset/Icon80.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.iOS/Assets.xcassets/AppIcon.appiconset/Icon87.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.iOS/Assets.xcassets/AppIcon.appiconset/Icon87.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.iOS/Assets.xcassets/AppIcon.appiconset/Icon1024.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.iOS/Assets.xcassets/AppIcon.appiconset/Icon1024.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.iOS/Assets.xcassets/AppIcon.appiconset/Icon120.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.iOS/Assets.xcassets/AppIcon.appiconset/Icon120.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.iOS/Assets.xcassets/AppIcon.appiconset/Icon152.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.iOS/Assets.xcassets/AppIcon.appiconset/Icon152.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.iOS/Assets.xcassets/AppIcon.appiconset/Icon167.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.iOS/Assets.xcassets/AppIcon.appiconset/Icon167.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.iOS/Assets.xcassets/AppIcon.appiconset/Icon180.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.iOS/Assets.xcassets/AppIcon.appiconset/Icon180.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.Android/Resources/mipmap-hdpi/launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.Android/Resources/mipmap-hdpi/launcher_foreground.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.Android/Resources/mipmap-mdpi/launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.Android/Resources/mipmap-mdpi/launcher_foreground.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.Android/Resources/mipmap-xhdpi/launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.Android/Resources/mipmap-xhdpi/launcher_foreground.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.Android/Resources/mipmap-xxhdpi/launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.Android/Resources/mipmap-xxhdpi/launcher_foreground.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.Android/Resources/mipmap-xxxhdpi/launcher_foreground.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/rogerwcpt/xamarinforms-appium-test/HEAD/SimpleApp/SimpleApp.Android/Resources/mipmap-xxxhdpi/launcher_foreground.png
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.iOS/Entitlements.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp/Models/Item.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace SimpleApp.Models
4 | {
5 | public class Item
6 | {
7 | public string Id { get; set; }
8 | public string Text { get; set; }
9 | public string Description { get; set; }
10 | }
11 | }
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.Android/Resources/mipmap-anydpi-v26/icon.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.Android/Resources/mipmap-anydpi-v26/icon_round.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.Android/Resources/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #FFFFFF
4 | #3F51B5
5 | #303F9F
6 | #FF4081
7 |
8 |
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp/ViewModels/ItemDetailViewModel.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | using SimpleApp.Models;
4 |
5 | namespace SimpleApp.ViewModels
6 | {
7 | public class ItemDetailViewModel : BaseViewModel
8 | {
9 | public Item Item { get; set; }
10 | public ItemDetailViewModel(Item item = null)
11 | {
12 | Title = item?.Text;
13 | Item = item;
14 | }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.Android/Resources/layout/Toolbar.xml:
--------------------------------------------------------------------------------
1 |
9 |
10 |
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.Android/Properties/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp/Services/IDataStore.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Threading.Tasks;
4 |
5 | namespace SimpleApp.Services
6 | {
7 | public interface IDataStore
8 | {
9 | Task AddItemAsync(T item);
10 | Task UpdateItemAsync(T item);
11 | Task DeleteItemAsync(string id);
12 | Task GetItemAsync(string id);
13 | Task> GetItemsAsync(bool forceRefresh = false);
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp/ViewModels/AboutViewModel.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Windows.Input;
3 |
4 | using Xamarin.Forms;
5 |
6 | namespace SimpleApp.ViewModels
7 | {
8 | public class AboutViewModel : BaseViewModel
9 | {
10 | public AboutViewModel()
11 | {
12 | Title = "About";
13 |
14 | OpenWebCommand = new Command(() => Device.OpenUri(new Uri("https://xamarin.com/platform")));
15 | }
16 |
17 | public ICommand OpenWebCommand { get; }
18 | }
19 | }
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp/Views/MainPage.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.ComponentModel;
3 | using Xamarin.Forms;
4 | using Xamarin.Forms.Xaml;
5 |
6 | namespace SimpleApp.Views
7 | {
8 | // Learn more about making custom code visible in the Xamarin.Forms previewer
9 | // by visiting https://aka.ms/xamarinforms-previewer
10 | [DesignTimeVisible(false)]
11 | public partial class MainPage : TabbedPage
12 | {
13 | public MainPage()
14 | {
15 | InitializeComponent();
16 | }
17 | }
18 | }
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp/Views/AboutPage.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.ComponentModel;
3 | using Xamarin.Forms;
4 | using Xamarin.Forms.Xaml;
5 |
6 | namespace SimpleApp.Views
7 | {
8 | // Learn more about making custom code visible in the Xamarin.Forms previewer
9 | // by visiting https://aka.ms/xamarinforms-previewer
10 | [DesignTimeVisible(false)]
11 | public partial class AboutPage : ContentPage
12 | {
13 | public AboutPage()
14 | {
15 | InitializeComponent();
16 | }
17 | }
18 | }
--------------------------------------------------------------------------------
/SimpleApp.Appium.Core/SimpleApp.Appium.Core.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netcoreapp2.1
5 |
6 | false
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.iOS/Main.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 |
5 | using Foundation;
6 | using UIKit;
7 |
8 | namespace SimpleApp.iOS
9 | {
10 | public class Application
11 | {
12 | // This is the main entry point of the application.
13 | static void Main(string[] args)
14 | {
15 | // if you want to use a different Application Delegate class from "AppDelegate"
16 | // you can specify it here.
17 | UIApplication.Main(args, null, "AppDelegate");
18 | }
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.Android/Resources/layout/Tabbar.xml:
--------------------------------------------------------------------------------
1 |
2 |
12 |
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp/Views/LoginPage.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | using Xamarin.Forms;
8 | using Xamarin.Forms.Xaml;
9 |
10 | namespace SimpleApp.Views
11 | {
12 | [XamlCompilation(XamlCompilationOptions.Compile)]
13 | public partial class LoginPage : ContentPage
14 | {
15 | public LoginPage()
16 | {
17 | InitializeComponent();
18 | }
19 |
20 | private void LoginButton_Clicked(object sender, EventArgs e)
21 | {
22 | StatusLabel.Text = "Logging in " + DateTime.Now.ToString("HH:mm:ss");
23 | }
24 | }
25 | }
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.Android/Assets/AboutAssets.txt:
--------------------------------------------------------------------------------
1 | Any raw assets you want to be deployed with your application can be placed in
2 | this directory (and child directories) and given a Build Action of "AndroidAsset".
3 |
4 | These files will be deployed with you package and will be accessible using Android's
5 | AssetManager, like this:
6 |
7 | public class ReadAsset : Activity
8 | {
9 | protected override void OnCreate (Bundle bundle)
10 | {
11 | base.OnCreate (bundle);
12 |
13 | InputStream input = Assets.Open ("my_asset.txt");
14 | }
15 | }
16 |
17 | Additionally, some Android functions will automatically load asset files:
18 |
19 | Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf");
20 |
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp/SimpleApp.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netstandard2.0
5 |
6 |
7 |
8 | pdbonly
9 | true
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | MSBuild:UpdateDesignTimeXaml
20 |
21 |
22 |
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using Xamarin.Forms;
3 | using Xamarin.Forms.Xaml;
4 | using SimpleApp.Services;
5 | using SimpleApp.Views;
6 |
7 | namespace SimpleApp
8 | {
9 | public partial class App : Application
10 | {
11 |
12 | public App()
13 | {
14 | InitializeComponent();
15 |
16 | DependencyService.Register();
17 | MainPage = new MainPage();
18 | }
19 |
20 | protected override void OnStart()
21 | {
22 | // Handle when your app starts
23 | }
24 |
25 | protected override void OnSleep()
26 | {
27 | // Handle when your app sleeps
28 | }
29 |
30 | protected override void OnResume()
31 | {
32 | // Handle when your app resumes
33 | }
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp/Views/ItemDetailPage.xaml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp/App.xaml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
12 | #2196F3
13 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Xamarin Forms with Appium UI Test Automation
2 |
3 | Using C# and Appium, this project attempts to automate UI testing of a Xamarin Forms App, with a single test code base in mind.
4 | The beauty of using C# is that you can use the same Visual Studio IDE and obviuosly the power of C# in your UI Tests.
5 |
6 | ## Roadmap ##
7 |
8 | - Compare this with a Java based Appium Test against the same Simple App
9 | - Compare with a Xamarin based UI Test
10 |
11 | ## Steps ##
12 |
13 | - See [Appium Getting Started Guid](http://appium.io/docs/en/about-appium/getting-started/)
14 | - Install Appium Doctor
15 | ```
16 | npm install appium-doctor -g
17 | ```
18 | - Make sure all the tests pass from appium-doctor
19 | - run Appium
20 | - Deploy the applications for Android and iOS as per usual from the IDE
21 | - Take note of your installed Similator/Emulator names and update the InitAppiumOptions method in TestLoginPage_iOS and TestLoginPage_Droid respectively
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp/Views/LoginPage.xaml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp/Views/ItemDetailPage.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.ComponentModel;
3 | using Xamarin.Forms;
4 | using Xamarin.Forms.Xaml;
5 |
6 | using SimpleApp.Models;
7 | using SimpleApp.ViewModels;
8 |
9 | namespace SimpleApp.Views
10 | {
11 | // Learn more about making custom code visible in the Xamarin.Forms previewer
12 | // by visiting https://aka.ms/xamarinforms-previewer
13 | [DesignTimeVisible(false)]
14 | public partial class ItemDetailPage : ContentPage
15 | {
16 | ItemDetailViewModel viewModel;
17 |
18 | public ItemDetailPage(ItemDetailViewModel viewModel)
19 | {
20 | InitializeComponent();
21 |
22 | BindingContext = this.viewModel = viewModel;
23 | }
24 |
25 | public ItemDetailPage()
26 | {
27 | InitializeComponent();
28 |
29 | var item = new Item
30 | {
31 | Text = "Item 1",
32 | Description = "This is an item description."
33 | };
34 |
35 | viewModel = new ItemDetailViewModel(item);
36 | BindingContext = viewModel;
37 | }
38 | }
39 | }
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp/Views/NewItemPage.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using Xamarin.Forms;
5 | using Xamarin.Forms.Xaml;
6 |
7 | using SimpleApp.Models;
8 |
9 | namespace SimpleApp.Views
10 | {
11 | // Learn more about making custom code visible in the Xamarin.Forms previewer
12 | // by visiting https://aka.ms/xamarinforms-previewer
13 | [DesignTimeVisible(false)]
14 | public partial class NewItemPage : ContentPage
15 | {
16 | public Item Item { get; set; }
17 |
18 | public NewItemPage()
19 | {
20 | InitializeComponent();
21 |
22 | Item = new Item
23 | {
24 | Text = "",
25 | Description = ""
26 | };
27 |
28 | BindingContext = this;
29 | }
30 |
31 | async void Save_Clicked(object sender, EventArgs e)
32 | {
33 | MessagingCenter.Send(this, "AddItem", Item);
34 | await Navigation.PopModalAsync();
35 | }
36 |
37 | async void Cancel_Clicked(object sender, EventArgs e)
38 | {
39 | await Navigation.PopModalAsync();
40 | }
41 | }
42 | }
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.iOS/AppDelegate.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 |
5 | using Foundation;
6 | using UIKit;
7 |
8 | namespace SimpleApp.iOS
9 | {
10 | // The UIApplicationDelegate for the application. This class is responsible for launching the
11 | // User Interface of the application, as well as listening (and optionally responding) to
12 | // application events from iOS.
13 | [Register("AppDelegate")]
14 | public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
15 | {
16 | //
17 | // This method is invoked when the application has loaded and is ready to run. In this
18 | // method you should instantiate the window, load the UI into it and then make the window
19 | // visible.
20 | //
21 | // You have 17 seconds to return from this method, or iOS will terminate your application.
22 | //
23 | public override bool FinishedLaunching(UIApplication app, NSDictionary options)
24 | {
25 | global::Xamarin.Forms.Forms.Init();
26 | LoadApplication(new App());
27 |
28 | return base.FinishedLaunching(app, options);
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/SimpleApp.Appium.Core/TestMainPage_iOS.cs:
--------------------------------------------------------------------------------
1 | using NUnit.Framework;
2 | using OpenQA.Selenium.Appium;
3 | using OpenQA.Selenium.Appium.Enums;
4 | using OpenQA.Selenium.Appium.iOS;
5 |
6 | namespace SimpleApp.Appium.Core
7 | {
8 | [TestFixture]
9 | public class TestMainPage_iOS: TestMainPage, IOSElement>
10 | {
11 | public TestMainPage_iOS(): base("MainPageTests")
12 | {
13 | }
14 |
15 | protected override IOSDriver GetDriver()
16 | {
17 | return new IOSDriver(driverUri, appiumOptions);
18 | }
19 |
20 | protected override void InitAppiumOptions(AppiumOptions appiumOptions)
21 | {
22 | appiumOptions.AddAdditionalCapability(MobileCapabilityType.DeviceName, "iPhone 8 Plus");
23 | appiumOptions.AddAdditionalCapability(MobileCapabilityType.PlatformName, "iOS");
24 | appiumOptions.AddAdditionalCapability(MobileCapabilityType.PlatformVersion, "12.2");
25 | appiumOptions.AddAdditionalCapability(MobileCapabilityType.Udid, "DD98F854-8AEF-489A-9A4A-9BCD0DA078ED");
26 | appiumOptions.AddAdditionalCapability(IOSMobileCapabilityType.BundleId, "com.companyname.SimpleApp");
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/SimpleApp.Appium.Core/TestMainPage_Droid.cs:
--------------------------------------------------------------------------------
1 | using OpenQA.Selenium.Appium;
2 | using OpenQA.Selenium.Appium.Android;
3 | using NUnit.Framework;
4 | using OpenQA.Selenium.Appium.Enums;
5 |
6 |
7 | namespace SimpleApp.Appium.Core
8 | {
9 | [TestFixture]
10 | public class TestMainPage_Droid: TestMainPage, AndroidElement>
11 | {
12 | public TestMainPage_Droid() : base("MainPageTests") {}
13 |
14 | protected override AndroidDriver GetDriver()
15 | {
16 | return new AndroidDriver(driverUri, appiumOptions);
17 | }
18 |
19 | protected override void InitAppiumOptions(AppiumOptions appiumOptions)
20 | {
21 | appiumOptions.AddAdditionalCapability(MobileCapabilityType.DeviceName, "Nexus_5_API_24");
22 | appiumOptions.AddAdditionalCapability(MobileCapabilityType.Udid, "emulator-5554");
23 | appiumOptions.AddAdditionalCapability(MobileCapabilityType.PlatformName, "Android");
24 | appiumOptions.AddAdditionalCapability(AndroidMobileCapabilityType.AppPackage, "com.companyname.simpleapp");
25 | appiumOptions.AddAdditionalCapability(AndroidMobileCapabilityType.AppActivity, "md57f24161a4fad3f027b401a142d1bd9c4.MainActivity");
26 | }
27 | }
28 | }
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp/Views/NewItemPage.xaml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.Android/MainActivity.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | using Android.App;
4 | using Android.Content.PM;
5 | using Android.Runtime;
6 | using Android.Views;
7 | using Android.Widget;
8 | using Android.OS;
9 |
10 | namespace SimpleApp.Droid
11 | {
12 | [Activity(Label = "SimpleApp", Icon = "@mipmap/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
13 | public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
14 | {
15 | protected override void OnCreate(Bundle savedInstanceState)
16 | {
17 | TabLayoutResource = Resource.Layout.Tabbar;
18 | ToolbarResource = Resource.Layout.Toolbar;
19 |
20 | base.OnCreate(savedInstanceState);
21 |
22 | Xamarin.Essentials.Platform.Init(this, savedInstanceState);
23 | global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
24 | LoadApplication(new App());
25 | }
26 | public override void OnRequestPermissionsResult(int requestCode, string[] permissions, [GeneratedEnum] Android.Content.PM.Permission[] grantResults)
27 | {
28 | Xamarin.Essentials.Platform.OnRequestPermissionsResult(requestCode, permissions, grantResults);
29 |
30 | base.OnRequestPermissionsResult(requestCode, permissions, grantResults);
31 | }
32 | }
33 | }
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.Android/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 | using Android.App;
5 |
6 | // General Information about an assembly is controlled through the following
7 | // set of attributes. Change these attribute values to modify the information
8 | // associated with an assembly.
9 | [assembly: AssemblyTitle("SimpleApp.Android")]
10 | [assembly: AssemblyDescription("")]
11 | [assembly: AssemblyConfiguration("")]
12 | [assembly: AssemblyCompany("")]
13 | [assembly: AssemblyProduct("SimpleApp.Android")]
14 | [assembly: AssemblyCopyright("Copyright © 2014")]
15 | [assembly: AssemblyTrademark("")]
16 | [assembly: AssemblyCulture("")]
17 | [assembly: ComVisible(false)]
18 |
19 | // Version information for an assembly consists of the following four values:
20 | //
21 | // Major Version
22 | // Minor Version
23 | // Build Number
24 | // Revision
25 | //
26 | // You can specify all the values or you can default the Build and Revision Numbers
27 | // by using the '*' as shown below:
28 | // [assembly: AssemblyVersion("1.0.*")]
29 | [assembly: AssemblyVersion("1.0.0.0")]
30 | [assembly: AssemblyFileVersion("1.0.0.0")]
31 |
32 | // Add some common permissions, these can be removed if not needed
33 | [assembly: UsesPermission(Android.Manifest.Permission.Internet)]
34 | [assembly: UsesPermission(Android.Manifest.Permission.WriteExternalStorage)]
35 |
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.iOS/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | UIDeviceFamily
6 |
7 | 1
8 | 2
9 |
10 | UISupportedInterfaceOrientations
11 |
12 | UIInterfaceOrientationPortrait
13 | UIInterfaceOrientationLandscapeLeft
14 | UIInterfaceOrientationLandscapeRight
15 |
16 | UISupportedInterfaceOrientations~ipad
17 |
18 | UIInterfaceOrientationPortrait
19 | UIInterfaceOrientationPortraitUpsideDown
20 | UIInterfaceOrientationLandscapeLeft
21 | UIInterfaceOrientationLandscapeRight
22 |
23 | MinimumOSVersion
24 | 8.0
25 | CFBundleDisplayName
26 | SimpleApp
27 | CFBundleIdentifier
28 | com.companyname.SimpleApp
29 | CFBundleVersion
30 | 1.0
31 | UILaunchStoryboardName
32 | LaunchScreen
33 | CFBundleName
34 | SimpleApp
35 | XSAppIconAssets
36 | Assets.xcassets/AppIcon.appiconset
37 |
38 |
39 |
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp/Views/ItemsPage.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.ComponentModel;
3 | using Xamarin.Forms;
4 |
5 | using SimpleApp.Models;
6 | using SimpleApp.ViewModels;
7 |
8 | namespace SimpleApp.Views
9 | {
10 | // Learn more about making custom code visible in the Xamarin.Forms previewer
11 | // by visiting https://aka.ms/xamarinforms-previewer
12 | [DesignTimeVisible(false)]
13 | public partial class ItemsPage : ContentPage
14 | {
15 | ItemsViewModel viewModel;
16 |
17 | public ItemsPage()
18 | {
19 | InitializeComponent();
20 |
21 | BindingContext = viewModel = new ItemsViewModel();
22 | }
23 |
24 | async void OnItemSelected(object sender, SelectedItemChangedEventArgs args)
25 | {
26 | var item = args.SelectedItem as Item;
27 | if (item == null)
28 | return;
29 |
30 | await Navigation.PushAsync(new ItemDetailPage(new ItemDetailViewModel(item)));
31 |
32 | // Manually deselect item.
33 | ItemsListView.SelectedItem = null;
34 | }
35 |
36 | async void AddItem_Clicked(object sender, EventArgs e)
37 | {
38 | await Navigation.PushModalAsync(new NavigationPage(new NewItemPage()));
39 | }
40 |
41 | protected override void OnAppearing()
42 | {
43 | base.OnAppearing();
44 |
45 | if (viewModel.Items.Count == 0)
46 | viewModel.LoadItemsCommand.Execute(null);
47 | }
48 | }
49 | }
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.Android/Resources/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
6 |
7 |
26 |
27 |
30 |
31 |
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.iOS/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("SimpleApp.iOS")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("SimpleApp.iOS")]
13 | [assembly: AssemblyCopyright("Copyright © 2014")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("72bdc44f-c588-44f3-b6df-9aace7daafdd")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Build and Revision Numbers
33 | // by using the '*' as shown below:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp/ViewModels/ItemsViewModel.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.ObjectModel;
3 | using System.Diagnostics;
4 | using System.Threading.Tasks;
5 |
6 | using Xamarin.Forms;
7 |
8 | using SimpleApp.Models;
9 | using SimpleApp.Views;
10 |
11 | namespace SimpleApp.ViewModels
12 | {
13 | public class ItemsViewModel : BaseViewModel
14 | {
15 | public ObservableCollection- Items { get; set; }
16 | public Command LoadItemsCommand { get; set; }
17 |
18 | public ItemsViewModel()
19 | {
20 | Title = "Browse";
21 | Items = new ObservableCollection
- ();
22 | LoadItemsCommand = new Command(async () => await ExecuteLoadItemsCommand());
23 |
24 | MessagingCenter.Subscribe(this, "AddItem", async (obj, item) =>
25 | {
26 | var newItem = item as Item;
27 | Items.Add(newItem);
28 | await DataStore.AddItemAsync(newItem);
29 | });
30 | }
31 |
32 | async Task ExecuteLoadItemsCommand()
33 | {
34 | if (IsBusy)
35 | return;
36 |
37 | IsBusy = true;
38 |
39 | try
40 | {
41 | Items.Clear();
42 | var items = await DataStore.GetItemsAsync(true);
43 | foreach (var item in items)
44 | {
45 | Items.Add(item);
46 | }
47 | }
48 | catch (Exception ex)
49 | {
50 | Debug.WriteLine(ex);
51 | }
52 | finally
53 | {
54 | IsBusy = false;
55 | }
56 | }
57 | }
58 | }
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp/ViewModels/BaseViewModel.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Runtime.CompilerServices;
5 |
6 | using Xamarin.Forms;
7 |
8 | using SimpleApp.Models;
9 | using SimpleApp.Services;
10 |
11 | namespace SimpleApp.ViewModels
12 | {
13 | public class BaseViewModel : INotifyPropertyChanged
14 | {
15 | public IDataStore
- DataStore => DependencyService.Get>() ?? new MockDataStore();
16 |
17 | bool isBusy = false;
18 | public bool IsBusy
19 | {
20 | get { return isBusy; }
21 | set { SetProperty(ref isBusy, value); }
22 | }
23 |
24 | string title = string.Empty;
25 | public string Title
26 | {
27 | get { return title; }
28 | set { SetProperty(ref title, value); }
29 | }
30 |
31 | protected bool SetProperty(ref T backingStore, T value,
32 | [CallerMemberName]string propertyName = "",
33 | Action onChanged = null)
34 | {
35 | if (EqualityComparer.Default.Equals(backingStore, value))
36 | return false;
37 |
38 | backingStore = value;
39 | onChanged?.Invoke();
40 | OnPropertyChanged(propertyName);
41 | return true;
42 | }
43 |
44 | #region INotifyPropertyChanged
45 | public event PropertyChangedEventHandler PropertyChanged;
46 | protected void OnPropertyChanged([CallerMemberName] string propertyName = "")
47 | {
48 | var changed = PropertyChanged;
49 | if (changed == null)
50 | return;
51 |
52 | changed.Invoke(this, new PropertyChangedEventArgs(propertyName));
53 | }
54 | #endregion
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp/Views/MainPage.xaml:
--------------------------------------------------------------------------------
1 |
2 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.Android/Resources/AboutResources.txt:
--------------------------------------------------------------------------------
1 | Images, layout descriptions, binary blobs and string dictionaries can be included
2 | in your application as resource files. Various Android APIs are designed to
3 | operate on the resource IDs instead of dealing with images, strings or binary blobs
4 | directly.
5 |
6 | For example, a sample Android app that contains a user interface layout (main.xml),
7 | an internationalization string table (strings.xml) and some icons (drawable-XXX/icon.png)
8 | would keep its resources in the "Resources" directory of the application:
9 |
10 | Resources/
11 | drawable-hdpi/
12 | icon.png
13 |
14 | drawable-ldpi/
15 | icon.png
16 |
17 | drawable-mdpi/
18 | icon.png
19 |
20 | layout/
21 | main.xml
22 |
23 | values/
24 | strings.xml
25 |
26 | In order to get the build system to recognize Android resources, set the build action to
27 | "AndroidResource". The native Android APIs do not operate directly with filenames, but
28 | instead operate on resource IDs. When you compile an Android application that uses resources,
29 | the build system will package the resources for distribution and generate a class called
30 | "Resource" that contains the tokens for each one of the resources included. For example,
31 | for the above Resources layout, this is what the Resource class would expose:
32 |
33 | public class Resource {
34 | public class drawable {
35 | public const int icon = 0x123;
36 | }
37 |
38 | public class layout {
39 | public const int main = 0x456;
40 | }
41 |
42 | public class strings {
43 | public const int first_string = 0xabc;
44 | public const int second_string = 0xbcd;
45 | }
46 | }
47 |
48 | You would then use R.drawable.icon to reference the drawable/icon.png file, or Resource.layout.main
49 | to reference the layout/main.xml file, or Resource.strings.first_string to reference the first
50 | string in the dictionary file values/strings.xml.
51 |
--------------------------------------------------------------------------------
/SimpleApp.Appium.Core/AppiumTest.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using NUnit.Framework;
3 | using OpenQA.Selenium;
4 | using OpenQA.Selenium.Appium;
5 | using OpenQA.Selenium.Appium.Enums;
6 |
7 | namespace SimpleApp.Appium.Core
8 | {
9 | [SetUpFixture]
10 | public abstract class AppiumTest
11 | where T : AppiumDriver
12 | where W : IWebElement
13 | {
14 | private readonly string reportDirectory = "reports";
15 | private readonly string reportFormat = "xml";
16 |
17 | protected AppiumTest(string testName)
18 | {
19 | driverUri = new Uri("http://localhost:4723/wd/hub");
20 |
21 | appiumOptions = new AppiumOptions();
22 | appiumOptions.AddAdditionalCapability("reportDirectory", reportDirectory);
23 | appiumOptions.AddAdditionalCapability("reportFormat", reportFormat);
24 | appiumOptions.AddAdditionalCapability("testName", testName);
25 | appiumOptions.AddAdditionalCapability(MobileCapabilityType.FullReset, "false");
26 | }
27 |
28 | [OneTimeSetUp]
29 | public void OneTimeSetup()
30 | {
31 | InitAppiumOptions(appiumOptions);
32 | appiumDriver = GetDriver();
33 | }
34 |
35 | [OneTimeTearDown()]
36 | public void TearDown()
37 | {
38 | // Perform a driver quit so that the report is printed
39 | appiumDriver.Quit();
40 | }
41 |
42 | protected abstract T GetDriver();
43 | protected abstract void InitAppiumOptions(AppiumOptions appiumOptions);
44 | protected T appiumDriver;
45 | protected readonly AppiumOptions appiumOptions;
46 | protected readonly Uri driverUri;
47 |
48 | public string GetElementText(string elementId)
49 | {
50 | var element = appiumDriver.FindElement(By.Id(elementId));
51 | var attributName = IsAndroid ? "text" : "value";
52 | return element.GetAttribute(attributName);
53 | }
54 |
55 | public bool IsAndroid => appiumDriver.Capabilities.GetCapability(MobileCapabilityType.PlatformName).Equals("Android");
56 | }
57 |
58 |
59 | }
--------------------------------------------------------------------------------
/SimpleApp.Appium.Core/TestMainPage.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using NUnit.Framework;
3 | using OpenQA.Selenium;
4 | using OpenQA.Selenium.Appium;
5 |
6 | namespace SimpleApp.Appium.Core
7 | {
8 | public class TestMainPage: AppiumTest
9 | where T : AppiumDriver
10 | where W : IWebElement
11 | {
12 | public TestMainPage(string testName): base(testName)
13 | {
14 | }
15 |
16 | protected override T GetDriver()
17 | {
18 | // Implemented by platform specific class
19 | throw new NotImplementedException();
20 | }
21 |
22 | protected override void InitAppiumOptions(AppiumOptions appiumOptions)
23 | {
24 | // Implemented by platform specific class
25 | throw new NotImplementedException();
26 | }
27 |
28 | [SetUp()]
29 | public void SetupTest()
30 | {
31 | //appiumDriver.CloseApp();
32 | //appiumDriver.LaunchApp();
33 | }
34 |
35 | [Test()]
36 | public void TestLogin()
37 | {
38 | appiumDriver.FindElement(By.Id("Login")).Click();
39 | appiumDriver.FindElement(By.Id("UserName")).SendKeys("user@email.com");
40 | appiumDriver.FindElement(By.Id("Password")).SendKeys("password");
41 |
42 | appiumDriver.FindElement(By.Id("LoginButton")).Click();
43 | var text = GetElementText("StatusLabel"); // Android is "text"
44 |
45 | Assert.IsNotNull(text);
46 | Assert.IsTrue(text.StartsWith("Logging in", StringComparison.CurrentCulture));
47 | }
48 |
49 | [Test()]
50 | public void TestAddItem()
51 | {
52 | appiumDriver.FindElement(By.Id("Browse")).Click();
53 | appiumDriver.FindElement(By.Id("AddToolbarItem")).Click();
54 | var itemNameField = appiumDriver.FindElement(By.Id("ItemNameEntry"));
55 | itemNameField.SendKeys("todo");
56 |
57 | var itemDesriptionField = appiumDriver.FindElement(By.Id("ItemDescriptionEntry"));
58 | itemDesriptionField.SendKeys("todo description");
59 |
60 | appiumDriver.FindElement(By.Id("SaveToolbarItem")).Click();
61 | }
62 |
63 | [Test()]
64 | public void TestAbout()
65 | {
66 | appiumDriver.FindElement(By.Id("About")).Click(); // works for iOS
67 | }
68 | }
69 | }
70 |
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp/Services/MockDataStore.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Threading.Tasks;
5 | using SimpleApp.Models;
6 |
7 | namespace SimpleApp.Services
8 | {
9 | public class MockDataStore : IDataStore
-
10 | {
11 | List
- items;
12 |
13 | public MockDataStore()
14 | {
15 | items = new List
- ();
16 | var mockItems = new List
-
17 | {
18 | new Item { Id = Guid.NewGuid().ToString(), Text = "First item", Description="This is an item description." },
19 | new Item { Id = Guid.NewGuid().ToString(), Text = "Second item", Description="This is an item description." },
20 | new Item { Id = Guid.NewGuid().ToString(), Text = "Third item", Description="This is an item description." },
21 | new Item { Id = Guid.NewGuid().ToString(), Text = "Fourth item", Description="This is an item description." },
22 | new Item { Id = Guid.NewGuid().ToString(), Text = "Fifth item", Description="This is an item description." },
23 | new Item { Id = Guid.NewGuid().ToString(), Text = "Sixth item", Description="This is an item description." }
24 | };
25 |
26 | foreach (var item in mockItems)
27 | {
28 | items.Add(item);
29 | }
30 | }
31 |
32 | public async Task AddItemAsync(Item item)
33 | {
34 | items.Add(item);
35 |
36 | return await Task.FromResult(true);
37 | }
38 |
39 | public async Task UpdateItemAsync(Item item)
40 | {
41 | var oldItem = items.Where((Item arg) => arg.Id == item.Id).FirstOrDefault();
42 | items.Remove(oldItem);
43 | items.Add(item);
44 |
45 | return await Task.FromResult(true);
46 | }
47 |
48 | public async Task DeleteItemAsync(string id)
49 | {
50 | var oldItem = items.Where((Item arg) => arg.Id == id).FirstOrDefault();
51 | items.Remove(oldItem);
52 |
53 | return await Task.FromResult(true);
54 | }
55 |
56 | public async Task
- GetItemAsync(string id)
57 | {
58 | return await Task.FromResult(items.FirstOrDefault(s => s.Id == id));
59 | }
60 |
61 | public async Task> GetItemsAsync(bool forceRefresh = false)
62 | {
63 | return await Task.FromResult(items);
64 | }
65 | }
66 | }
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp/Views/ItemsPage.xaml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
25 |
26 |
27 | First Item
28 | Second Item
29 | Third Item
30 | Forth Item
31 | Fifth Item
32 | Sixth Item
33 |
34 |
35 |
36 |
37 |
38 |
39 |
44 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.iOS/Resources/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.iOS/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images": [
3 | {
4 | "scale": "2x",
5 | "size": "20x20",
6 | "idiom": "iphone",
7 | "filename": "Icon40.png"
8 | },
9 | {
10 | "scale": "3x",
11 | "size": "20x20",
12 | "idiom": "iphone",
13 | "filename": "Icon60.png"
14 | },
15 | {
16 | "scale": "2x",
17 | "size": "29x29",
18 | "idiom": "iphone",
19 | "filename": "Icon58.png"
20 | },
21 | {
22 | "scale": "3x",
23 | "size": "29x29",
24 | "idiom": "iphone",
25 | "filename": "Icon87.png"
26 | },
27 | {
28 | "scale": "2x",
29 | "size": "40x40",
30 | "idiom": "iphone",
31 | "filename": "Icon80.png"
32 | },
33 | {
34 | "scale": "3x",
35 | "size": "40x40",
36 | "idiom": "iphone",
37 | "filename": "Icon120.png"
38 | },
39 | {
40 | "scale": "2x",
41 | "size": "60x60",
42 | "idiom": "iphone",
43 | "filename": "Icon120.png"
44 | },
45 | {
46 | "scale": "3x",
47 | "size": "60x60",
48 | "idiom": "iphone",
49 | "filename": "Icon180.png"
50 | },
51 | {
52 | "scale": "1x",
53 | "size": "20x20",
54 | "idiom": "ipad",
55 | "filename": "Icon20.png"
56 | },
57 | {
58 | "scale": "2x",
59 | "size": "20x20",
60 | "idiom": "ipad",
61 | "filename": "Icon40.png"
62 | },
63 | {
64 | "scale": "1x",
65 | "size": "29x29",
66 | "idiom": "ipad",
67 | "filename": "Icon29.png"
68 | },
69 | {
70 | "scale": "2x",
71 | "size": "29x29",
72 | "idiom": "ipad",
73 | "filename": "Icon58.png"
74 | },
75 | {
76 | "scale": "1x",
77 | "size": "40x40",
78 | "idiom": "ipad",
79 | "filename": "Icon40.png"
80 | },
81 | {
82 | "scale": "2x",
83 | "size": "40x40",
84 | "idiom": "ipad",
85 | "filename": "Icon80.png"
86 | },
87 | {
88 | "scale": "1x",
89 | "size": "76x76",
90 | "idiom": "ipad",
91 | "filename": "Icon76.png"
92 | },
93 | {
94 | "scale": "2x",
95 | "size": "76x76",
96 | "idiom": "ipad",
97 | "filename": "Icon152.png"
98 | },
99 | {
100 | "scale": "2x",
101 | "size": "83.5x83.5",
102 | "idiom": "ipad",
103 | "filename": "Icon167.png"
104 | },
105 | {
106 | "scale": "1x",
107 | "size": "1024x1024",
108 | "idiom": "ios-marketing",
109 | "filename": "Icon1024.png"
110 | }
111 | ],
112 | "properties": {},
113 | "info": {
114 | "version": 1,
115 | "author": "xcode"
116 | }
117 | }
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp/Views/AboutPage.xaml:
--------------------------------------------------------------------------------
1 |
2 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | #2196F3
18 | #96d1ff
19 | #999999
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
48 |
60 |
73 |
77 |
78 |
79 |
80 |
81 |
82 |
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.Android/SimpleApp.Android.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Debug
5 | AnyCPU
6 | {7B0A2468-F0F2-4222-9A0A-EAAA2F0317AB}
7 | {EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
8 | {6968b3a4-1835-46a3-ac5c-1ae33b475983}
9 | Library
10 | SimpleApp.Droid
11 | SimpleApp.Android
12 | True
13 | Resources\Resource.designer.cs
14 | Resource
15 | Properties\AndroidManifest.xml
16 | Resources
17 | Assets
18 | v9.0
19 | true
20 | true
21 | Xamarin.Android.Net.AndroidClientHandler
22 |
23 |
24 | false
25 |
26 |
27 | true
28 | portable
29 | false
30 | bin\Debug
31 | DEBUG;
32 | prompt
33 | 4
34 | None
35 | x86
36 | true
37 |
38 |
39 | true
40 | portable
41 | true
42 | bin\Release
43 | prompt
44 | 4
45 | true
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 | {5E8B7FBB-C39B-45D7-B7C2-893852814158}
105 | SimpleApp
106 |
107 |
108 |
109 |
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.iOS/SimpleApp.iOS.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Debug
5 | iPhoneSimulator
6 | 8.0.30703
7 | 2.0
8 | {66D87DAD-5D88-4531-B9C3-011A0B9265AC}
9 | {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
10 | {89a4fe7c-635d-49c9-8d8c-5cd363c0d68d}
11 | Exe
12 | SimpleApp.iOS
13 | Resources
14 | SimpleApp.iOS
15 | true
16 | NSUrlSessionHandler
17 |
18 |
19 | true
20 | full
21 | false
22 | bin\iPhoneSimulator\Debug
23 | DEBUG
24 | prompt
25 | 4
26 | x86_64
27 | None
28 | true
29 |
30 |
31 | none
32 | true
33 | bin\iPhoneSimulator\Release
34 | prompt
35 | 4
36 | None
37 | x86_64
38 |
39 |
40 | true
41 | full
42 | false
43 | bin\iPhone\Debug
44 | DEBUG
45 | prompt
46 | 4
47 | ARM64
48 | iPhone Developer
49 | true
50 | Entitlements.plist
51 |
52 |
53 | none
54 | true
55 | bin\iPhone\Release
56 | prompt
57 | 4
58 | ARM64
59 | iPhone Developer
60 | Entitlements.plist
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 | false
72 |
73 |
74 | false
75 |
76 |
77 | false
78 |
79 |
80 | false
81 |
82 |
83 | false
84 |
85 |
86 | false
87 |
88 |
89 | false
90 |
91 |
92 | false
93 |
94 |
95 | false
96 |
97 |
98 | false
99 |
100 |
101 | false
102 |
103 |
104 | false
105 |
106 |
107 | false
108 |
109 |
110 | false
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 | {B871EA5D-720A-4267-9630-A8EBB3995CFC}
139 | SimpleApp
140 |
141 |
142 |
--------------------------------------------------------------------------------
/SimpleApp/SimpleApp.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 16
4 | VisualStudioVersion = 16.0.29201.188
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SimpleApp.Android", "SimpleApp.Android\SimpleApp.Android.csproj", "{7B0A2468-F0F2-4222-9A0A-EAAA2F0317AB}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SimpleApp.iOS", "SimpleApp.iOS\SimpleApp.iOS.csproj", "{66D87DAD-5D88-4531-B9C3-011A0B9265AC}"
9 | EndProject
10 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SimpleApp", "SimpleApp\SimpleApp.csproj", "{5E8B7FBB-C39B-45D7-B7C2-893852814158}"
11 | EndProject
12 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SimpleApp.Appium.Core", "..\SimpleApp.Appium.Core\SimpleApp.Appium.Core.csproj", "{96750DCB-ACFB-44B0-9AD2-1AFC0772EA9A}"
13 | EndProject
14 | Global
15 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
16 | Debug|Any CPU = Debug|Any CPU
17 | Debug|iPhone = Debug|iPhone
18 | Debug|iPhoneSimulator = Debug|iPhoneSimulator
19 | Release|Any CPU = Release|Any CPU
20 | Release|iPhone = Release|iPhone
21 | Release|iPhoneSimulator = Release|iPhoneSimulator
22 | EndGlobalSection
23 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
24 | {7B0A2468-F0F2-4222-9A0A-EAAA2F0317AB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
25 | {7B0A2468-F0F2-4222-9A0A-EAAA2F0317AB}.Debug|Any CPU.Build.0 = Debug|Any CPU
26 | {7B0A2468-F0F2-4222-9A0A-EAAA2F0317AB}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
27 | {7B0A2468-F0F2-4222-9A0A-EAAA2F0317AB}.Debug|iPhone.ActiveCfg = Debug|Any CPU
28 | {7B0A2468-F0F2-4222-9A0A-EAAA2F0317AB}.Debug|iPhone.Build.0 = Debug|Any CPU
29 | {7B0A2468-F0F2-4222-9A0A-EAAA2F0317AB}.Debug|iPhone.Deploy.0 = Debug|Any CPU
30 | {7B0A2468-F0F2-4222-9A0A-EAAA2F0317AB}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
31 | {7B0A2468-F0F2-4222-9A0A-EAAA2F0317AB}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
32 | {7B0A2468-F0F2-4222-9A0A-EAAA2F0317AB}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU
33 | {7B0A2468-F0F2-4222-9A0A-EAAA2F0317AB}.Release|Any CPU.ActiveCfg = Release|Any CPU
34 | {7B0A2468-F0F2-4222-9A0A-EAAA2F0317AB}.Release|Any CPU.Build.0 = Release|Any CPU
35 | {7B0A2468-F0F2-4222-9A0A-EAAA2F0317AB}.Release|Any CPU.Deploy.0 = Release|Any CPU
36 | {7B0A2468-F0F2-4222-9A0A-EAAA2F0317AB}.Release|iPhone.ActiveCfg = Release|Any CPU
37 | {7B0A2468-F0F2-4222-9A0A-EAAA2F0317AB}.Release|iPhone.Build.0 = Release|Any CPU
38 | {7B0A2468-F0F2-4222-9A0A-EAAA2F0317AB}.Release|iPhone.Deploy.0 = Release|Any CPU
39 | {7B0A2468-F0F2-4222-9A0A-EAAA2F0317AB}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
40 | {7B0A2468-F0F2-4222-9A0A-EAAA2F0317AB}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
41 | {7B0A2468-F0F2-4222-9A0A-EAAA2F0317AB}.Release|iPhoneSimulator.Deploy.0 = Release|Any CPU
42 | {66D87DAD-5D88-4531-B9C3-011A0B9265AC}.Debug|Any CPU.ActiveCfg = Debug|iPhoneSimulator
43 | {66D87DAD-5D88-4531-B9C3-011A0B9265AC}.Debug|Any CPU.Build.0 = Debug|iPhoneSimulator
44 | {66D87DAD-5D88-4531-B9C3-011A0B9265AC}.Debug|Any CPU.Deploy.0 = Debug|iPhoneSimulator
45 | {66D87DAD-5D88-4531-B9C3-011A0B9265AC}.Debug|iPhone.ActiveCfg = Debug|iPhone
46 | {66D87DAD-5D88-4531-B9C3-011A0B9265AC}.Debug|iPhone.Build.0 = Debug|iPhone
47 | {66D87DAD-5D88-4531-B9C3-011A0B9265AC}.Debug|iPhone.Deploy.0 = Debug|iPhone
48 | {66D87DAD-5D88-4531-B9C3-011A0B9265AC}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
49 | {66D87DAD-5D88-4531-B9C3-011A0B9265AC}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
50 | {66D87DAD-5D88-4531-B9C3-011A0B9265AC}.Debug|iPhoneSimulator.Deploy.0 = Debug|iPhoneSimulator
51 | {66D87DAD-5D88-4531-B9C3-011A0B9265AC}.Release|Any CPU.ActiveCfg = Release|iPhone
52 | {66D87DAD-5D88-4531-B9C3-011A0B9265AC}.Release|Any CPU.Build.0 = Release|iPhone
53 | {66D87DAD-5D88-4531-B9C3-011A0B9265AC}.Release|Any CPU.Deploy.0 = Release|iPhone
54 | {66D87DAD-5D88-4531-B9C3-011A0B9265AC}.Release|iPhone.ActiveCfg = Release|iPhone
55 | {66D87DAD-5D88-4531-B9C3-011A0B9265AC}.Release|iPhone.Build.0 = Release|iPhone
56 | {66D87DAD-5D88-4531-B9C3-011A0B9265AC}.Release|iPhone.Deploy.0 = Release|iPhone
57 | {66D87DAD-5D88-4531-B9C3-011A0B9265AC}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
58 | {66D87DAD-5D88-4531-B9C3-011A0B9265AC}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
59 | {66D87DAD-5D88-4531-B9C3-011A0B9265AC}.Release|iPhoneSimulator.Deploy.0 = Release|iPhoneSimulator
60 | {5E8B7FBB-C39B-45D7-B7C2-893852814158}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
61 | {5E8B7FBB-C39B-45D7-B7C2-893852814158}.Debug|Any CPU.Build.0 = Debug|Any CPU
62 | {5E8B7FBB-C39B-45D7-B7C2-893852814158}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
63 | {5E8B7FBB-C39B-45D7-B7C2-893852814158}.Debug|iPhone.ActiveCfg = Debug|Any CPU
64 | {5E8B7FBB-C39B-45D7-B7C2-893852814158}.Debug|iPhone.Build.0 = Debug|Any CPU
65 | {5E8B7FBB-C39B-45D7-B7C2-893852814158}.Debug|iPhone.Deploy.0 = Debug|Any CPU
66 | {5E8B7FBB-C39B-45D7-B7C2-893852814158}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
67 | {5E8B7FBB-C39B-45D7-B7C2-893852814158}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
68 | {5E8B7FBB-C39B-45D7-B7C2-893852814158}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU
69 | {5E8B7FBB-C39B-45D7-B7C2-893852814158}.Release|Any CPU.ActiveCfg = Release|Any CPU
70 | {5E8B7FBB-C39B-45D7-B7C2-893852814158}.Release|Any CPU.Build.0 = Release|Any CPU
71 | {5E8B7FBB-C39B-45D7-B7C2-893852814158}.Release|Any CPU.Deploy.0 = Release|Any CPU
72 | {5E8B7FBB-C39B-45D7-B7C2-893852814158}.Release|iPhone.ActiveCfg = Release|Any CPU
73 | {5E8B7FBB-C39B-45D7-B7C2-893852814158}.Release|iPhone.Build.0 = Release|Any CPU
74 | {5E8B7FBB-C39B-45D7-B7C2-893852814158}.Release|iPhone.Deploy.0 = Release|Any CPU
75 | {5E8B7FBB-C39B-45D7-B7C2-893852814158}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
76 | {5E8B7FBB-C39B-45D7-B7C2-893852814158}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
77 | {5E8B7FBB-C39B-45D7-B7C2-893852814158}.Release|iPhoneSimulator.Deploy.0 = Release|Any CPU
78 | {96750DCB-ACFB-44B0-9AD2-1AFC0772EA9A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
79 | {96750DCB-ACFB-44B0-9AD2-1AFC0772EA9A}.Debug|Any CPU.Build.0 = Debug|Any CPU
80 | {96750DCB-ACFB-44B0-9AD2-1AFC0772EA9A}.Debug|iPhone.ActiveCfg = Debug|Any CPU
81 | {96750DCB-ACFB-44B0-9AD2-1AFC0772EA9A}.Debug|iPhone.Build.0 = Debug|Any CPU
82 | {96750DCB-ACFB-44B0-9AD2-1AFC0772EA9A}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
83 | {96750DCB-ACFB-44B0-9AD2-1AFC0772EA9A}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
84 | {96750DCB-ACFB-44B0-9AD2-1AFC0772EA9A}.Release|Any CPU.ActiveCfg = Release|Any CPU
85 | {96750DCB-ACFB-44B0-9AD2-1AFC0772EA9A}.Release|Any CPU.Build.0 = Release|Any CPU
86 | {96750DCB-ACFB-44B0-9AD2-1AFC0772EA9A}.Release|iPhone.ActiveCfg = Release|Any CPU
87 | {96750DCB-ACFB-44B0-9AD2-1AFC0772EA9A}.Release|iPhone.Build.0 = Release|Any CPU
88 | {96750DCB-ACFB-44B0-9AD2-1AFC0772EA9A}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
89 | {96750DCB-ACFB-44B0-9AD2-1AFC0772EA9A}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
90 | EndGlobalSection
91 | GlobalSection(SolutionProperties) = preSolution
92 | HideSolutionNode = FALSE
93 | EndGlobalSection
94 | GlobalSection(ExtensibilityGlobals) = postSolution
95 | SolutionGuid = {F22F7CA2-6E4B-40E5-9050-1C88E81FE5F9}
96 | EndGlobalSection
97 | EndGlobal
98 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 | ##
4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
5 |
6 | # User-specific files
7 | *.rsuser
8 | *.suo
9 | *.user
10 | *.userosscache
11 | *.sln.docstates
12 |
13 | # User-specific files (MonoDevelop/Xamarin Studio)
14 | *.userprefs
15 |
16 | # Mono auto generated files
17 | mono_crash.*
18 |
19 | # Build results
20 | [Dd]ebug/
21 | [Dd]ebugPublic/
22 | [Rr]elease/
23 | [Rr]eleases/
24 | x64/
25 | x86/
26 | [Aa][Rr][Mm]/
27 | [Aa][Rr][Mm]64/
28 | bld/
29 | [Bb]in/
30 | [Oo]bj/
31 | [Ll]og/
32 |
33 | # Visual Studio 2015/2017 cache/options directory
34 | .vs/
35 | # Uncomment if you have tasks that create the project's static files in wwwroot
36 | #wwwroot/
37 |
38 | # Visual Studio 2017 auto generated files
39 | Generated\ Files/
40 |
41 | # MSTest test Results
42 | [Tt]est[Rr]esult*/
43 | [Bb]uild[Ll]og.*
44 |
45 | # NUnit
46 | *.VisualState.xml
47 | TestResult.xml
48 | nunit-*.xml
49 |
50 | # Build Results of an ATL Project
51 | [Dd]ebugPS/
52 | [Rr]eleasePS/
53 | dlldata.c
54 |
55 | # Benchmark Results
56 | BenchmarkDotNet.Artifacts/
57 |
58 | # .NET Core
59 | project.lock.json
60 | project.fragment.lock.json
61 | artifacts/
62 |
63 | # StyleCop
64 | StyleCopReport.xml
65 |
66 | # Files built by Visual Studio
67 | *_i.c
68 | *_p.c
69 | *_h.h
70 | *.ilk
71 | *.meta
72 | *.obj
73 | *.iobj
74 | *.pch
75 | *.pdb
76 | *.ipdb
77 | *.pgc
78 | *.pgd
79 | *.rsp
80 | *.sbr
81 | *.tlb
82 | *.tli
83 | *.tlh
84 | *.tmp
85 | *.tmp_proj
86 | *_wpftmp.csproj
87 | *.log
88 | *.vspscc
89 | *.vssscc
90 | .builds
91 | *.pidb
92 | *.svclog
93 | *.scc
94 |
95 | # Chutzpah Test files
96 | _Chutzpah*
97 |
98 | # Visual C++ cache files
99 | ipch/
100 | *.aps
101 | *.ncb
102 | *.opendb
103 | *.opensdf
104 | *.sdf
105 | *.cachefile
106 | *.VC.db
107 | *.VC.VC.opendb
108 |
109 | # Visual Studio profiler
110 | *.psess
111 | *.vsp
112 | *.vspx
113 | *.sap
114 |
115 | # Visual Studio Trace Files
116 | *.e2e
117 |
118 | # TFS 2012 Local Workspace
119 | $tf/
120 |
121 | # Guidance Automation Toolkit
122 | *.gpState
123 |
124 | # ReSharper is a .NET coding add-in
125 | _ReSharper*/
126 | *.[Rr]e[Ss]harper
127 | *.DotSettings.user
128 |
129 | # JustCode is a .NET coding add-in
130 | .JustCode
131 |
132 | # TeamCity is a build add-in
133 | _TeamCity*
134 |
135 | # DotCover is a Code Coverage Tool
136 | *.dotCover
137 |
138 | # AxoCover is a Code Coverage Tool
139 | .axoCover/*
140 | !.axoCover/settings.json
141 |
142 | # Visual Studio code coverage results
143 | *.coverage
144 | *.coveragexml
145 |
146 | # NCrunch
147 | _NCrunch_*
148 | .*crunch*.local.xml
149 | nCrunchTemp_*
150 |
151 | # MightyMoose
152 | *.mm.*
153 | AutoTest.Net/
154 |
155 | # Web workbench (sass)
156 | .sass-cache/
157 |
158 | # Installshield output folder
159 | [Ee]xpress/
160 |
161 | # DocProject is a documentation generator add-in
162 | DocProject/buildhelp/
163 | DocProject/Help/*.HxT
164 | DocProject/Help/*.HxC
165 | DocProject/Help/*.hhc
166 | DocProject/Help/*.hhk
167 | DocProject/Help/*.hhp
168 | DocProject/Help/Html2
169 | DocProject/Help/html
170 |
171 | # Click-Once directory
172 | publish/
173 |
174 | # Publish Web Output
175 | *.[Pp]ublish.xml
176 | *.azurePubxml
177 | # Note: Comment the next line if you want to checkin your web deploy settings,
178 | # but database connection strings (with potential passwords) will be unencrypted
179 | *.pubxml
180 | *.publishproj
181 |
182 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
183 | # checkin your Azure Web App publish settings, but sensitive information contained
184 | # in these scripts will be unencrypted
185 | PublishScripts/
186 |
187 | # NuGet Packages
188 | *.nupkg
189 | # NuGet Symbol Packages
190 | *.snupkg
191 | # The packages folder can be ignored because of Package Restore
192 | **/[Pp]ackages/*
193 | # except build/, which is used as an MSBuild target.
194 | !**/[Pp]ackages/build/
195 | # Uncomment if necessary however generally it will be regenerated when needed
196 | #!**/[Pp]ackages/repositories.config
197 | # NuGet v3's project.json files produces more ignorable files
198 | *.nuget.props
199 | *.nuget.targets
200 |
201 | # Microsoft Azure Build Output
202 | csx/
203 | *.build.csdef
204 |
205 | # Microsoft Azure Emulator
206 | ecf/
207 | rcf/
208 |
209 | # Windows Store app package directories and files
210 | AppPackages/
211 | BundleArtifacts/
212 | Package.StoreAssociation.xml
213 | _pkginfo.txt
214 | *.appx
215 | *.appxbundle
216 | *.appxupload
217 |
218 | # Visual Studio cache files
219 | # files ending in .cache can be ignored
220 | *.[Cc]ache
221 | # but keep track of directories ending in .cache
222 | !?*.[Cc]ache/
223 |
224 | # Others
225 | ClientBin/
226 | ~$*
227 | *~
228 | *.dbmdl
229 | *.dbproj.schemaview
230 | *.jfm
231 | *.pfx
232 | *.publishsettings
233 | orleans.codegen.cs
234 |
235 | # Including strong name files can present a security risk
236 | # (https://github.com/github/gitignore/pull/2483#issue-259490424)
237 | #*.snk
238 |
239 | # Since there are multiple workflows, uncomment next line to ignore bower_components
240 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
241 | #bower_components/
242 |
243 | # RIA/Silverlight projects
244 | Generated_Code/
245 |
246 | # Backup & report files from converting an old project file
247 | # to a newer Visual Studio version. Backup files are not needed,
248 | # because we have git ;-)
249 | _UpgradeReport_Files/
250 | Backup*/
251 | UpgradeLog*.XML
252 | UpgradeLog*.htm
253 | ServiceFabricBackup/
254 | *.rptproj.bak
255 |
256 | # SQL Server files
257 | *.mdf
258 | *.ldf
259 | *.ndf
260 |
261 | # Business Intelligence projects
262 | *.rdl.data
263 | *.bim.layout
264 | *.bim_*.settings
265 | *.rptproj.rsuser
266 | *- [Bb]ackup.rdl
267 | *- [Bb]ackup ([0-9]).rdl
268 | *- [Bb]ackup ([0-9][0-9]).rdl
269 |
270 | # Microsoft Fakes
271 | FakesAssemblies/
272 |
273 | # GhostDoc plugin setting file
274 | *.GhostDoc.xml
275 |
276 | # Node.js Tools for Visual Studio
277 | .ntvs_analysis.dat
278 | node_modules/
279 |
280 | # Visual Studio 6 build log
281 | *.plg
282 |
283 | # Visual Studio 6 workspace options file
284 | *.opt
285 |
286 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
287 | *.vbw
288 |
289 | # Visual Studio LightSwitch build output
290 | **/*.HTMLClient/GeneratedArtifacts
291 | **/*.DesktopClient/GeneratedArtifacts
292 | **/*.DesktopClient/ModelManifest.xml
293 | **/*.Server/GeneratedArtifacts
294 | **/*.Server/ModelManifest.xml
295 | _Pvt_Extensions
296 |
297 | # Paket dependency manager
298 | .paket/paket.exe
299 | paket-files/
300 |
301 | # FAKE - F# Make
302 | .fake/
303 |
304 | # CodeRush personal settings
305 | .cr/personal
306 |
307 | # Python Tools for Visual Studio (PTVS)
308 | __pycache__/
309 | *.pyc
310 |
311 | # Cake - Uncomment if you are using it
312 | # tools/**
313 | # !tools/packages.config
314 |
315 | # Tabs Studio
316 | *.tss
317 |
318 | # Telerik's JustMock configuration file
319 | *.jmconfig
320 |
321 | # BizTalk build output
322 | *.btp.cs
323 | *.btm.cs
324 | *.odx.cs
325 | *.xsd.cs
326 |
327 | # OpenCover UI analysis results
328 | OpenCover/
329 |
330 | # Azure Stream Analytics local run output
331 | ASALocalRun/
332 |
333 | # MSBuild Binary and Structured Log
334 | *.binlog
335 |
336 | # NVidia Nsight GPU debugger configuration file
337 | *.nvuser
338 |
339 | # MFractors (Xamarin productivity tool) working folder
340 | .mfractor/
341 |
342 | # Local History for Visual Studio
343 | .localhistory/
344 |
345 | # BeatPulse healthcheck temp database
346 | healthchecksdb
347 |
348 | # Backup folder for Package Reference Convert tool in Visual Studio 2017
349 | MigrationBackup/
350 |
--------------------------------------------------------------------------------