diff --git a/tests/dotnet/MyXamarinFormsApp/AppDelegate.cs b/tests/dotnet/MyXamarinFormsApp/AppDelegate.cs new file mode 100644 index 0000000000..baf8693f5f --- /dev/null +++ b/tests/dotnet/MyXamarinFormsApp/AppDelegate.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using System.Linq; + +using Foundation; +using UIKit; + +namespace MyXamarinFormsApp.iOS +{ + // The UIApplicationDelegate for the application. This class is responsible for launching the + // User Interface of the application, as well as listening (and optionally responding) to + // application events from iOS. + [Register ("AppDelegate")] + public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate + { + // + // This method is invoked when the application has loaded and is ready to run. In this + // method you should instantiate the window, load the UI into it and then make the window + // visible. + // + // You have 17 seconds to return from this method, or iOS will terminate your application. + // + public override bool FinishedLaunching (UIApplication app, NSDictionary options) + { + global::Xamarin.Forms.Forms.Init (); + LoadApplication (new App ()); + + return base.FinishedLaunching (app, options); + } + } +} diff --git a/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Contents.json b/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000000..4564827fc3 --- /dev/null +++ b/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,117 @@ +{ + "images": [ + { + "scale": "2x", + "size": "20x20", + "idiom": "iphone", + "filename": "Icon40.png" + }, + { + "scale": "3x", + "size": "20x20", + "idiom": "iphone", + "filename": "Icon60.png" + }, + { + "scale": "2x", + "size": "29x29", + "idiom": "iphone", + "filename": "Icon58.png" + }, + { + "scale": "3x", + "size": "29x29", + "idiom": "iphone", + "filename": "Icon87.png" + }, + { + "scale": "2x", + "size": "40x40", + "idiom": "iphone", + "filename": "Icon80.png" + }, + { + "scale": "3x", + "size": "40x40", + "idiom": "iphone", + "filename": "Icon120.png" + }, + { + "scale": "2x", + "size": "60x60", + "idiom": "iphone", + "filename": "Icon120.png" + }, + { + "scale": "3x", + "size": "60x60", + "idiom": "iphone", + "filename": "Icon180.png" + }, + { + "scale": "1x", + "size": "20x20", + "idiom": "ipad", + "filename": "Icon20.png" + }, + { + "scale": "2x", + "size": "20x20", + "idiom": "ipad", + "filename": "Icon40.png" + }, + { + "scale": "1x", + "size": "29x29", + "idiom": "ipad", + "filename": "Icon29.png" + }, + { + "scale": "2x", + "size": "29x29", + "idiom": "ipad", + "filename": "Icon58.png" + }, + { + "scale": "1x", + "size": "40x40", + "idiom": "ipad", + "filename": "Icon40.png" + }, + { + "scale": "2x", + "size": "40x40", + "idiom": "ipad", + "filename": "Icon80.png" + }, + { + "scale": "1x", + "size": "76x76", + "idiom": "ipad", + "filename": "Icon76.png" + }, + { + "scale": "2x", + "size": "76x76", + "idiom": "ipad", + "filename": "Icon152.png" + }, + { + "scale": "2x", + "size": "83.5x83.5", + "idiom": "ipad", + "filename": "Icon167.png" + }, + { + "scale": "1x", + "size": "1024x1024", + "idiom": "ios-marketing", + "filename": "Icon1024.png" + } + ], + "properties": {}, + "info": { + "version": 1, + "author": "xcode" + } +} \ No newline at end of file diff --git a/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon1024.png b/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon1024.png new file mode 100644 index 0000000000..9174c989a9 Binary files /dev/null and b/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon1024.png differ diff --git a/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon120.png b/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon120.png new file mode 100644 index 0000000000..9c60a1761d Binary files /dev/null and b/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon120.png differ diff --git a/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon152.png b/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon152.png new file mode 100644 index 0000000000..448d6efb57 Binary files /dev/null and b/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon152.png differ diff --git a/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon167.png b/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon167.png new file mode 100644 index 0000000000..8524768f8d Binary files /dev/null and b/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon167.png differ diff --git a/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon180.png b/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon180.png new file mode 100644 index 0000000000..60a64703c0 Binary files /dev/null and b/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon180.png differ diff --git a/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon20.png b/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon20.png new file mode 100644 index 0000000000..45268a641c Binary files /dev/null and b/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon20.png differ diff --git a/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon29.png b/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon29.png new file mode 100644 index 0000000000..6a6c77a8b4 Binary files /dev/null and b/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon29.png differ diff --git a/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon40.png b/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon40.png new file mode 100644 index 0000000000..cc7edcf5cb Binary files /dev/null and b/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon40.png differ diff --git a/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon58.png b/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon58.png new file mode 100644 index 0000000000..1ad04f004b Binary files /dev/null and b/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon58.png differ diff --git a/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon60.png b/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon60.png new file mode 100644 index 0000000000..2dd52620a8 Binary files /dev/null and b/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon60.png differ diff --git a/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon76.png b/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon76.png new file mode 100644 index 0000000000..b058cae2f4 Binary files /dev/null and b/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon76.png differ diff --git a/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon80.png b/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon80.png new file mode 100644 index 0000000000..02e47a2611 Binary files /dev/null and b/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon80.png differ diff --git a/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon87.png b/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon87.png new file mode 100644 index 0000000000..4954a4bd33 Binary files /dev/null and b/tests/dotnet/MyXamarinFormsApp/Assets.xcassets/AppIcon.appiconset/Icon87.png differ diff --git a/tests/dotnet/MyXamarinFormsApp/Directory.Build.targets b/tests/dotnet/MyXamarinFormsApp/Directory.Build.targets new file mode 100644 index 0000000000..13af3557dd --- /dev/null +++ b/tests/dotnet/MyXamarinFormsApp/Directory.Build.targets @@ -0,0 +1,23 @@ + + + + True + True + False + + + + + + + + + + + + + + diff --git a/tests/dotnet/MyXamarinFormsApp/Entitlements.plist b/tests/dotnet/MyXamarinFormsApp/Entitlements.plist new file mode 100644 index 0000000000..e9a3005f78 --- /dev/null +++ b/tests/dotnet/MyXamarinFormsApp/Entitlements.plist @@ -0,0 +1,7 @@ + + + + + + + diff --git a/tests/dotnet/MyXamarinFormsApp/Info.plist b/tests/dotnet/MyXamarinFormsApp/Info.plist new file mode 100644 index 0000000000..7f24d085eb --- /dev/null +++ b/tests/dotnet/MyXamarinFormsApp/Info.plist @@ -0,0 +1,38 @@ + + + + + UIDeviceFamily + + 1 + 2 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + MinimumOSVersion + 8.0 + CFBundleDisplayName + MyXamarinFormsApp + CFBundleIdentifier + com.xamarin.MyXamarinFormsApp + CFBundleVersion + 1.0 + UILaunchStoryboardName + LaunchScreen + CFBundleName + MyXamarinFormsApp + XSAppIconAssets + Assets.xcassets/AppIcon.appiconset + + diff --git a/tests/dotnet/MyXamarinFormsApp/Main.cs b/tests/dotnet/MyXamarinFormsApp/Main.cs new file mode 100644 index 0000000000..352521e952 --- /dev/null +++ b/tests/dotnet/MyXamarinFormsApp/Main.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Linq; + +using Foundation; +using UIKit; + +namespace MyXamarinFormsApp.iOS +{ + public class Application + { + // This is the main entry point of the application. + static void Main (string [] args) + { + // if you want to use a different Application Delegate class from "AppDelegate" + // you can specify it here. + UIApplication.Main (args, null, "AppDelegate"); + } + } +} diff --git a/tests/dotnet/MyXamarinFormsApp/MyXamarinFormsApp.csproj b/tests/dotnet/MyXamarinFormsApp/MyXamarinFormsApp.csproj new file mode 100644 index 0000000000..fbaebfa4ce --- /dev/null +++ b/tests/dotnet/MyXamarinFormsApp/MyXamarinFormsApp.csproj @@ -0,0 +1,31 @@ + + + + net6.0-ios + ios-x64 + Exe + false + + + + $(DefaultItemExcludes);MyXamarinFormsAppNS\** + + + + + + + + + + + + + + + + + + + + diff --git a/tests/dotnet/MyXamarinFormsApp/MyXamarinFormsAppNS/App.xaml b/tests/dotnet/MyXamarinFormsApp/MyXamarinFormsAppNS/App.xaml new file mode 100644 index 0000000000..a48f95ea9f --- /dev/null +++ b/tests/dotnet/MyXamarinFormsApp/MyXamarinFormsAppNS/App.xaml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/tests/dotnet/MyXamarinFormsApp/MyXamarinFormsAppNS/App.xaml.cs b/tests/dotnet/MyXamarinFormsApp/MyXamarinFormsAppNS/App.xaml.cs new file mode 100644 index 0000000000..585187d733 --- /dev/null +++ b/tests/dotnet/MyXamarinFormsApp/MyXamarinFormsAppNS/App.xaml.cs @@ -0,0 +1,31 @@ +using System; +using Xamarin.Forms; +using Xamarin.Forms.Xaml; + +namespace MyXamarinFormsApp +{ + public partial class App : Application + { + public App () + { + InitializeComponent (); + + MainPage = new MainPage (); + } + + protected override void OnStart () + { + // Handle when your app starts + } + + protected override void OnSleep () + { + // Handle when your app sleeps + } + + protected override void OnResume () + { + // Handle when your app resumes + } + } +} diff --git a/tests/dotnet/MyXamarinFormsApp/MyXamarinFormsAppNS/AssemblyInfo.cs b/tests/dotnet/MyXamarinFormsApp/MyXamarinFormsAppNS/AssemblyInfo.cs new file mode 100644 index 0000000000..e266eb6160 --- /dev/null +++ b/tests/dotnet/MyXamarinFormsApp/MyXamarinFormsAppNS/AssemblyInfo.cs @@ -0,0 +1,3 @@ +using Xamarin.Forms.Xaml; + +[assembly: XamlCompilation (XamlCompilationOptions.Compile)] \ No newline at end of file diff --git a/tests/dotnet/MyXamarinFormsApp/MyXamarinFormsAppNS/MainPage.xaml b/tests/dotnet/MyXamarinFormsApp/MyXamarinFormsAppNS/MainPage.xaml new file mode 100644 index 0000000000..4dacc6e78b --- /dev/null +++ b/tests/dotnet/MyXamarinFormsApp/MyXamarinFormsAppNS/MainPage.xaml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/tests/dotnet/MyXamarinFormsApp/MyXamarinFormsAppNS/MainPage.xaml.cs b/tests/dotnet/MyXamarinFormsApp/MyXamarinFormsAppNS/MainPage.xaml.cs new file mode 100644 index 0000000000..70ec94e181 --- /dev/null +++ b/tests/dotnet/MyXamarinFormsApp/MyXamarinFormsAppNS/MainPage.xaml.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Xamarin.Forms; + +namespace MyXamarinFormsApp +{ + // Learn more about making custom code visible in the Xamarin.Forms previewer + // by visiting https://aka.ms/xamarinforms-previewer + [DesignTimeVisible (false)] + public partial class MainPage : ContentPage + { + public MainPage () + { + InitializeComponent (); + } + } +} diff --git a/tests/dotnet/MyXamarinFormsApp/MyXamarinFormsAppNS/MyXamarinFormsAppNS.csproj b/tests/dotnet/MyXamarinFormsApp/MyXamarinFormsAppNS/MyXamarinFormsAppNS.csproj new file mode 100644 index 0000000000..714ff1fb90 --- /dev/null +++ b/tests/dotnet/MyXamarinFormsApp/MyXamarinFormsAppNS/MyXamarinFormsAppNS.csproj @@ -0,0 +1,12 @@ + + + + netstandard2.0 + true + + + + + + + \ No newline at end of file diff --git a/tests/dotnet/MyXamarinFormsApp/Properties/AssemblyInfo.cs b/tests/dotnet/MyXamarinFormsApp/Properties/AssemblyInfo.cs new file mode 100644 index 0000000000..8bddd26103 --- /dev/null +++ b/tests/dotnet/MyXamarinFormsApp/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle ("MyXamarinFormsApp.iOS")] +[assembly: AssemblyDescription ("")] +[assembly: AssemblyConfiguration ("")] +[assembly: AssemblyCompany ("")] +[assembly: AssemblyProduct ("MyXamarinFormsApp.iOS")] +[assembly: AssemblyCopyright ("Copyright © 2014")] +[assembly: AssemblyTrademark ("")] +[assembly: AssemblyCulture ("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible (false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid ("72bdc44f-c588-44f3-b6df-9aace7daafdd")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion ("1.0.0.0")] +[assembly: AssemblyFileVersion ("1.0.0.0")] diff --git a/tests/dotnet/MyXamarinFormsApp/Resources/Default-568h@2x.png b/tests/dotnet/MyXamarinFormsApp/Resources/Default-568h@2x.png new file mode 100644 index 0000000000..26c6461e50 Binary files /dev/null and b/tests/dotnet/MyXamarinFormsApp/Resources/Default-568h@2x.png differ diff --git a/tests/dotnet/MyXamarinFormsApp/Resources/Default-Portrait.png b/tests/dotnet/MyXamarinFormsApp/Resources/Default-Portrait.png new file mode 100644 index 0000000000..5d0d1ab4c6 Binary files /dev/null and b/tests/dotnet/MyXamarinFormsApp/Resources/Default-Portrait.png differ diff --git a/tests/dotnet/MyXamarinFormsApp/Resources/Default-Portrait@2x.png b/tests/dotnet/MyXamarinFormsApp/Resources/Default-Portrait@2x.png new file mode 100644 index 0000000000..0ee2688e8f Binary files /dev/null and b/tests/dotnet/MyXamarinFormsApp/Resources/Default-Portrait@2x.png differ diff --git a/tests/dotnet/MyXamarinFormsApp/Resources/Default.png b/tests/dotnet/MyXamarinFormsApp/Resources/Default.png new file mode 100644 index 0000000000..b74643c0aa Binary files /dev/null and b/tests/dotnet/MyXamarinFormsApp/Resources/Default.png differ diff --git a/tests/dotnet/MyXamarinFormsApp/Resources/Default@2x.png b/tests/dotnet/MyXamarinFormsApp/Resources/Default@2x.png new file mode 100644 index 0000000000..dbd6bd3e86 Binary files /dev/null and b/tests/dotnet/MyXamarinFormsApp/Resources/Default@2x.png differ diff --git a/tests/dotnet/MyXamarinFormsApp/Resources/LaunchScreen.storyboard b/tests/dotnet/MyXamarinFormsApp/Resources/LaunchScreen.storyboard new file mode 100644 index 0000000000..f12b936801 --- /dev/null +++ b/tests/dotnet/MyXamarinFormsApp/Resources/LaunchScreen.storyboard @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file