├── .gitattributes ├── .github ├── FUNDING.yml ├── dependabot.yml ├── ISSUE_TEMPLATE │ ├── feature_request.md │ └── bug_report.md └── workflows │ └── mobile.yml ├── AsyncCommandSample.iOS ├── Resources │ ├── Default.png │ ├── Default@2x.png │ ├── Default-568h@2x.png │ ├── Default-Portrait.png │ ├── Default-Portrait@2x.png │ └── LaunchScreen.storyboard ├── Assets.xcassets │ └── AppIcon.appiconset │ │ ├── Icon120.png │ │ ├── Icon152.png │ │ ├── Icon167.png │ │ ├── Icon180.png │ │ ├── Icon20.png │ │ ├── Icon29.png │ │ ├── Icon40.png │ │ ├── Icon58.png │ │ ├── Icon60.png │ │ ├── Icon76.png │ │ ├── Icon80.png │ │ ├── Icon87.png │ │ ├── Icon1024.png │ │ └── Contents.json ├── Entitlements.plist ├── Main.cs ├── AppDelegate.cs ├── Info.plist ├── Properties │ └── AssemblyInfo.cs └── AsyncCommandSample.iOS.csproj ├── AsyncCommandSample.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 │ ├── mipmap-anydpi-v26 │ │ ├── icon.xml │ │ └── icon_round.xml │ ├── values │ │ ├── colors.xml │ │ └── styles.xml │ └── AboutResources.txt ├── Properties │ ├── AndroidManifest.xml │ └── AssemblyInfo.cs ├── Assets │ └── AboutAssets.txt ├── MainActivity.cs └── AsyncCommandSample.Android.csproj ├── AsyncCommandSample ├── App.cs ├── Models │ └── GitHubReleasesModel.cs ├── AsyncCommandSample.csproj ├── ViewModels │ ├── BaseViewModel.cs │ └── XamarinCommunityToolkitInfoViewModel.cs └── Pages │ └── XamarinCommunityToolkitInfoPage.cs ├── Directory.Build.props ├── AsyncCommandSample.UnitTests ├── AsyncCommandSample.UnitTests.csproj ├── Tests │ └── XamarinCommunityToolkitInfoViewModelTests.cs └── Mocks │ └── MockPreferences.cs ├── LICENSE ├── README.md ├── AsyncCommandSample.sln └── .gitignore /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [brminnick] 4 | -------------------------------------------------------------------------------- /AsyncCommandSample.iOS/Resources/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodeTraveler/AsyncCommandSample/HEAD/AsyncCommandSample.iOS/Resources/Default.png -------------------------------------------------------------------------------- /AsyncCommandSample.iOS/Resources/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodeTraveler/AsyncCommandSample/HEAD/AsyncCommandSample.iOS/Resources/Default@2x.png -------------------------------------------------------------------------------- /AsyncCommandSample.iOS/Resources/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodeTraveler/AsyncCommandSample/HEAD/AsyncCommandSample.iOS/Resources/Default-568h@2x.png -------------------------------------------------------------------------------- /AsyncCommandSample.iOS/Resources/Default-Portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodeTraveler/AsyncCommandSample/HEAD/AsyncCommandSample.iOS/Resources/Default-Portrait.png -------------------------------------------------------------------------------- /AsyncCommandSample.iOS/Resources/Default-Portrait@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodeTraveler/AsyncCommandSample/HEAD/AsyncCommandSample.iOS/Resources/Default-Portrait@2x.png -------------------------------------------------------------------------------- /AsyncCommandSample.Android/Resources/mipmap-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodeTraveler/AsyncCommandSample/HEAD/AsyncCommandSample.Android/Resources/mipmap-hdpi/icon.png -------------------------------------------------------------------------------- /AsyncCommandSample.Android/Resources/mipmap-mdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodeTraveler/AsyncCommandSample/HEAD/AsyncCommandSample.Android/Resources/mipmap-mdpi/icon.png -------------------------------------------------------------------------------- /AsyncCommandSample.Android/Resources/mipmap-xhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodeTraveler/AsyncCommandSample/HEAD/AsyncCommandSample.Android/Resources/mipmap-xhdpi/icon.png -------------------------------------------------------------------------------- /AsyncCommandSample.Android/Resources/mipmap-xxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodeTraveler/AsyncCommandSample/HEAD/AsyncCommandSample.Android/Resources/mipmap-xxhdpi/icon.png -------------------------------------------------------------------------------- /AsyncCommandSample.Android/Resources/mipmap-xxxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodeTraveler/AsyncCommandSample/HEAD/AsyncCommandSample.Android/Resources/mipmap-xxxhdpi/icon.png -------------------------------------------------------------------------------- /AsyncCommandSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon120.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodeTraveler/AsyncCommandSample/HEAD/AsyncCommandSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon120.png -------------------------------------------------------------------------------- /AsyncCommandSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon152.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodeTraveler/AsyncCommandSample/HEAD/AsyncCommandSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon152.png -------------------------------------------------------------------------------- /AsyncCommandSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon167.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodeTraveler/AsyncCommandSample/HEAD/AsyncCommandSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon167.png -------------------------------------------------------------------------------- /AsyncCommandSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon180.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodeTraveler/AsyncCommandSample/HEAD/AsyncCommandSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon180.png -------------------------------------------------------------------------------- /AsyncCommandSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodeTraveler/AsyncCommandSample/HEAD/AsyncCommandSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon20.png -------------------------------------------------------------------------------- /AsyncCommandSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodeTraveler/AsyncCommandSample/HEAD/AsyncCommandSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon29.png -------------------------------------------------------------------------------- /AsyncCommandSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodeTraveler/AsyncCommandSample/HEAD/AsyncCommandSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon40.png -------------------------------------------------------------------------------- /AsyncCommandSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon58.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodeTraveler/AsyncCommandSample/HEAD/AsyncCommandSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon58.png -------------------------------------------------------------------------------- /AsyncCommandSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon60.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodeTraveler/AsyncCommandSample/HEAD/AsyncCommandSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon60.png -------------------------------------------------------------------------------- /AsyncCommandSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodeTraveler/AsyncCommandSample/HEAD/AsyncCommandSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon76.png -------------------------------------------------------------------------------- /AsyncCommandSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodeTraveler/AsyncCommandSample/HEAD/AsyncCommandSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon80.png -------------------------------------------------------------------------------- /AsyncCommandSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon87.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodeTraveler/AsyncCommandSample/HEAD/AsyncCommandSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon87.png -------------------------------------------------------------------------------- /AsyncCommandSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon1024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodeTraveler/AsyncCommandSample/HEAD/AsyncCommandSample.iOS/Assets.xcassets/AppIcon.appiconset/Icon1024.png -------------------------------------------------------------------------------- /AsyncCommandSample.Android/Resources/mipmap-hdpi/launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodeTraveler/AsyncCommandSample/HEAD/AsyncCommandSample.Android/Resources/mipmap-hdpi/launcher_foreground.png -------------------------------------------------------------------------------- /AsyncCommandSample.Android/Resources/mipmap-mdpi/launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodeTraveler/AsyncCommandSample/HEAD/AsyncCommandSample.Android/Resources/mipmap-mdpi/launcher_foreground.png -------------------------------------------------------------------------------- /AsyncCommandSample.Android/Resources/mipmap-xhdpi/launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodeTraveler/AsyncCommandSample/HEAD/AsyncCommandSample.Android/Resources/mipmap-xhdpi/launcher_foreground.png -------------------------------------------------------------------------------- /AsyncCommandSample.Android/Resources/mipmap-xxhdpi/launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodeTraveler/AsyncCommandSample/HEAD/AsyncCommandSample.Android/Resources/mipmap-xxhdpi/launcher_foreground.png -------------------------------------------------------------------------------- /AsyncCommandSample.Android/Resources/mipmap-xxxhdpi/launcher_foreground.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheCodeTraveler/AsyncCommandSample/HEAD/AsyncCommandSample.Android/Resources/mipmap-xxxhdpi/launcher_foreground.png -------------------------------------------------------------------------------- /AsyncCommandSample.iOS/Entitlements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /AsyncCommandSample.iOS/Main.cs: -------------------------------------------------------------------------------- 1 | using UIKit; 2 | 3 | namespace AsyncCommandSample.iOS 4 | { 5 | public class Application 6 | { 7 | static void Main(string[] args) => UIApplication.Main(args, null, typeof(AppDelegate)); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /AsyncCommandSample/App.cs: -------------------------------------------------------------------------------- 1 | using Xamarin.Essentials.Implementation; 2 | using Xamarin.Forms; 3 | 4 | namespace AsyncCommandSample 5 | { 6 | public class App : Application 7 | { 8 | public App() => MainPage = new XamarinCommunityToolkitInfoPage(new MainThreadImplementation()); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /AsyncCommandSample.Android/Resources/mipmap-anydpi-v26/icon.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /AsyncCommandSample.Android/Resources/mipmap-anydpi-v26/icon_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /AsyncCommandSample.Android/Resources/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #FFFFFF 4 | #3F51B5 5 | #303F9F 6 | #FF4081 7 | 8 | -------------------------------------------------------------------------------- /Directory.Build.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | latest 5 | enable 6 | nullable 7 | True 8 | false 9 | 10 | 11 | -------------------------------------------------------------------------------- /AsyncCommandSample/Models/GitHubReleasesModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.ComponentModel; 3 | 4 | namespace AsyncCommandSample 5 | { 6 | record GitHubReleasesModel(long Id, Uri Url, string Tag_Name); 7 | } 8 | 9 | // C# 9.0 Workaround https://stackoverflow.com/a/62656145/5953643 10 | namespace System.Runtime.CompilerServices 11 | { 12 | [EditorBrowsable(EditorBrowsableState.Never)] 13 | public class IsExternalInit { } 14 | } 15 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | # To get started with Dependabot version updates, you'll need to specify which 2 | # package ecosystems to update and where the package manifests are located. 3 | # Please see the documentation for all configuration options: 4 | # https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates 5 | 6 | version: 2 7 | updates: 8 | - package-ecosystem: "nuget" 9 | directory: "/" 10 | schedule: 11 | interval: "daily" 12 | -------------------------------------------------------------------------------- /AsyncCommandSample.Android/Properties/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /AsyncCommandSample.iOS/AppDelegate.cs: -------------------------------------------------------------------------------- 1 | using Foundation; 2 | using UIKit; 3 | 4 | namespace AsyncCommandSample.iOS 5 | { 6 | [Register(nameof(AppDelegate))] 7 | public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate 8 | { 9 | public override bool FinishedLaunching(UIApplication app, NSDictionary options) 10 | { 11 | global::Xamarin.Forms.Forms.Init(); 12 | LoadApplication(new App()); 13 | 14 | return base.FinishedLaunching(app, options); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /AsyncCommandSample.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 your 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 | -------------------------------------------------------------------------------- /AsyncCommandSample/AsyncCommandSample.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | netstandard2.1 5 | true 6 | 7 | 8 | 9 | portable 10 | true 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /AsyncCommandSample.Android/Resources/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 18 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Screenshots** 24 | If applicable, add screenshots to help explain your problem. 25 | 26 | **Desktop (please complete the following information):** 27 | - OS: [e.g. iOS] 28 | - Browser [e.g. chrome, safari] 29 | - Version [e.g. 22] 30 | 31 | **Smartphone (please complete the following information):** 32 | - Device: [e.g. iPhone6] 33 | - OS: [e.g. iOS8.1] 34 | - Browser [e.g. stock browser, safari] 35 | - Version [e.g. 22] 36 | 37 | **Additional context** 38 | Add any other context about the problem here. 39 | -------------------------------------------------------------------------------- /AsyncCommandSample.UnitTests/AsyncCommandSample.UnitTests.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net8.0-windows 5 | true 6 | false 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | runtime; build; native; contentfiles; analyzers; buildtransitive 15 | all 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Brandon Minnick 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [![Xamarin](https://github.com/brminnick/AsyncCommandSample/actions/workflows/mobile.yml/badge.svg)](https://github.com/brminnick/AsyncCommandSample/actions/workflows/mobile.yml) 2 | 3 | # AsyncCommandSample 4 | An iOS + Android app built in Xamarin.Forms demonstrating Xamarin.CommunityToolkit AsyncCommand 5 | 6 | ### Learn More 7 | - [Xamarin.CommunityToolkit](https://docs.microsoft.com/xamarin/community-toolkit/?WT.mc_id=mobile-15661-bramin) 8 | - [AsyncCommand](https://docs.microsoft.com/xamarin/community-toolkit/objectmodel/asynccommand?WT.mc_id=mobile-15661-bramin) 9 | - [AsyncValueCommand](https://docs.microsoft.com/xamarin/community-toolkit/objectmodel/asyncvaluecommand?WT.mc_id=mobile-15661-bramin) 10 | - [WeakEventManager](https://docs.microsoft.com/xamarin/community-toolkit/helpers/weakeventmanagert?WT.mc_id=mobile-15661-bramin) 11 | - [DelegateWeakEventManager](https://docs.microsoft.com/en-us/xamarin/community-toolkit/helpers/delegateweakeventmanager?WT.mc_id=mobile-15661-bramin) 12 | 13 | [![](https://user-images.githubusercontent.com/13558917/120941792-91b9ae00-c6d9-11eb-97d6-7c173aaec858.png)](https://channel9.msdn.com/Shows/XamarinShow/Xamarin-Community-Toolkit-Awesome-AsyncCommand--AsyncValueCommand?WT.mc_id=mobile-15661-bramin) 14 | -------------------------------------------------------------------------------- /AsyncCommandSample.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("AsyncCommandSample.Android")] 10 | [assembly: AssemblyDescription("")] 11 | [assembly: AssemblyConfiguration("")] 12 | [assembly: AssemblyCompany("")] 13 | [assembly: AssemblyProduct("AsyncCommandSample.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 | [assembly: AssemblyVersion("1.0.0.0")] 26 | [assembly: AssemblyFileVersion("1.0.0.0")] 27 | 28 | // Add some common permissions, these can be removed if not needed 29 | [assembly: UsesPermission(Android.Manifest.Permission.Internet)] 30 | [assembly: UsesPermission(Android.Manifest.Permission.WriteExternalStorage)] 31 | -------------------------------------------------------------------------------- /AsyncCommandSample.Android/MainActivity.cs: -------------------------------------------------------------------------------- 1 | using Android.App; 2 | using Android.Content.PM; 3 | using Android.OS; 4 | using Android.Runtime; 5 | 6 | namespace AsyncCommandSample.Droid 7 | { 8 | [Activity(Label = "AsyncCommandSample", Icon = "@mipmap/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize)] 9 | public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity 10 | { 11 | public override void OnRequestPermissionsResult(int requestCode, string[] permissions, [GeneratedEnum] Permission[] grantResults) 12 | { 13 | Xamarin.Essentials.Platform.OnRequestPermissionsResult(requestCode, permissions, grantResults); 14 | 15 | base.OnRequestPermissionsResult(requestCode, permissions, grantResults); 16 | } 17 | 18 | protected override void OnCreate(Bundle savedInstanceState) 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 | } 27 | } -------------------------------------------------------------------------------- /AsyncCommandSample/ViewModels/BaseViewModel.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.ComponentModel; 3 | using System.Runtime.CompilerServices; 4 | using Xamarin.CommunityToolkit.Helpers; 5 | 6 | namespace AsyncCommandSample 7 | { 8 | public abstract class BaseViewModel : INotifyPropertyChanged 9 | { 10 | readonly DelegateWeakEventManager _propertyChangedEventManager = new(); 11 | 12 | event PropertyChangedEventHandler INotifyPropertyChanged.PropertyChanged 13 | { 14 | add => _propertyChangedEventManager.AddEventHandler(value); 15 | remove => _propertyChangedEventManager.RemoveEventHandler(value); 16 | } 17 | 18 | protected void SetProperty(ref T backingStore, in T value, in System.Action? onChanged = null, [CallerMemberName] in string propertyname = "") 19 | { 20 | if (EqualityComparer.Default.Equals(backingStore, value)) 21 | return; 22 | 23 | backingStore = value; 24 | 25 | onChanged?.Invoke(); 26 | 27 | OnPropertyChanged(propertyname); 28 | } 29 | 30 | protected void OnPropertyChanged([CallerMemberName] in string propertyName = "") => 31 | _propertyChangedEventManager.RaiseEvent(this, new PropertyChangedEventArgs(propertyName), nameof(INotifyPropertyChanged.PropertyChanged)); 32 | } 33 | } -------------------------------------------------------------------------------- /AsyncCommandSample.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 | 14.0 25 | CFBundleDisplayName 26 | AsyncCommandSample 27 | CFBundleIdentifier 28 | com.minnick.AsyncCommandSample 29 | CFBundleVersion 30 | 1.0 31 | UILaunchStoryboardName 32 | LaunchScreen 33 | CFBundleName 34 | AsyncCommandSample 35 | XSAppIconAssets 36 | Assets.xcassets/AppIcon.appiconset 37 | 38 | 39 | -------------------------------------------------------------------------------- /.github/workflows/mobile.yml: -------------------------------------------------------------------------------- 1 | name: Xamarin 2 | 3 | on: 4 | push: 5 | branches: 6 | - "main" 7 | pull_request: 8 | branches: 9 | - "*" 10 | 11 | jobs: 12 | BuildAndroidApp: 13 | runs-on: macos-latest 14 | 15 | steps: 16 | - uses: actions/checkout@v1 17 | 18 | - name: Setup .NET v8.0 19 | uses: actions/setup-dotnet@v1 20 | with: 21 | dotnet-version: '8.0.x' 22 | 23 | - name: Restore NuGet 24 | run: | 25 | AndroidProject=`find . -name AsyncCommandSample.Android.csproj` 26 | echo $AndroidProject 27 | 28 | XamarinFormsProject=`find . -name AsyncCommandSample.csproj` 29 | echo $XamarinFormsProject 30 | 31 | nuget restore $AndroidProject 32 | nuget restore $XamarinFormsProject 33 | 34 | - name: Build Android App 35 | run: | 36 | AndroidProject=`find . -name AsyncCommandSample.Android.csproj` 37 | echo $AndroidProject 38 | 39 | msbuild $AndroidProject /verbosity:normal /p:Configuration=Release 40 | 41 | RunUnitTests: 42 | runs-on: windows-latest 43 | 44 | steps: 45 | - uses: actions/checkout@v3 46 | 47 | - name: Setup v8.0 48 | uses: actions/setup-dotnet@v3 49 | with: 50 | dotnet-version: '8.0.x' 51 | 52 | - name: Run Unit Tests 53 | run: 'dotnet test -c Release AsyncCommandSample.UnitTests/AsyncCommandSample.UnitTests.csproj' 54 | -------------------------------------------------------------------------------- /AsyncCommandSample.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("AsyncCommandSample.iOS")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("AsyncCommandSample.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 | -------------------------------------------------------------------------------- /AsyncCommandSample.UnitTests/Tests/XamarinCommunityToolkitInfoViewModelTests.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Threading.Tasks; 3 | using NUnit.Framework; 4 | 5 | namespace AsyncCommandSample.UnitTests 6 | { 7 | class XamarinCommunityToolkitInfoViewModelTests 8 | { 9 | [Test] 10 | public async Task GetLatestReleaseTest() 11 | { 12 | // Arrange 13 | string? latestRelease_Initial, latestRelease_Final; 14 | 15 | var getLatestReleaseFailedTCS = new TaskCompletionSource(); 16 | 17 | var xamarinCommunityToolkitInfoViewModel = new XamarinCommunityToolkitInfoViewModel(new MockPreferences()); 18 | xamarinCommunityToolkitInfoViewModel.GetLatestReleaseFailed += HandleGetLatestReleaseFailed; 19 | 20 | // Act 21 | latestRelease_Initial = xamarinCommunityToolkitInfoViewModel.LatestRelease; 22 | 23 | await xamarinCommunityToolkitInfoViewModel.GetLatestRelease.ExecuteAsync().ConfigureAwait(false); 24 | 25 | latestRelease_Final = xamarinCommunityToolkitInfoViewModel.LatestRelease ?? await getLatestReleaseFailedTCS.Task.ConfigureAwait(false); 26 | 27 | // Assert 28 | Assert.Multiple(() => 29 | { 30 | Assert.That(latestRelease_Initial, Is.Not.Null); 31 | Assert.That(latestRelease_Final, Is.Not.Null); 32 | }); 33 | 34 | void HandleGetLatestReleaseFailed(object? sender, string e) 35 | { 36 | getLatestReleaseFailedTCS.SetResult(e); 37 | } 38 | } 39 | 40 | } 41 | } -------------------------------------------------------------------------------- /AsyncCommandSample/Pages/XamarinCommunityToolkitInfoPage.cs: -------------------------------------------------------------------------------- 1 | using Xamarin.CommunityToolkit.Markup; 2 | using Xamarin.Essentials.Implementation; 3 | using Xamarin.Essentials.Interfaces; 4 | using Xamarin.Forms; 5 | 6 | namespace AsyncCommandSample 7 | { 8 | class XamarinCommunityToolkitInfoPage : ContentPage 9 | { 10 | const string _xamarinCommunityToolkitUrl = "https://github.com/xamarin/XamarinCommunityToolkit/blob/1.0.2/assets/XamarinCommunityToolkit.png?raw=true"; 11 | 12 | readonly IMainThread _mainThread; 13 | readonly XamarinCommunityToolkitInfoViewModel _viewModel; 14 | 15 | public XamarinCommunityToolkitInfoPage(IMainThread mainThread) 16 | { 17 | _mainThread = mainThread; 18 | 19 | BindingContext = _viewModel = new XamarinCommunityToolkitInfoViewModel(new PreferencesImplementation()); 20 | _viewModel.GetLatestReleaseFailed += HandleGetLatestReleaseFailed; 21 | 22 | Content = new StackLayout 23 | { 24 | Children = 25 | { 26 | new Image { Source = _xamarinCommunityToolkitUrl, HeightRequest = 250 }.Center(), 27 | 28 | new Label().Center().TextCenter() 29 | .Bind(Label.TextProperty, nameof(XamarinCommunityToolkitInfoViewModel.LatestRelease), convert: latestRelease => $"Latest Release: {latestRelease ?? "Unknown"}"), 30 | 31 | new Button { Text = "Get Latest Version" }.Center() 32 | .Bind(Button.CommandProperty, nameof(XamarinCommunityToolkitInfoViewModel.GetLatestRelease)) 33 | } 34 | }.Center(); 35 | } 36 | 37 | void HandleGetLatestReleaseFailed(object sender, string message) => 38 | _mainThread.BeginInvokeOnMainThread(async () => await DisplayAlert("Failed to Retrieve Latest Version", message, "OK")); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /AsyncCommandSample.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 | -------------------------------------------------------------------------------- /AsyncCommandSample.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 | -------------------------------------------------------------------------------- /AsyncCommandSample.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 | } -------------------------------------------------------------------------------- /AsyncCommandSample/ViewModels/XamarinCommunityToolkitInfoViewModel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Net.Http; 5 | using System.Net.Http.Headers; 6 | using System.Threading.Tasks; 7 | using Newtonsoft.Json; 8 | using Xamarin.CommunityToolkit.Helpers; 9 | using Xamarin.CommunityToolkit.ObjectModel; 10 | using Xamarin.Essentials.Interfaces; 11 | 12 | namespace AsyncCommandSample 13 | { 14 | public class XamarinCommunityToolkitInfoViewModel : BaseViewModel 15 | { 16 | readonly static HttpClient _gitHubClient = CreateHttpClient(); 17 | 18 | readonly WeakEventManager _getLatestReleaseFailedEventManager = new(); 19 | readonly IPreferences _preferences; 20 | 21 | public XamarinCommunityToolkitInfoViewModel(IPreferences preferences) 22 | { 23 | _preferences = preferences; 24 | GetLatestRelease = new AsyncCommand(ExecuteGetLatestRelease, allowsMultipleExecutions: false); 25 | } 26 | 27 | public event EventHandler GetLatestReleaseFailed 28 | { 29 | add => _getLatestReleaseFailedEventManager.AddEventHandler(value); 30 | remove => _getLatestReleaseFailedEventManager.RemoveEventHandler(value); 31 | } 32 | 33 | public IAsyncCommand GetLatestRelease { get; } 34 | 35 | public string? LatestRelease 36 | { 37 | get => _preferences.Get(nameof(LatestRelease), null); 38 | set 39 | { 40 | if (value is not null && !value.Equals(LatestRelease)) 41 | { 42 | _preferences.Set(nameof(LatestRelease), value); 43 | OnPropertyChanged(); 44 | } 45 | } 46 | } 47 | 48 | static HttpClient CreateHttpClient() 49 | { 50 | var client = new HttpClient() 51 | { 52 | BaseAddress = new Uri("https://api.github.com") 53 | }; 54 | client.DefaultRequestHeaders.UserAgent.Add(new ProductInfoHeaderValue(new ProductHeaderValue(nameof(AsyncCommandSample)))); 55 | 56 | return client; 57 | } 58 | 59 | async Task ExecuteGetLatestRelease() 60 | { 61 | try 62 | { 63 | var releasesJson = await _gitHubClient.GetStringAsync("/repos/xamarin/XamarinCommunityToolkit/releases").ConfigureAwait(false); 64 | var releases = JsonConvert.DeserializeObject>(releasesJson); 65 | 66 | LatestRelease = releases.First().Tag_Name; 67 | } 68 | catch (Exception e) 69 | { 70 | OnGetLatestReleaseFailed(e.Message); 71 | } 72 | } 73 | 74 | void OnGetLatestReleaseFailed(string message) => _getLatestReleaseFailedEventManager.RaiseEvent(this, message, nameof(GetLatestReleaseFailed)); 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /AsyncCommandSample.UnitTests/Mocks/MockPreferences.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using Xamarin.Essentials.Interfaces; 4 | 5 | namespace AsyncCommandSample.UnitTests 6 | { 7 | class MockPreferences : IPreferences 8 | { 9 | readonly static Lazy _hashtableHolder = new(); 10 | 11 | Hashtable Hashtable => _hashtableHolder.Value; 12 | 13 | public void Clear() => Hashtable.Clear(); 14 | 15 | public void Clear(string sharedName) => throw new NotImplementedException(); 16 | 17 | public bool ContainsKey(string key) => Hashtable.Contains(key); 18 | 19 | public bool ContainsKey(string key, string sharedName) => throw new NotImplementedException(); 20 | 21 | public string? Get(string key, string defaultValue) => Get(key, defaultValue); 22 | 23 | public bool Get(string key, bool defaultValue) => Get(key, defaultValue); 24 | 25 | public int Get(string key, int defaultValue) => Get(key, defaultValue); 26 | 27 | public double Get(string key, double defaultValue) => Get(key, defaultValue); 28 | 29 | public float Get(string key, float defaultValue) => Get(key, defaultValue); 30 | 31 | public long Get(string key, long defaultValue) => Get(key, defaultValue); 32 | 33 | public DateTime Get(string key, DateTime defaultValue) => Get(key, defaultValue); 34 | 35 | public string Get(string key, string defaultValue, string sharedName) => throw new NotImplementedException(); 36 | 37 | public bool Get(string key, bool defaultValue, string sharedName) => throw new NotImplementedException(); 38 | 39 | public int Get(string key, int defaultValue, string sharedName) => throw new NotImplementedException(); 40 | 41 | public double Get(string key, double defaultValue, string sharedName) => throw new NotImplementedException(); 42 | 43 | public float Get(string key, float defaultValue, string sharedName) => throw new NotImplementedException(); 44 | 45 | public long Get(string key, long defaultValue, string sharedName) => throw new NotImplementedException(); 46 | 47 | public DateTime Get(string key, DateTime defaultValue, string sharedName) => throw new NotImplementedException(); 48 | 49 | public void Remove(string key) => Hashtable.Remove(key); 50 | 51 | public void Remove(string key, string sharedName) => throw new NotImplementedException(); 52 | 53 | public void Set(string key, string value) => Set(key, value); 54 | 55 | public void Set(string key, bool value) => Set(key, value); 56 | 57 | public void Set(string key, int value) => Set(key, value); 58 | 59 | public void Set(string key, double value) => Set(key, value); 60 | 61 | public void Set(string key, float value) => Set(key, value); 62 | 63 | public void Set(string key, long value) => Set(key, value); 64 | 65 | public void Set(string key, DateTime value) => Set(key, value); 66 | 67 | public void Set(string key, string value, string sharedName) => throw new NotImplementedException(); 68 | 69 | public void Set(string key, bool value, string sharedName) => throw new NotImplementedException(); 70 | 71 | public void Set(string key, int value, string sharedName) => throw new NotImplementedException(); 72 | 73 | public void Set(string key, double value, string sharedName) => throw new NotImplementedException(); 74 | 75 | public void Set(string key, float value, string sharedName) => throw new NotImplementedException(); 76 | 77 | public void Set(string key, long value, string sharedName) => throw new NotImplementedException(); 78 | 79 | public void Set(string key, DateTime value, string sharedName) => throw new NotImplementedException(); 80 | 81 | T? Get(string key, T defaultValue) 82 | { 83 | if (Hashtable.ContainsKey(key)) 84 | return (T?)Hashtable[key]; 85 | 86 | return defaultValue; 87 | } 88 | 89 | void Set(string key, T value) 90 | { 91 | if (Hashtable.ContainsKey(key)) 92 | Hashtable[key] = value; 93 | else 94 | Hashtable.Add(key, value); 95 | } 96 | } 97 | } 98 | -------------------------------------------------------------------------------- /AsyncCommandSample.Android/AsyncCommandSample.Android.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Debug 5 | AnyCPU 6 | {F9956194-80C1-4CC4-BB26-B4ACFFD7B445} 7 | {EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 8 | {c9e5eea5-ca05-42a1-839b-61506e0a37df} 9 | Library 10 | AsyncCommandSample.Droid 11 | AsyncCommandSample.Android 12 | True 13 | True 14 | Resources\Resource.designer.cs 15 | Resource 16 | Properties\AndroidManifest.xml 17 | Resources 18 | Assets 19 | v13.0 20 | true 21 | true 22 | Xamarin.Android.Net.AndroidClientHandler 23 | 24 | 25 | true 26 | portable 27 | false 28 | bin\Debug 29 | DEBUG; 30 | prompt 31 | 4 32 | None 33 | 34 | 35 | true 36 | portable 37 | true 38 | bin\Release 39 | prompt 40 | 4 41 | true 42 | false 43 | 44 | 45 | 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 | {F9376E21-41E5-4015-981B-A7C9A4FA41F8} 91 | AsyncCommandSample 92 | 93 | 94 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /AsyncCommandSample.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 16 4 | VisualStudioVersion = 16.0.809.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AsyncCommandSample.Android", "AsyncCommandSample.Android\AsyncCommandSample.Android.csproj", "{F9956194-80C1-4CC4-BB26-B4ACFFD7B445}" 7 | EndProject 8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AsyncCommandSample.iOS", "AsyncCommandSample.iOS\AsyncCommandSample.iOS.csproj", "{F33F3528-7466-4B47-B7EC-A9D34D61E422}" 9 | EndProject 10 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AsyncCommandSample", "AsyncCommandSample\AsyncCommandSample.csproj", "{F9376E21-41E5-4015-981B-A7C9A4FA41F8}" 11 | EndProject 12 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AsyncCommandSample.UnitTests", "AsyncCommandSample.UnitTests\AsyncCommandSample.UnitTests.csproj", "{31D6262F-E5CD-4328-B22C-9A5F0FD25F96}" 13 | EndProject 14 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{B3554412-830C-4152-BC1D-B7DC66C3C07B}" 15 | ProjectSection(SolutionItems) = preProject 16 | Directory.Build.props = Directory.Build.props 17 | EndProjectSection 18 | EndProject 19 | Global 20 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 21 | Debug|Any CPU = Debug|Any CPU 22 | Release|Any CPU = Release|Any CPU 23 | Debug|iPhoneSimulator = Debug|iPhoneSimulator 24 | Release|iPhoneSimulator = Release|iPhoneSimulator 25 | Debug|iPhone = Debug|iPhone 26 | Release|iPhone = Release|iPhone 27 | EndGlobalSection 28 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 29 | {F9956194-80C1-4CC4-BB26-B4ACFFD7B445}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 30 | {F9956194-80C1-4CC4-BB26-B4ACFFD7B445}.Debug|Any CPU.Build.0 = Debug|Any CPU 31 | {F9956194-80C1-4CC4-BB26-B4ACFFD7B445}.Release|Any CPU.ActiveCfg = Release|Any CPU 32 | {F9956194-80C1-4CC4-BB26-B4ACFFD7B445}.Release|Any CPU.Build.0 = Release|Any CPU 33 | {F9956194-80C1-4CC4-BB26-B4ACFFD7B445}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU 34 | {F9956194-80C1-4CC4-BB26-B4ACFFD7B445}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU 35 | {F9956194-80C1-4CC4-BB26-B4ACFFD7B445}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU 36 | {F9956194-80C1-4CC4-BB26-B4ACFFD7B445}.Release|iPhoneSimulator.Build.0 = Release|Any CPU 37 | {F9956194-80C1-4CC4-BB26-B4ACFFD7B445}.Debug|iPhone.ActiveCfg = Debug|Any CPU 38 | {F9956194-80C1-4CC4-BB26-B4ACFFD7B445}.Debug|iPhone.Build.0 = Debug|Any CPU 39 | {F9956194-80C1-4CC4-BB26-B4ACFFD7B445}.Release|iPhone.ActiveCfg = Release|Any CPU 40 | {F9956194-80C1-4CC4-BB26-B4ACFFD7B445}.Release|iPhone.Build.0 = Release|Any CPU 41 | {F33F3528-7466-4B47-B7EC-A9D34D61E422}.Debug|Any CPU.ActiveCfg = Debug|iPhoneSimulator 42 | {F33F3528-7466-4B47-B7EC-A9D34D61E422}.Debug|Any CPU.Build.0 = Debug|iPhoneSimulator 43 | {F33F3528-7466-4B47-B7EC-A9D34D61E422}.Release|Any CPU.ActiveCfg = Release|iPhoneSimulator 44 | {F33F3528-7466-4B47-B7EC-A9D34D61E422}.Release|Any CPU.Build.0 = Release|iPhoneSimulator 45 | {F33F3528-7466-4B47-B7EC-A9D34D61E422}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator 46 | {F33F3528-7466-4B47-B7EC-A9D34D61E422}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator 47 | {F33F3528-7466-4B47-B7EC-A9D34D61E422}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator 48 | {F33F3528-7466-4B47-B7EC-A9D34D61E422}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator 49 | {F33F3528-7466-4B47-B7EC-A9D34D61E422}.Debug|iPhone.ActiveCfg = Debug|iPhone 50 | {F33F3528-7466-4B47-B7EC-A9D34D61E422}.Debug|iPhone.Build.0 = Debug|iPhone 51 | {F33F3528-7466-4B47-B7EC-A9D34D61E422}.Release|iPhone.ActiveCfg = Release|iPhone 52 | {F33F3528-7466-4B47-B7EC-A9D34D61E422}.Release|iPhone.Build.0 = Release|iPhone 53 | {F9376E21-41E5-4015-981B-A7C9A4FA41F8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 54 | {F9376E21-41E5-4015-981B-A7C9A4FA41F8}.Debug|Any CPU.Build.0 = Debug|Any CPU 55 | {F9376E21-41E5-4015-981B-A7C9A4FA41F8}.Release|Any CPU.ActiveCfg = Release|Any CPU 56 | {F9376E21-41E5-4015-981B-A7C9A4FA41F8}.Release|Any CPU.Build.0 = Release|Any CPU 57 | {F9376E21-41E5-4015-981B-A7C9A4FA41F8}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU 58 | {F9376E21-41E5-4015-981B-A7C9A4FA41F8}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU 59 | {F9376E21-41E5-4015-981B-A7C9A4FA41F8}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU 60 | {F9376E21-41E5-4015-981B-A7C9A4FA41F8}.Release|iPhoneSimulator.Build.0 = Release|Any CPU 61 | {F9376E21-41E5-4015-981B-A7C9A4FA41F8}.Debug|iPhone.ActiveCfg = Debug|Any CPU 62 | {F9376E21-41E5-4015-981B-A7C9A4FA41F8}.Debug|iPhone.Build.0 = Debug|Any CPU 63 | {F9376E21-41E5-4015-981B-A7C9A4FA41F8}.Release|iPhone.ActiveCfg = Release|Any CPU 64 | {F9376E21-41E5-4015-981B-A7C9A4FA41F8}.Release|iPhone.Build.0 = Release|Any CPU 65 | {31D6262F-E5CD-4328-B22C-9A5F0FD25F96}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 66 | {31D6262F-E5CD-4328-B22C-9A5F0FD25F96}.Debug|Any CPU.Build.0 = Debug|Any CPU 67 | {31D6262F-E5CD-4328-B22C-9A5F0FD25F96}.Release|Any CPU.ActiveCfg = Release|Any CPU 68 | {31D6262F-E5CD-4328-B22C-9A5F0FD25F96}.Release|Any CPU.Build.0 = Release|Any CPU 69 | {31D6262F-E5CD-4328-B22C-9A5F0FD25F96}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU 70 | {31D6262F-E5CD-4328-B22C-9A5F0FD25F96}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU 71 | {31D6262F-E5CD-4328-B22C-9A5F0FD25F96}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU 72 | {31D6262F-E5CD-4328-B22C-9A5F0FD25F96}.Release|iPhoneSimulator.Build.0 = Release|Any CPU 73 | {31D6262F-E5CD-4328-B22C-9A5F0FD25F96}.Debug|iPhone.ActiveCfg = Debug|Any CPU 74 | {31D6262F-E5CD-4328-B22C-9A5F0FD25F96}.Debug|iPhone.Build.0 = Debug|Any CPU 75 | {31D6262F-E5CD-4328-B22C-9A5F0FD25F96}.Release|iPhone.ActiveCfg = Release|Any CPU 76 | {31D6262F-E5CD-4328-B22C-9A5F0FD25F96}.Release|iPhone.Build.0 = Release|Any CPU 77 | EndGlobalSection 78 | GlobalSection(SolutionProperties) = preSolution 79 | HideSolutionNode = FALSE 80 | EndGlobalSection 81 | GlobalSection(ExtensibilityGlobals) = postSolution 82 | SolutionGuid = {7C4E2648-E950-4922-BF92-8744716EF392} 83 | EndGlobalSection 84 | EndGlobal 85 | -------------------------------------------------------------------------------- /AsyncCommandSample.iOS/AsyncCommandSample.iOS.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Debug 5 | iPhoneSimulator 6 | 8.0.30703 7 | 2.0 8 | {F33F3528-7466-4B47-B7EC-A9D34D61E422} 9 | {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 10 | {6143fdea-f3c2-4a09-aafa-6e230626515e} 11 | Exe 12 | AsyncCommandSample.iOS 13 | Resources 14 | AsyncCommandSample.iOS 15 | true 16 | NSUrlSessionHandler 17 | automatic 18 | 19 | 20 | true 21 | full 22 | false 23 | bin\iPhoneSimulator\Debug 24 | DEBUG 25 | prompt 26 | 4 27 | x86_64 28 | None 29 | true 30 | 31 | 32 | none 33 | true 34 | bin\iPhoneSimulator\Release 35 | prompt 36 | 4 37 | None 38 | x86_64 39 | 40 | 41 | true 42 | full 43 | false 44 | bin\iPhone\Debug 45 | DEBUG 46 | prompt 47 | 4 48 | ARM64 49 | iPhone Developer 50 | true 51 | Entitlements.plist 52 | None 53 | -all 54 | 55 | 56 | none 57 | true 58 | bin\iPhone\Release 59 | prompt 60 | 4 61 | ARM64 62 | iPhone Developer 63 | Entitlements.plist 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | false 76 | 77 | 78 | false 79 | 80 | 81 | false 82 | 83 | 84 | false 85 | 86 | 87 | false 88 | 89 | 90 | false 91 | 92 | 93 | false 94 | 95 | 96 | false 97 | 98 | 99 | false 100 | 101 | 102 | false 103 | 104 | 105 | false 106 | 107 | 108 | false 109 | 110 | 111 | false 112 | 113 | 114 | false 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | {F9376E21-41E5-4015-981B-A7C9A4FA41F8} 135 | AsyncCommandSample 136 | 137 | 138 | 139 | 140 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | # Created by https://www.gitignore.io/api/xamarinstudio,visualstudio,visualstudiocode,xcode,android,macos,csharp,f#,fastlane,java,jetbrains,linux,monodevelop,objective-c,swift,sublimetext,unity 3 | 4 | **/.vscode* 5 | 6 | ### fastlane ### 7 | # fastlane - A streamlined workflow tool for Cocoa deployment 8 | 9 | # fastlane specific 10 | fastlane/report.xml 11 | 12 | # deliver temporary files 13 | fastlane/Preview.html 14 | 15 | # snapshot generated screenshots 16 | fastlane/screenshots/**/*.png 17 | fastlane/screenshots/screenshots.html 18 | 19 | # scan temporary files 20 | fastlane/test_output 21 | 22 | **/__*.json 23 | **/local.settings.json 24 | 25 | 26 | ### XamarinStudio ### 27 | bin/ 28 | obj/ 29 | *.userprefs 30 | 31 | 32 | ### VisualStudioCode ### 33 | .vscode/* 34 | !.vscode/settings.json 35 | !.vscode/tasks.json 36 | !.vscode/launch.json 37 | !.vscode/extensions.json 38 | 39 | 40 | ### Xcode ### 41 | # Xcode 42 | # 43 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 44 | 45 | ## Build generated 46 | build/ 47 | DerivedData/ 48 | 49 | ## Various settings 50 | *.pbxuser 51 | !default.pbxuser 52 | *.mode1v3 53 | !default.mode1v3 54 | *.mode2v3 55 | !default.mode2v3 56 | *.perspectivev3 57 | !default.perspectivev3 58 | xcuserdata/ 59 | 60 | ## Other 61 | *.moved-aside 62 | *.xccheckout 63 | *.xcscmblueprint 64 | 65 | 66 | ### Android ### 67 | # Built application files 68 | *.apk 69 | *.ap_ 70 | 71 | # Files for the ART/Dalvik VM 72 | *.dex 73 | 74 | # Java class files 75 | *.class 76 | 77 | # Generated files 78 | gen/ 79 | out/ 80 | Resource.designer.cs 81 | 82 | # Gradle files 83 | .gradle/ 84 | 85 | # Local configuration file (sdk path, etc) 86 | local.properties 87 | 88 | # Proguard folder generated by Eclipse 89 | proguard/ 90 | 91 | # Log Files 92 | *.log 93 | 94 | # Android Studio Navigation editor temp files 95 | .navigation/ 96 | 97 | # Android Studio captures folder 98 | captures/ 99 | 100 | # Intellij 101 | *.iml 102 | .idea/workspace.xml 103 | .idea/tasks.xml 104 | .idea/libraries 105 | 106 | # Keystore files 107 | *.jks 108 | 109 | # External native build folder generated in Android Studio 2.2 and later 110 | .externalNativeBuild 111 | 112 | ### Android Patch ### 113 | gen-external-apklibs 114 | 115 | 116 | ### macOS ### 117 | *.DS_Store 118 | .AppleDouble 119 | .LSOverride 120 | 121 | # Icon must end with two \r 122 | Icon 123 | # Thumbnails 124 | ._* 125 | # Files that might appear in the root of a volume 126 | .DocumentRevisions-V100 127 | .fseventsd 128 | .Spotlight-V100 129 | .TemporaryItems 130 | .Trashes 131 | .VolumeIcon.icns 132 | .com.apple.timemachine.donotpresent 133 | # Directories potentially created on remote AFP share 134 | .AppleDB 135 | .AppleDesktop 136 | Network Trash Folder 137 | Temporary Items 138 | .apdisk 139 | 140 | 141 | ### Csharp ### 142 | ## Ignore Visual Studio temporary files, build results, and 143 | ## files generated by popular Visual Studio add-ons. 144 | ## 145 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 146 | 147 | # User-specific files 148 | *.suo 149 | *.user 150 | *.userosscache 151 | *.sln.docstates 152 | *.vcxproj.filters 153 | 154 | # User-specific files (MonoDevelop/Xamarin Studio) 155 | 156 | # Build results 157 | [Dd]ebug/ 158 | [Dd]ebugPublic/ 159 | [Rr]elease/ 160 | [Rr]eleases/ 161 | x64/ 162 | x86/ 163 | bld/ 164 | [Bb]in/ 165 | [Oo]bj/ 166 | [Ll]og/ 167 | 168 | # Visual Studio 2015 cache/options directory 169 | .vs/ 170 | # Uncomment if you have tasks that create the project's static files in wwwroot 171 | #wwwroot/ 172 | 173 | # MSTest test Results 174 | [Tt]est[Rr]esult*/ 175 | [Bb]uild[Ll]og.* 176 | 177 | # NUNIT 178 | *.VisualState.xml 179 | TestResult.xml 180 | 181 | # Build Results of an ATL Project 182 | [Dd]ebugPS/ 183 | [Rr]eleasePS/ 184 | dlldata.c 185 | 186 | # .NET Core 187 | project.lock.json 188 | project.fragment.lock.json 189 | artifacts/ 190 | **/Properties/launchSettings.json 191 | 192 | *_i.c 193 | *_p.c 194 | *_i.h 195 | *.ilk 196 | *.meta 197 | *.obj 198 | *.pch 199 | *.pdb 200 | *.pgc 201 | *.pgd 202 | *.rsp 203 | *.sbr 204 | *.tlb 205 | *.tli 206 | *.tlh 207 | *.tmp 208 | *.tmp_proj 209 | *.vspscc 210 | *.vssscc 211 | .builds 212 | *.pidb 213 | *.svclog 214 | *.scc 215 | 216 | # Chutzpah Test files 217 | _Chutzpah* 218 | 219 | # Visual C++ cache files 220 | ipch/ 221 | *.aps 222 | *.ncb 223 | *.opendb 224 | *.opensdf 225 | *.sdf 226 | *.cachefile 227 | *.VC.db 228 | *.VC.VC.opendb 229 | 230 | # Visual Studio profiler 231 | *.psess 232 | *.vsp 233 | *.vspx 234 | *.sap 235 | 236 | # TFS 2012 Local Workspace 237 | $tf/ 238 | 239 | # Guidance Automation Toolkit 240 | *.gpState 241 | 242 | # ReSharper is a .NET coding add-in 243 | _ReSharper*/ 244 | *.[Rr]e[Ss]harper 245 | *.DotSettings.user 246 | 247 | # JustCode is a .NET coding add-in 248 | .JustCode 249 | 250 | # TeamCity is a build add-in 251 | _TeamCity* 252 | 253 | # DotCover is a Code Coverage Tool 254 | *.dotCover 255 | 256 | # Visual Studio code coverage results 257 | *.coverage 258 | *.coveragexml 259 | 260 | # NCrunch 261 | _NCrunch_* 262 | .*crunch*.local.xml 263 | nCrunchTemp_* 264 | 265 | # MightyMoose 266 | *.mm.* 267 | AutoTest.Net/ 268 | 269 | # Web workbench (sass) 270 | .sass-cache/ 271 | 272 | # Installshield output folder 273 | [Ee]xpress/ 274 | 275 | # DocProject is a documentation generator add-in 276 | DocProject/buildhelp/ 277 | DocProject/Help/*.HxT 278 | DocProject/Help/*.HxC 279 | DocProject/Help/*.hhc 280 | DocProject/Help/*.hhk 281 | DocProject/Help/*.hhp 282 | DocProject/Help/Html2 283 | DocProject/Help/html 284 | 285 | # Click-Once directory 286 | publish/ 287 | 288 | # Publish Web Output 289 | *.[Pp]ublish.xml 290 | *.azurePubxml 291 | # TODO: Comment the next line if you want to checkin your web deploy settings 292 | # but database connection strings (with potential passwords) will be unencrypted 293 | *.pubxml 294 | *.publishproj 295 | 296 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 297 | # checkin your Azure Web App publish settings, but sensitive information contained 298 | # in these scripts will be unencrypted 299 | PublishScripts/ 300 | 301 | # NuGet Packages 302 | *.nupkg 303 | # The packages folder can be ignored because of Package Restore 304 | **/packages/* 305 | # except build/, which is used as an MSBuild target. 306 | !**/packages/build/ 307 | # Uncomment if necessary however generally it will be regenerated when needed 308 | #!**/packages/repositories.config 309 | # NuGet v3's project.json files produces more ignoreable files 310 | *.nuget.props 311 | *.nuget.targets 312 | 313 | # Microsoft Azure Build Output 314 | csx/ 315 | *.build.csdef 316 | 317 | # Microsoft Azure Emulator 318 | ecf/ 319 | rcf/ 320 | 321 | # Windows Store app package directories and files 322 | AppPackages/ 323 | BundleArtifacts/ 324 | _pkginfo.txt 325 | 326 | # Visual Studio cache files 327 | # files ending in .cache can be ignored 328 | *.[Cc]ache 329 | # but keep track of directories ending in .cache 330 | !*.[Cc]ache/ 331 | 332 | # Others 333 | ClientBin/ 334 | ~$* 335 | *~ 336 | *.dbmdl 337 | *.dbproj.schemaview 338 | *.jfm 339 | *.pfx 340 | *.publishsettings 341 | node_modules/ 342 | orleans.codegen.cs 343 | 344 | # Since there are multiple workflows, uncomment next line to ignore bower_components 345 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 346 | #bower_components/ 347 | 348 | # RIA/Silverlight projects 349 | Generated_Code/ 350 | 351 | # Backup & report files from converting an old project file 352 | # to a newer Visual Studio version. Backup files are not needed, 353 | # because we have git ;-) 354 | _UpgradeReport_Files/ 355 | Backup*/ 356 | UpgradeLog*.XML 357 | UpgradeLog*.htm 358 | 359 | # SQL Server files 360 | *.mdf 361 | *.ldf 362 | 363 | # Business Intelligence projects 364 | *.rdl.data 365 | *.bim.layout 366 | *.bim_*.settings 367 | 368 | # Microsoft Fakes 369 | FakesAssemblies/ 370 | 371 | # GhostDoc plugin setting file 372 | *.GhostDoc.xml 373 | 374 | # Node.js Tools for Visual Studio 375 | .ntvs_analysis.dat 376 | 377 | # Visual Studio 6 build log 378 | *.plg 379 | 380 | # Visual Studio 6 workspace options file 381 | *.opt 382 | 383 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 384 | *.vbw 385 | 386 | # Visual Studio LightSwitch build output 387 | **/*.HTMLClient/GeneratedArtifacts 388 | **/*.DesktopClient/GeneratedArtifacts 389 | **/*.DesktopClient/ModelManifest.xml 390 | **/*.Server/GeneratedArtifacts 391 | **/*.Server/ModelManifest.xml 392 | _Pvt_Extensions 393 | 394 | # Paket dependency manager 395 | .paket/paket.exe 396 | paket-files/ 397 | 398 | # FAKE - F# Make 399 | .fake/ 400 | 401 | # JetBrains Rider 402 | .idea/ 403 | *.sln.iml 404 | 405 | # CodeRush 406 | .cr/ 407 | 408 | # Python Tools for Visual Studio (PTVS) 409 | __pycache__/ 410 | *.pyc 411 | 412 | # Cake - Uncomment if you are using it 413 | # tools/ 414 | 415 | 416 | ### F# ### 417 | lib/debug 418 | lib/release 419 | Debug 420 | obj 421 | bin 422 | *.exe 423 | !.paket/paket.bootstrapper.exe 424 | 425 | 426 | ### SublimeText ### 427 | # cache files for sublime text 428 | *.tmlanguage.cache 429 | *.tmPreferences.cache 430 | *.stTheme.cache 431 | 432 | # workspace files are user-specific 433 | *.sublime-workspace 434 | 435 | # project files should be checked into the repository, unless a significant 436 | # proportion of contributors will probably not be using SublimeText 437 | # *.sublime-project 438 | 439 | # sftp configuration file 440 | sftp-config.json 441 | 442 | # Package control specific files 443 | Package Control.last-run 444 | Package Control.ca-list 445 | Package Control.ca-bundle 446 | Package Control.system-ca-bundle 447 | Package Control.cache/ 448 | Package Control.ca-certs/ 449 | bh_unicode_properties.cache 450 | 451 | # Sublime-github package stores a github token in this file 452 | # https://packagecontrol.io/packages/sublime-github 453 | GitHub.sublime-settings 454 | 455 | 456 | ### Swift ### 457 | # Xcode 458 | # 459 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 460 | 461 | ## Build generated 462 | 463 | ## Various settings 464 | 465 | ## Other 466 | *.xcuserstate 467 | 468 | ## Obj-C/Swift specific 469 | *.hmap 470 | *.ipa 471 | *.dSYM.zip 472 | *.dSYM 473 | 474 | ## Playgrounds 475 | timeline.xctimeline 476 | playground.xcworkspace 477 | 478 | # Swift Package Manager 479 | # 480 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 481 | # Packages/ 482 | .build/ 483 | 484 | # CocoaPods 485 | # 486 | # We recommend against adding the Pods directory to your .gitignore. However 487 | # you should judge for yourself, the pros and cons are mentioned at: 488 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 489 | # 490 | # Pods/ 491 | 492 | # Carthage 493 | # 494 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 495 | # Carthage/Checkouts 496 | 497 | Carthage/Build 498 | 499 | # fastlane 500 | # 501 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 502 | # screenshots whenever they are needed. 503 | # For more information about the recommended setup visit: 504 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md 505 | 506 | fastlane/screenshots 507 | 508 | 509 | ### JetBrains ### 510 | # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm 511 | # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 512 | 513 | # User-specific stuff: 514 | 515 | # Sensitive or high-churn files: 516 | .idea/dataSources/ 517 | .idea/dataSources.ids 518 | .idea/dataSources.xml 519 | .idea/dataSources.local.xml 520 | .idea/sqlDataSources.xml 521 | .idea/dynamic.xml 522 | .idea/uiDesigner.xml 523 | 524 | # Gradle: 525 | .idea/gradle.xml 526 | 527 | # Mongo Explorer plugin: 528 | .idea/mongoSettings.xml 529 | 530 | ## File-based project format: 531 | *.iws 532 | 533 | ## Plugin-specific files: 534 | 535 | # IntelliJ 536 | /out/ 537 | 538 | # mpeltonen/sbt-idea plugin 539 | .idea_modules/ 540 | 541 | # JIRA plugin 542 | atlassian-ide-plugin.xml 543 | 544 | # Crashlytics plugin (for Android Studio and IntelliJ) 545 | com_crashlytics_export_strings.xml 546 | crashlytics.properties 547 | crashlytics-build.properties 548 | fabric.properties 549 | 550 | ### JetBrains Patch ### 551 | # Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721 552 | 553 | # *.iml 554 | # modules.xml 555 | # .idea/misc.xml 556 | # *.ipr 557 | 558 | 559 | ### Linux ### 560 | 561 | # temporary files which can be created if a process still has a handle open of a deleted file 562 | .fuse_hidden* 563 | 564 | # KDE directory preferences 565 | .directory 566 | 567 | # Linux trash folder which might appear on any partition or disk 568 | .Trash-* 569 | 570 | # .nfs files are created when an open file is removed but is still being accessed 571 | .nfs* 572 | 573 | 574 | ### MonoDevelop ### 575 | #User Specific 576 | *.usertasks 577 | 578 | #Mono Project Files 579 | *.resources 580 | test-results/ 581 | 582 | 583 | ### Objective-C ### 584 | # Xcode 585 | # 586 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 587 | 588 | ## Build generated 589 | 590 | ## Various settings 591 | 592 | ## Other 593 | 594 | ## Obj-C/Swift specific 595 | 596 | # CocoaPods 597 | # 598 | # We recommend against adding the Pods directory to your .gitignore. However 599 | # you should judge for yourself, the pros and cons are mentioned at: 600 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 601 | # 602 | # Pods/ 603 | 604 | # Carthage 605 | # 606 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 607 | # Carthage/Checkouts 608 | 609 | 610 | # fastlane 611 | # 612 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 613 | # screenshots whenever they are needed. 614 | # For more information about the recommended setup visit: 615 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md 616 | 617 | 618 | # Code Injection 619 | # 620 | # After new code Injection tools there's a generated folder /iOSInjectionProject 621 | # https://github.com/johnno1962/injectionforxcode 622 | 623 | iOSInjectionProject/ 624 | 625 | ### Objective-C Patch ### 626 | 627 | 628 | ### Unity ### 629 | /[Ll]ibrary/ 630 | /[Tt]emp/ 631 | /[Oo]bj/ 632 | /[Bb]uild/ 633 | /[Bb]uilds/ 634 | /Assets/AssetStoreTools* 635 | 636 | # Autogenerated VS/MD/Consulo solution and project files 637 | ExportedObj/ 638 | .consulo/*.csproj 639 | .consulo/*.unityproj 640 | .consulo/*.sln 641 | .consulo/*.booproj 642 | .consulo/*.svd 643 | 644 | 645 | # Unity3D generated meta files 646 | *.pidb.meta 647 | 648 | # Unity3D Generated File On Crash Reports 649 | sysinfo.txt 650 | 651 | # Builds 652 | *.unitypackage 653 | 654 | 655 | ### Java ### 656 | 657 | # BlueJ files 658 | *.ctxt 659 | 660 | # Mobile Tools for Java (J2ME) 661 | .mtj.tmp/ 662 | 663 | # Package Files # 664 | *.jar 665 | *.war 666 | *.ear 667 | 668 | # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml 669 | hs_err_pid* 670 | 671 | # MFractor 672 | .mfractor/ 673 | 674 | ### VisualStudio ### 675 | ## Ignore Visual Studio temporary files, build results, and 676 | ## files generated by popular Visual Studio add-ons. 677 | ## 678 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 679 | 680 | # User-specific files 681 | 682 | # User-specific files (MonoDevelop/Xamarin Studio) 683 | 684 | # Build results 685 | 686 | # Visual Studio 2015 cache/options directory 687 | # Uncomment if you have tasks that create the project's static files in wwwroot 688 | #wwwroot/ 689 | 690 | # MSTest test Results 691 | 692 | # NUNIT 693 | 694 | # Build Results of an ATL Project 695 | 696 | # .NET Core 697 | 698 | 699 | # Chutzpah Test files 700 | 701 | # Visual C++ cache files 702 | 703 | # Visual Studio profiler 704 | 705 | # TFS 2012 Local Workspace 706 | 707 | # Guidance Automation Toolkit 708 | 709 | # ReSharper is a .NET coding add-in 710 | 711 | # JustCode is a .NET coding add-in 712 | 713 | # TeamCity is a build add-in 714 | 715 | # DotCover is a Code Coverage Tool 716 | 717 | # Visual Studio code coverage results 718 | 719 | # NCrunch 720 | 721 | # MightyMoose 722 | 723 | # Web workbench (sass) 724 | 725 | # Installshield output folder 726 | 727 | # DocProject is a documentation generator add-in 728 | 729 | # Click-Once directory 730 | 731 | # Publish Web Output 732 | # TODO: Comment the next line if you want to checkin your web deploy settings 733 | # but database connection strings (with potential passwords) will be unencrypted 734 | 735 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 736 | # checkin your Azure Web App publish settings, but sensitive information contained 737 | # in these scripts will be unencrypted 738 | 739 | # NuGet Packages 740 | # The packages folder can be ignored because of Package Restore 741 | # except build/, which is used as an MSBuild target. 742 | # Uncomment if necessary however generally it will be regenerated when needed 743 | #!**/packages/repositories.config 744 | # NuGet v3's project.json files produces more ignoreable files 745 | 746 | # Microsoft Azure Build Output 747 | 748 | # Microsoft Azure Emulator 749 | 750 | # Windows Store app package directories and files 751 | 752 | # Visual Studio cache files 753 | # files ending in .cache can be ignored 754 | # but keep track of directories ending in .cache 755 | 756 | # Others 757 | 758 | # Since there are multiple workflows, uncomment next line to ignore bower_components 759 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 760 | #bower_components/ 761 | 762 | # RIA/Silverlight projects 763 | 764 | # Backup & report files from converting an old project file 765 | # to a newer Visual Studio version. Backup files are not needed, 766 | # because we have git ;-) 767 | 768 | # SQL Server files 769 | 770 | # Business Intelligence projects 771 | 772 | # Microsoft Fakes 773 | 774 | # GhostDoc plugin setting file 775 | 776 | # Node.js Tools for Visual Studio 777 | 778 | # Visual Studio 6 build log 779 | 780 | # Visual Studio 6 workspace options file 781 | 782 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 783 | 784 | # Visual Studio LightSwitch build output 785 | 786 | # Paket dependency manager 787 | 788 | # FAKE - F# Make 789 | 790 | # JetBrains Rider 791 | 792 | # CodeRush 793 | 794 | # Python Tools for Visual Studio (PTVS) 795 | 796 | # Cake - Uncomment if you are using it 797 | # tools/ 798 | 799 | ### VisualStudio Patch ### 800 | 801 | # End of https://www.gitignore.io/api/xamarinstudio,visualstudio,visualstudiocode,xcode,android,macos,csharp,f#,fastlane,java,jetbrains,linux,monodevelop,objective-c,swift,sublimetext,unity 802 | --------------------------------------------------------------------------------