diff --git a/Sample Xamarin App/MyFirstApp/Droid/Assets/AboutAssets.txt b/Sample Xamarin App/MyFirstApp/Droid/Assets/AboutAssets.txt new file mode 100644 index 0000000..a9b0638 --- /dev/null +++ b/Sample Xamarin App/MyFirstApp/Droid/Assets/AboutAssets.txt @@ -0,0 +1,19 @@ +Any raw assets you want to be deployed with your application can be placed in +this directory (and child directories) and given a Build Action of "AndroidAsset". + +These files will be deployed with your package and will be accessible using Android's +AssetManager, like this: + +public class ReadAsset : Activity +{ + protected override void OnCreate (Bundle bundle) + { + base.OnCreate (bundle); + + InputStream input = Assets.Open ("my_asset.txt"); + } +} + +Additionally, some Android functions will automatically load asset files: + +Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf"); diff --git a/Sample Xamarin App/MyFirstApp/Droid/MainActivity.cs b/Sample Xamarin App/MyFirstApp/Droid/MainActivity.cs new file mode 100644 index 0000000..d5dda04 --- /dev/null +++ b/Sample Xamarin App/MyFirstApp/Droid/MainActivity.cs @@ -0,0 +1,28 @@ +using System; + +using Android.App; +using Android.Content; +using Android.Content.PM; +using Android.Runtime; +using Android.Views; +using Android.Widget; +using Android.OS; + +namespace MyFirstApp.Droid +{ + [Activity(Label = "MyFirstApp.Droid", Icon = "@drawable/icon", Theme = "@style/MyTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)] + public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity + { + protected override void OnCreate(Bundle bundle) + { + TabLayoutResource = Resource.Layout.Tabbar; + ToolbarResource = Resource.Layout.Toolbar; + + base.OnCreate(bundle); + + global::Xamarin.Forms.Forms.Init(this, bundle); + + LoadApplication(new App()); + } + } +} diff --git a/Sample Xamarin App/MyFirstApp/Droid/MyFirstApp.Droid.csproj b/Sample Xamarin App/MyFirstApp/Droid/MyFirstApp.Droid.csproj new file mode 100644 index 0000000..cfcb6eb --- /dev/null +++ b/Sample Xamarin App/MyFirstApp/Droid/MyFirstApp.Droid.csproj @@ -0,0 +1,114 @@ + + + + Debug + AnyCPU + {49E1E3BA-2B2A-4E01-958C-C26E4DB5B8C7} + {EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Library + MyFirstApp.Droid + MyFirstApp.Droid + v6.0 + True + Resources\Resource.designer.cs + Resource + Properties\AndroidManifest.xml + Resources + Assets + true + + + true + full + false + bin\Debug + DEBUG; + prompt + 4 + None + + + true + pdbonly + true + bin\Release + prompt + 4 + true + false + + + + + + + + ..\packages\Xamarin.Android.Support.v4.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.v4.dll + + + ..\packages\Xamarin.Android.Support.Vector.Drawable.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.Vector.Drawable.dll + + + ..\packages\Xamarin.Android.Support.Animated.Vector.Drawable.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.Animated.Vector.Drawable.dll + + + ..\packages\Xamarin.Android.Support.v7.AppCompat.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.v7.AppCompat.dll + + + ..\packages\Xamarin.Android.Support.v7.RecyclerView.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.v7.RecyclerView.dll + + + ..\packages\Xamarin.Android.Support.Design.23.3.0\lib\MonoAndroid43\Xamarin.Android.Support.Design.dll + + + ..\packages\Xamarin.Android.Support.v7.CardView.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.v7.CardView.dll + + + ..\packages\Xamarin.Android.Support.v7.MediaRouter.23.3.0\lib\MonoAndroid403\Xamarin.Android.Support.v7.MediaRouter.dll + + + ..\packages\Xamarin.Forms.2.3.4.224\lib\MonoAndroid10\FormsViewGroup.dll + + + ..\packages\Xamarin.Forms.2.3.4.224\lib\MonoAndroid10\Xamarin.Forms.Core.dll + + + ..\packages\Xamarin.Forms.2.3.4.224\lib\MonoAndroid10\Xamarin.Forms.Platform.Android.dll + + + ..\packages\Xamarin.Forms.2.3.4.224\lib\MonoAndroid10\Xamarin.Forms.Platform.dll + + + ..\packages\Xamarin.Forms.2.3.4.224\lib\MonoAndroid10\Xamarin.Forms.Xaml.dll + + + + + {8F7DC47A-8769-4D6B-8350-6154B4FB32D1} + MyFirstApp + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Sample Xamarin App/MyFirstApp/Droid/Properties/AndroidManifest.xml b/Sample Xamarin App/MyFirstApp/Droid/Properties/AndroidManifest.xml new file mode 100644 index 0000000..bfa8aaf --- /dev/null +++ b/Sample Xamarin App/MyFirstApp/Droid/Properties/AndroidManifest.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/Sample Xamarin App/MyFirstApp/Droid/Properties/AssemblyInfo.cs b/Sample Xamarin App/MyFirstApp/Droid/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..b0ba051 --- /dev/null +++ b/Sample Xamarin App/MyFirstApp/Droid/Properties/AssemblyInfo.cs @@ -0,0 +1,27 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using Android.App; + +// Information about this assembly is defined by the following attributes. +// Change them to the values specific to your project. + +[assembly: AssemblyTitle("MyFirstApp.Droid")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("")] +[assembly: AssemblyCopyright("${AuthorCopyright}")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". +// The form "{Major}.{Minor}.*" will automatically update the build and revision, +// and "{Major}.{Minor}.{Build}.*" will update just the revision. + +[assembly: AssemblyVersion("1.0.0")] + +// The following attributes are used to specify the signing key for the assembly, +// if desired. See the Mono documentation for more information about signing. + +//[assembly: AssemblyDelaySign(false)] +//[assembly: AssemblyKeyFile("")] diff --git a/Sample Xamarin App/MyFirstApp/Droid/Resources/AboutResources.txt b/Sample Xamarin App/MyFirstApp/Droid/Resources/AboutResources.txt new file mode 100644 index 0000000..10f52d4 --- /dev/null +++ b/Sample Xamarin App/MyFirstApp/Droid/Resources/AboutResources.txt @@ -0,0 +1,44 @@ +Images, layout descriptions, binary blobs and string dictionaries can be included +in your application as resource files. Various Android APIs are designed to +operate on the resource IDs instead of dealing with images, strings or binary blobs +directly. + +For example, a sample Android app that contains a user interface layout (main.axml), +an internationalization string table (strings.xml) and some icons (drawable-XXX/icon.png) +would keep its resources in the "Resources" directory of the application: + +Resources/ + drawable/ + icon.png + + layout/ + main.axml + + values/ + strings.xml + +In order to get the build system to recognize Android resources, set the build action to +"AndroidResource". The native Android APIs do not operate directly with filenames, but +instead operate on resource IDs. When you compile an Android application that uses resources, +the build system will package the resources for distribution and generate a class called "R" +(this is an Android convention) that contains the tokens for each one of the resources +included. For example, for the above Resources layout, this is what the R class would expose: + +public class R { + public class drawable { + public const int icon = 0x123; + } + + public class layout { + public const int main = 0x456; + } + + public class strings { + public const int first_string = 0xabc; + public const int second_string = 0xbcd; + } +} + +You would then use R.drawable.icon to reference the drawable/icon.png file, or R.layout.main +to reference the layout/main.axml file, or R.strings.first_string to reference the first +string in the dictionary file values/strings.xml. diff --git a/Sample Xamarin App/MyFirstApp/Droid/Resources/Resource.designer.cs b/Sample Xamarin App/MyFirstApp/Droid/Resources/Resource.designer.cs new file mode 100644 index 0000000..c8ad89e --- /dev/null +++ b/Sample Xamarin App/MyFirstApp/Droid/Resources/Resource.designer.cs @@ -0,0 +1,63 @@ +namespace MyFirstApp.Droid +{ + + + public partial class Resource + { + + public partial class Attribute + { + + private Attribute() + { + } + } + + public partial class Drawable + { + + // aapt resource value: 0x7f020000 + public const int icon = 2130837504; + + private Drawable() + { + } + } + + public partial class Layout + { + + // aapt resource value: 0x7f030000 + public const int Main = 2130903040; + + private Layout() + { + } + } + + public partial class String + { + + // aapt resource value: 0x7f040000 + public const int hello = 2130968576; + + // aapt resource value: 0x7f040001 + public const int app_name = 2130968577; + + private String() + { + } + } + + public partial class Id + { + + // aapt resource value: 0x7f050000 + public const int myButton = 2131034112; + + private Id() + { + } + } + } +} diff --git a/Sample Xamarin App/MyFirstApp/Droid/Resources/drawable-hdpi/icon.png b/Sample Xamarin App/MyFirstApp/Droid/Resources/drawable-hdpi/icon.png new file mode 100644 index 0000000..964f110 Binary files /dev/null and b/Sample Xamarin App/MyFirstApp/Droid/Resources/drawable-hdpi/icon.png differ diff --git a/Sample Xamarin App/MyFirstApp/Droid/Resources/drawable-xhdpi/icon.png b/Sample Xamarin App/MyFirstApp/Droid/Resources/drawable-xhdpi/icon.png new file mode 100644 index 0000000..3c01e60 Binary files /dev/null and b/Sample Xamarin App/MyFirstApp/Droid/Resources/drawable-xhdpi/icon.png differ diff --git a/Sample Xamarin App/MyFirstApp/Droid/Resources/drawable-xxhdpi/icon.png b/Sample Xamarin App/MyFirstApp/Droid/Resources/drawable-xxhdpi/icon.png new file mode 100644 index 0000000..0d8c1c5 Binary files /dev/null and b/Sample Xamarin App/MyFirstApp/Droid/Resources/drawable-xxhdpi/icon.png differ diff --git a/Sample Xamarin App/MyFirstApp/Droid/Resources/drawable/icon.png b/Sample Xamarin App/MyFirstApp/Droid/Resources/drawable/icon.png new file mode 100644 index 0000000..b0ba715 Binary files /dev/null and b/Sample Xamarin App/MyFirstApp/Droid/Resources/drawable/icon.png differ diff --git a/Sample Xamarin App/MyFirstApp/Droid/Resources/layout/Tabbar.axml b/Sample Xamarin App/MyFirstApp/Droid/Resources/layout/Tabbar.axml new file mode 100644 index 0000000..0bc7e9d --- /dev/null +++ b/Sample Xamarin App/MyFirstApp/Droid/Resources/layout/Tabbar.axml @@ -0,0 +1,2 @@ + + diff --git a/Sample Xamarin App/MyFirstApp/Droid/Resources/layout/Toolbar.axml b/Sample Xamarin App/MyFirstApp/Droid/Resources/layout/Toolbar.axml new file mode 100644 index 0000000..d685cba --- /dev/null +++ b/Sample Xamarin App/MyFirstApp/Droid/Resources/layout/Toolbar.axml @@ -0,0 +1,2 @@ + + diff --git a/Sample Xamarin App/MyFirstApp/Droid/Resources/values/styles.xml b/Sample Xamarin App/MyFirstApp/Droid/Resources/values/styles.xml new file mode 100644 index 0000000..7d6f9e5 --- /dev/null +++ b/Sample Xamarin App/MyFirstApp/Droid/Resources/values/styles.xml @@ -0,0 +1,27 @@ + + + + + + + diff --git a/Sample Xamarin App/MyFirstApp/Droid/packages.config b/Sample Xamarin App/MyFirstApp/Droid/packages.config new file mode 100644 index 0000000..76c3d9b --- /dev/null +++ b/Sample Xamarin App/MyFirstApp/Droid/packages.config @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/Sample Xamarin App/MyFirstApp/MyFirstApp.sln b/Sample Xamarin App/MyFirstApp/MyFirstApp.sln new file mode 100644 index 0000000..c7a1ebb --- /dev/null +++ b/Sample Xamarin App/MyFirstApp/MyFirstApp.sln @@ -0,0 +1,57 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2012 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyFirstApp", "MyFirstApp\MyFirstApp.csproj", "{8F7DC47A-8769-4D6B-8350-6154B4FB32D1}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyFirstApp.iOS", "iOS\MyFirstApp.iOS.csproj", "{B69B9ABE-1354-487C-A104-635CBF8B323D}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyFirstApp.Droid", "Droid\MyFirstApp.Droid.csproj", "{49E1E3BA-2B2A-4E01-958C-C26E4DB5B8C7}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + Debug|iPhoneSimulator = Debug|iPhoneSimulator + Release|iPhone = Release|iPhone + Release|iPhoneSimulator = Release|iPhoneSimulator + Debug|iPhone = Debug|iPhone + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {8F7DC47A-8769-4D6B-8350-6154B4FB32D1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8F7DC47A-8769-4D6B-8350-6154B4FB32D1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8F7DC47A-8769-4D6B-8350-6154B4FB32D1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8F7DC47A-8769-4D6B-8350-6154B4FB32D1}.Release|Any CPU.Build.0 = Release|Any CPU + {8F7DC47A-8769-4D6B-8350-6154B4FB32D1}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU + {8F7DC47A-8769-4D6B-8350-6154B4FB32D1}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU + {8F7DC47A-8769-4D6B-8350-6154B4FB32D1}.Release|iPhone.ActiveCfg = Release|Any CPU + {8F7DC47A-8769-4D6B-8350-6154B4FB32D1}.Release|iPhone.Build.0 = Release|Any CPU + {8F7DC47A-8769-4D6B-8350-6154B4FB32D1}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU + {8F7DC47A-8769-4D6B-8350-6154B4FB32D1}.Release|iPhoneSimulator.Build.0 = Release|Any CPU + {8F7DC47A-8769-4D6B-8350-6154B4FB32D1}.Debug|iPhone.ActiveCfg = Debug|Any CPU + {8F7DC47A-8769-4D6B-8350-6154B4FB32D1}.Debug|iPhone.Build.0 = Debug|Any CPU + {B69B9ABE-1354-487C-A104-635CBF8B323D}.Debug|Any CPU.ActiveCfg = Debug|iPhoneSimulator + {B69B9ABE-1354-487C-A104-635CBF8B323D}.Debug|Any CPU.Build.0 = Debug|iPhoneSimulator + {B69B9ABE-1354-487C-A104-635CBF8B323D}.Release|Any CPU.ActiveCfg = Release|iPhone + {B69B9ABE-1354-487C-A104-635CBF8B323D}.Release|Any CPU.Build.0 = Release|iPhone + {B69B9ABE-1354-487C-A104-635CBF8B323D}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator + {B69B9ABE-1354-487C-A104-635CBF8B323D}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator + {B69B9ABE-1354-487C-A104-635CBF8B323D}.Release|iPhone.ActiveCfg = Release|iPhone + {B69B9ABE-1354-487C-A104-635CBF8B323D}.Release|iPhone.Build.0 = Release|iPhone + {B69B9ABE-1354-487C-A104-635CBF8B323D}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator + {B69B9ABE-1354-487C-A104-635CBF8B323D}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator + {B69B9ABE-1354-487C-A104-635CBF8B323D}.Debug|iPhone.ActiveCfg = Debug|iPhone + {B69B9ABE-1354-487C-A104-635CBF8B323D}.Debug|iPhone.Build.0 = Debug|iPhone + {49E1E3BA-2B2A-4E01-958C-C26E4DB5B8C7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {49E1E3BA-2B2A-4E01-958C-C26E4DB5B8C7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {49E1E3BA-2B2A-4E01-958C-C26E4DB5B8C7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {49E1E3BA-2B2A-4E01-958C-C26E4DB5B8C7}.Release|Any CPU.Build.0 = Release|Any CPU + {49E1E3BA-2B2A-4E01-958C-C26E4DB5B8C7}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU + {49E1E3BA-2B2A-4E01-958C-C26E4DB5B8C7}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU + {49E1E3BA-2B2A-4E01-958C-C26E4DB5B8C7}.Release|iPhone.ActiveCfg = Release|Any CPU + {49E1E3BA-2B2A-4E01-958C-C26E4DB5B8C7}.Release|iPhone.Build.0 = Release|Any CPU + {49E1E3BA-2B2A-4E01-958C-C26E4DB5B8C7}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU + {49E1E3BA-2B2A-4E01-958C-C26E4DB5B8C7}.Release|iPhoneSimulator.Build.0 = Release|Any CPU + {49E1E3BA-2B2A-4E01-958C-C26E4DB5B8C7}.Debug|iPhone.ActiveCfg = Debug|Any CPU + {49E1E3BA-2B2A-4E01-958C-C26E4DB5B8C7}.Debug|iPhone.Build.0 = Debug|Any CPU + EndGlobalSection +EndGlobal diff --git a/Sample Xamarin App/MyFirstApp/MyFirstApp/App.xaml b/Sample Xamarin App/MyFirstApp/MyFirstApp/App.xaml new file mode 100644 index 0000000..adbb211 --- /dev/null +++ b/Sample Xamarin App/MyFirstApp/MyFirstApp/App.xaml @@ -0,0 +1,6 @@ + + + + + + diff --git a/Sample Xamarin App/MyFirstApp/MyFirstApp/App.xaml.cs b/Sample Xamarin App/MyFirstApp/MyFirstApp/App.xaml.cs new file mode 100644 index 0000000..1e8472b --- /dev/null +++ b/Sample Xamarin App/MyFirstApp/MyFirstApp/App.xaml.cs @@ -0,0 +1,29 @@ +using Xamarin.Forms; + +namespace MyFirstApp +{ + public partial class App : Application + { + public App() + { + InitializeComponent(); + + MainPage = new MyFirstAppPage(); + } + + 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/Sample Xamarin App/MyFirstApp/MyFirstApp/MyFirstApp.csproj b/Sample Xamarin App/MyFirstApp/MyFirstApp/MyFirstApp.csproj new file mode 100644 index 0000000..9640141 --- /dev/null +++ b/Sample Xamarin App/MyFirstApp/MyFirstApp/MyFirstApp.csproj @@ -0,0 +1,59 @@ + + + + Debug + AnyCPU + {8F7DC47A-8769-4D6B-8350-6154B4FB32D1} + {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + true + Library + MyFirstApp + MyFirstApp + v4.5 + Profile111 + + + true + full + false + bin\Debug + DEBUG; + prompt + 4 + + + true + bin\Release + prompt + 4 + + + + + + + + App.xaml + + + MyFirstAppPage.xaml + + + + + + ..\packages\Xamarin.Forms.2.3.4.224\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.Core.dll + + + ..\packages\Xamarin.Forms.2.3.4.224\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.Platform.dll + + + ..\packages\Xamarin.Forms.2.3.4.224\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+Xamarin.iOS10+xamarinmac20\Xamarin.Forms.Xaml.dll + + + + + + + + \ No newline at end of file diff --git a/Sample Xamarin App/MyFirstApp/MyFirstApp/MyFirstAppPage.xaml b/Sample Xamarin App/MyFirstApp/MyFirstApp/MyFirstAppPage.xaml new file mode 100644 index 0000000..beeac45 --- /dev/null +++ b/Sample Xamarin App/MyFirstApp/MyFirstApp/MyFirstAppPage.xaml @@ -0,0 +1,4 @@ + + + diff --git a/Sample Xamarin App/MyFirstApp/MyFirstApp/MyFirstAppPage.xaml.cs b/Sample Xamarin App/MyFirstApp/MyFirstApp/MyFirstAppPage.xaml.cs new file mode 100644 index 0000000..3030998 --- /dev/null +++ b/Sample Xamarin App/MyFirstApp/MyFirstApp/MyFirstAppPage.xaml.cs @@ -0,0 +1,12 @@ +using Xamarin.Forms; + +namespace MyFirstApp +{ + public partial class MyFirstAppPage : ContentPage + { + public MyFirstAppPage() + { + InitializeComponent(); + } + } +} diff --git a/Sample Xamarin App/MyFirstApp/MyFirstApp/Properties/AssemblyInfo.cs b/Sample Xamarin App/MyFirstApp/MyFirstApp/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..2c32c81 --- /dev/null +++ b/Sample Xamarin App/MyFirstApp/MyFirstApp/Properties/AssemblyInfo.cs @@ -0,0 +1,26 @@ +using System.Reflection; +using System.Runtime.CompilerServices; + +// Information about this assembly is defined by the following attributes. +// Change them to the values specific to your project. + +[assembly: AssemblyTitle("MyFirstApp")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("")] +[assembly: AssemblyCopyright("${AuthorCopyright}")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". +// The form "{Major}.{Minor}.*" will automatically update the build and revision, +// and "{Major}.{Minor}.{Build}.*" will update just the revision. + +[assembly: AssemblyVersion("1.0.*")] + +// The following attributes are used to specify the signing key for the assembly, +// if desired. See the Mono documentation for more information about signing. + +//[assembly: AssemblyDelaySign(false)] +//[assembly: AssemblyKeyFile("")] diff --git a/Sample Xamarin App/MyFirstApp/MyFirstApp/packages.config b/Sample Xamarin App/MyFirstApp/MyFirstApp/packages.config new file mode 100644 index 0000000..ad084fc --- /dev/null +++ b/Sample Xamarin App/MyFirstApp/MyFirstApp/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/Sample Xamarin App/MyFirstApp/iOS/AppDelegate.cs b/Sample Xamarin App/MyFirstApp/iOS/AppDelegate.cs new file mode 100644 index 0000000..d76947c --- /dev/null +++ b/Sample Xamarin App/MyFirstApp/iOS/AppDelegate.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; + +using Foundation; +using UIKit; + +namespace MyFirstApp.iOS +{ + [Register("AppDelegate")] + public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate + { + public override bool FinishedLaunching(UIApplication app, NSDictionary options) + { + global::Xamarin.Forms.Forms.Init(); + + LoadApplication(new App()); + + return base.FinishedLaunching(app, options); + } + } +} diff --git a/Sample Xamarin App/MyFirstApp/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json b/Sample Xamarin App/MyFirstApp/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..4e64678 --- /dev/null +++ b/Sample Xamarin App/MyFirstApp/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,157 @@ +{ + "images": [ + { + "idiom": "iphone", + "size": "29x29", + "scale": "1x" + }, + { + "idiom": "iphone", + "size": "29x29", + "scale": "2x" + }, + { + "idiom": "iphone", + "size": "29x29", + "scale": "3x" + }, + { + "idiom": "iphone", + "size": "40x40", + "scale": "2x" + }, + { + "idiom": "iphone", + "size": "40x40", + "scale": "3x" + }, + { + "idiom": "iphone", + "size": "57x57", + "scale": "1x" + }, + { + "idiom": "iphone", + "size": "57x57", + "scale": "2x" + }, + { + "idiom": "iphone", + "size": "60x60", + "scale": "2x" + }, + { + "idiom": "iphone", + "size": "60x60", + "scale": "3x" + }, + { + "idiom": "ipad", + "size": "29x29", + "scale": "1x" + }, + { + "idiom": "ipad", + "size": "29x29", + "scale": "2x" + }, + { + "idiom": "ipad", + "size": "40x40", + "scale": "1x" + }, + { + "idiom": "ipad", + "size": "40x40", + "scale": "2x" + }, + { + "idiom": "ipad", + "size": "50x50", + "scale": "1x" + }, + { + "idiom": "ipad", + "size": "50x50", + "scale": "2x" + }, + { + "idiom": "ipad", + "size": "72x72", + "scale": "1x" + }, + { + "idiom": "ipad", + "size": "72x72", + "scale": "2x" + }, + { + "idiom": "ipad", + "size": "76x76", + "scale": "1x" + }, + { + "idiom": "ipad", + "size": "76x76", + "scale": "2x" + }, + { + "size": "24x24", + "idiom": "watch", + "scale": "2x", + "role": "notificationCenter", + "subtype": "38mm" + }, + { + "size": "27.5x27.5", + "idiom": "watch", + "scale": "2x", + "role": "notificationCenter", + "subtype": "42mm" + }, + { + "size": "29x29", + "idiom": "watch", + "role": "companionSettings", + "scale": "2x" + }, + { + "size": "29x29", + "idiom": "watch", + "role": "companionSettings", + "scale": "3x" + }, + { + "size": "40x40", + "idiom": "watch", + "scale": "2x", + "role": "appLauncher", + "subtype": "38mm" + }, + { + "size": "44x44", + "idiom": "watch", + "scale": "2x", + "role": "longLook", + "subtype": "42mm" + }, + { + "size": "86x86", + "idiom": "watch", + "scale": "2x", + "role": "quickLook", + "subtype": "38mm" + }, + { + "size": "98x98", + "idiom": "watch", + "scale": "2x", + "role": "quickLook", + "subtype": "42mm" + } + ], + "info": { + "version": 1, + "author": "xcode" + } +} \ No newline at end of file diff --git a/Sample Xamarin App/MyFirstApp/iOS/Assets.xcassets/Contents.json b/Sample Xamarin App/MyFirstApp/iOS/Assets.xcassets/Contents.json new file mode 100644 index 0000000..4caf392 --- /dev/null +++ b/Sample Xamarin App/MyFirstApp/iOS/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Sample Xamarin App/MyFirstApp/iOS/Entitlements.plist b/Sample Xamarin App/MyFirstApp/iOS/Entitlements.plist new file mode 100644 index 0000000..9ae5993 --- /dev/null +++ b/Sample Xamarin App/MyFirstApp/iOS/Entitlements.plist @@ -0,0 +1,6 @@ + + + + + + diff --git a/Sample Xamarin App/MyFirstApp/iOS/Info.plist b/Sample Xamarin App/MyFirstApp/iOS/Info.plist new file mode 100644 index 0000000..fdf9fbe --- /dev/null +++ b/Sample Xamarin App/MyFirstApp/iOS/Info.plist @@ -0,0 +1,46 @@ + + + + + CFBundleDisplayName + My First App + CFBundleName + My First App + CFBundleIdentifier + com.companyname.my-first-app + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1.0 + LSRequiresIPhoneOS + + MinimumOSVersion + 8.0 + UIDeviceFamily + + 1 + 2 + + UILaunchStoryboardName + LaunchScreen + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + XSAppIconAssets + Assets.xcassets/AppIcon.appiconset + + diff --git a/Sample Xamarin App/MyFirstApp/iOS/LaunchScreen.storyboard b/Sample Xamarin App/MyFirstApp/iOS/LaunchScreen.storyboard new file mode 100644 index 0000000..7981a14 --- /dev/null +++ b/Sample Xamarin App/MyFirstApp/iOS/LaunchScreen.storyboard @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Sample Xamarin App/MyFirstApp/iOS/Main.cs b/Sample Xamarin App/MyFirstApp/iOS/Main.cs new file mode 100644 index 0000000..3afdff2 --- /dev/null +++ b/Sample Xamarin App/MyFirstApp/iOS/Main.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Linq; + +using Foundation; +using UIKit; + +namespace MyFirstApp.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/Sample Xamarin App/MyFirstApp/iOS/MyFirstApp.iOS.csproj b/Sample Xamarin App/MyFirstApp/iOS/MyFirstApp.iOS.csproj new file mode 100644 index 0000000..2fabd04 --- /dev/null +++ b/Sample Xamarin App/MyFirstApp/iOS/MyFirstApp.iOS.csproj @@ -0,0 +1,125 @@ + + + + Debug + iPhoneSimulator + {B69B9ABE-1354-487C-A104-635CBF8B323D} + {FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Exe + MyFirstApp.iOS + MyFirstApp.iOS + Resources + + + true + full + false + bin\iPhoneSimulator\Debug + DEBUG;ENABLE_TEST_CLOUD; + prompt + 4 + iPhone Developer + true + true + true + true + 65523 + None + i386, x86_64 + HttpClientHandler + x86 + + + pdbonly + true + bin\iPhone\Release + prompt + 4 + iPhone Developer + true + Entitlements.plist + SdkOnly + ARMv7, ARM64 + HttpClientHandler + x86 + + + pdbonly + true + bin\iPhoneSimulator\Release + prompt + 4 + iPhone Developer + true + true + None + i386, x86_64 + HttpClientHandler + x86 + + + true + full + false + bin\iPhone\Debug + DEBUG;ENABLE_TEST_CLOUD; + prompt + 4 + iPhone Developer + true + true + true + true + true + Entitlements.plist + SdkOnly + ARMv7, ARM64 + HttpClientHandler + x86 + + + + + + + + ..\packages\Xamarin.Forms.2.3.4.224\lib\Xamarin.iOS10\Xamarin.Forms.Core.dll + + + ..\packages\Xamarin.Forms.2.3.4.224\lib\Xamarin.iOS10\Xamarin.Forms.Platform.dll + + + ..\packages\Xamarin.Forms.2.3.4.224\lib\Xamarin.iOS10\Xamarin.Forms.Platform.iOS.dll + + + ..\packages\Xamarin.Forms.2.3.4.224\lib\Xamarin.iOS10\Xamarin.Forms.Xaml.dll + + + + + {8F7DC47A-8769-4D6B-8350-6154B4FB32D1} + MyFirstApp + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Sample Xamarin App/MyFirstApp/iOS/packages.config b/Sample Xamarin App/MyFirstApp/iOS/packages.config new file mode 100644 index 0000000..5eae1e7 --- /dev/null +++ b/Sample Xamarin App/MyFirstApp/iOS/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file