Skip to content

Commit

Permalink
dev->master
Browse files Browse the repository at this point in the history
  • Loading branch information
bacheric committed Oct 8, 2018
1 parent f1522bd commit 24d151a
Show file tree
Hide file tree
Showing 87 changed files with 11,211 additions and 0 deletions.
115 changes: 115 additions & 0 deletions KuchaMobile.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27130.2036
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KuchaMobile.Droid", "KuchaMobile\KuchaMobile.Android\KuchaMobile.Droid.csproj", "{001E193C-7FB5-4549-B6B8-41206836457F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KuchaMobile.iOS", "KuchaMobile\KuchaMobile.iOS\KuchaMobile.iOS.csproj", "{E2D3A88F-D0FF-48A2-AB65-CE1D81096A1D}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KuchaMobile", "KuchaMobile\KuchaMobile\KuchaMobile.csproj", "{CE0F9FF9-CDF5-453A-B01E-C35828A67E27}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Ad-Hoc|Any CPU = Ad-Hoc|Any CPU
Ad-Hoc|iPhone = Ad-Hoc|iPhone
Ad-Hoc|iPhoneSimulator = Ad-Hoc|iPhoneSimulator
AppStore|Any CPU = AppStore|Any CPU
AppStore|iPhone = AppStore|iPhone
AppStore|iPhoneSimulator = AppStore|iPhoneSimulator
Debug|Any CPU = Debug|Any CPU
Debug|iPhone = Debug|iPhone
Debug|iPhoneSimulator = Debug|iPhoneSimulator
Release|Any CPU = Release|Any CPU
Release|iPhone = Release|iPhone
Release|iPhoneSimulator = Release|iPhoneSimulator
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{001E193C-7FB5-4549-B6B8-41206836457F}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU
{001E193C-7FB5-4549-B6B8-41206836457F}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU
{001E193C-7FB5-4549-B6B8-41206836457F}.Ad-Hoc|Any CPU.Deploy.0 = Release|Any CPU
{001E193C-7FB5-4549-B6B8-41206836457F}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU
{001E193C-7FB5-4549-B6B8-41206836457F}.Ad-Hoc|iPhone.Build.0 = Release|Any CPU
{001E193C-7FB5-4549-B6B8-41206836457F}.Ad-Hoc|iPhone.Deploy.0 = Release|Any CPU
{001E193C-7FB5-4549-B6B8-41206836457F}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU
{001E193C-7FB5-4549-B6B8-41206836457F}.Ad-Hoc|iPhoneSimulator.Build.0 = Release|Any CPU
{001E193C-7FB5-4549-B6B8-41206836457F}.Ad-Hoc|iPhoneSimulator.Deploy.0 = Release|Any CPU
{001E193C-7FB5-4549-B6B8-41206836457F}.AppStore|Any CPU.ActiveCfg = Release|Any CPU
{001E193C-7FB5-4549-B6B8-41206836457F}.AppStore|Any CPU.Build.0 = Release|Any CPU
{001E193C-7FB5-4549-B6B8-41206836457F}.AppStore|Any CPU.Deploy.0 = Release|Any CPU
{001E193C-7FB5-4549-B6B8-41206836457F}.AppStore|iPhone.ActiveCfg = Release|Any CPU
{001E193C-7FB5-4549-B6B8-41206836457F}.AppStore|iPhone.Build.0 = Release|Any CPU
{001E193C-7FB5-4549-B6B8-41206836457F}.AppStore|iPhone.Deploy.0 = Release|Any CPU
{001E193C-7FB5-4549-B6B8-41206836457F}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU
{001E193C-7FB5-4549-B6B8-41206836457F}.AppStore|iPhoneSimulator.Build.0 = Release|Any CPU
{001E193C-7FB5-4549-B6B8-41206836457F}.AppStore|iPhoneSimulator.Deploy.0 = Release|Any CPU
{001E193C-7FB5-4549-B6B8-41206836457F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{001E193C-7FB5-4549-B6B8-41206836457F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{001E193C-7FB5-4549-B6B8-41206836457F}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{001E193C-7FB5-4549-B6B8-41206836457F}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{001E193C-7FB5-4549-B6B8-41206836457F}.Debug|iPhone.Build.0 = Debug|Any CPU
{001E193C-7FB5-4549-B6B8-41206836457F}.Debug|iPhone.Deploy.0 = Debug|Any CPU
{001E193C-7FB5-4549-B6B8-41206836457F}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{001E193C-7FB5-4549-B6B8-41206836457F}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{001E193C-7FB5-4549-B6B8-41206836457F}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU
{001E193C-7FB5-4549-B6B8-41206836457F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{001E193C-7FB5-4549-B6B8-41206836457F}.Release|Any CPU.Build.0 = Release|Any CPU
{001E193C-7FB5-4549-B6B8-41206836457F}.Release|Any CPU.Deploy.0 = Release|Any CPU
{001E193C-7FB5-4549-B6B8-41206836457F}.Release|iPhone.ActiveCfg = Release|Any CPU
{001E193C-7FB5-4549-B6B8-41206836457F}.Release|iPhone.Build.0 = Release|Any CPU
{001E193C-7FB5-4549-B6B8-41206836457F}.Release|iPhone.Deploy.0 = Release|Any CPU
{001E193C-7FB5-4549-B6B8-41206836457F}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{001E193C-7FB5-4549-B6B8-41206836457F}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{001E193C-7FB5-4549-B6B8-41206836457F}.Release|iPhoneSimulator.Deploy.0 = Release|Any CPU
{E2D3A88F-D0FF-48A2-AB65-CE1D81096A1D}.Ad-Hoc|Any CPU.ActiveCfg = Ad-Hoc|iPhone
{E2D3A88F-D0FF-48A2-AB65-CE1D81096A1D}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone
{E2D3A88F-D0FF-48A2-AB65-CE1D81096A1D}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone
{E2D3A88F-D0FF-48A2-AB65-CE1D81096A1D}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Ad-Hoc|iPhoneSimulator
{E2D3A88F-D0FF-48A2-AB65-CE1D81096A1D}.Ad-Hoc|iPhoneSimulator.Build.0 = Ad-Hoc|iPhoneSimulator
{E2D3A88F-D0FF-48A2-AB65-CE1D81096A1D}.AppStore|Any CPU.ActiveCfg = AppStore|iPhone
{E2D3A88F-D0FF-48A2-AB65-CE1D81096A1D}.AppStore|iPhone.ActiveCfg = AppStore|iPhone
{E2D3A88F-D0FF-48A2-AB65-CE1D81096A1D}.AppStore|iPhone.Build.0 = AppStore|iPhone
{E2D3A88F-D0FF-48A2-AB65-CE1D81096A1D}.AppStore|iPhoneSimulator.ActiveCfg = AppStore|iPhoneSimulator
{E2D3A88F-D0FF-48A2-AB65-CE1D81096A1D}.AppStore|iPhoneSimulator.Build.0 = AppStore|iPhoneSimulator
{E2D3A88F-D0FF-48A2-AB65-CE1D81096A1D}.Debug|Any CPU.ActiveCfg = Debug|iPhone
{E2D3A88F-D0FF-48A2-AB65-CE1D81096A1D}.Debug|iPhone.ActiveCfg = Debug|iPhone
{E2D3A88F-D0FF-48A2-AB65-CE1D81096A1D}.Debug|iPhone.Build.0 = Debug|iPhone
{E2D3A88F-D0FF-48A2-AB65-CE1D81096A1D}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
{E2D3A88F-D0FF-48A2-AB65-CE1D81096A1D}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
{E2D3A88F-D0FF-48A2-AB65-CE1D81096A1D}.Release|Any CPU.ActiveCfg = Release|iPhone
{E2D3A88F-D0FF-48A2-AB65-CE1D81096A1D}.Release|iPhone.ActiveCfg = Release|iPhone
{E2D3A88F-D0FF-48A2-AB65-CE1D81096A1D}.Release|iPhone.Build.0 = Release|iPhone
{E2D3A88F-D0FF-48A2-AB65-CE1D81096A1D}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
{E2D3A88F-D0FF-48A2-AB65-CE1D81096A1D}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
{CE0F9FF9-CDF5-453A-B01E-C35828A67E27}.Ad-Hoc|Any CPU.ActiveCfg = Debug|Any CPU
{CE0F9FF9-CDF5-453A-B01E-C35828A67E27}.Ad-Hoc|Any CPU.Build.0 = Debug|Any CPU
{CE0F9FF9-CDF5-453A-B01E-C35828A67E27}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU
{CE0F9FF9-CDF5-453A-B01E-C35828A67E27}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU
{CE0F9FF9-CDF5-453A-B01E-C35828A67E27}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{CE0F9FF9-CDF5-453A-B01E-C35828A67E27}.Ad-Hoc|iPhoneSimulator.Build.0 = Debug|Any CPU
{CE0F9FF9-CDF5-453A-B01E-C35828A67E27}.AppStore|Any CPU.ActiveCfg = Debug|Any CPU
{CE0F9FF9-CDF5-453A-B01E-C35828A67E27}.AppStore|Any CPU.Build.0 = Debug|Any CPU
{CE0F9FF9-CDF5-453A-B01E-C35828A67E27}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
{CE0F9FF9-CDF5-453A-B01E-C35828A67E27}.AppStore|iPhone.Build.0 = Debug|Any CPU
{CE0F9FF9-CDF5-453A-B01E-C35828A67E27}.AppStore|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{CE0F9FF9-CDF5-453A-B01E-C35828A67E27}.AppStore|iPhoneSimulator.Build.0 = Debug|Any CPU
{CE0F9FF9-CDF5-453A-B01E-C35828A67E27}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CE0F9FF9-CDF5-453A-B01E-C35828A67E27}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CE0F9FF9-CDF5-453A-B01E-C35828A67E27}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{CE0F9FF9-CDF5-453A-B01E-C35828A67E27}.Debug|iPhone.Build.0 = Debug|Any CPU
{CE0F9FF9-CDF5-453A-B01E-C35828A67E27}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{CE0F9FF9-CDF5-453A-B01E-C35828A67E27}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{CE0F9FF9-CDF5-453A-B01E-C35828A67E27}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CE0F9FF9-CDF5-453A-B01E-C35828A67E27}.Release|Any CPU.Build.0 = Release|Any CPU
{CE0F9FF9-CDF5-453A-B01E-C35828A67E27}.Release|iPhone.ActiveCfg = Release|Any CPU
{CE0F9FF9-CDF5-453A-B01E-C35828A67E27}.Release|iPhone.Build.0 = Release|Any CPU
{CE0F9FF9-CDF5-453A-B01E-C35828A67E27}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{CE0F9FF9-CDF5-453A-B01E-C35828A67E27}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {CC8C5F2F-3903-4C0C-8738-FF7AA01F553A}
EndGlobalSection
EndGlobal
19 changes: 19 additions & 0 deletions KuchaMobile/KuchaMobile.Android/Assets/AboutAssets.txt
Original file line number Diff line number Diff line change
@@ -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 you 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");
113 changes: 113 additions & 0 deletions KuchaMobile/KuchaMobile.Android/KuchaMobile.Droid.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{001E193C-7FB5-4549-B6B8-41206836457F}</ProjectGuid>
<ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<RootNamespace>KuchaMobile.Droid</RootNamespace>
<AssemblyName>KuchaMobile.Android</AssemblyName>
<TargetFrameworkVersion>v8.1</TargetFrameworkVersion>
<AndroidApplication>True</AndroidApplication>
<AndroidResgenFile>Resources\Resource.designer.cs</AndroidResgenFile>
<AndroidResgenClass>Resource</AndroidResgenClass>
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
<AndroidUseLatestPlatformSdk>false</AndroidUseLatestPlatformSdk>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug</OutputPath>
<DefineConstants>DEBUG;</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AndroidLinkMode>None</AndroidLinkMode>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AndroidManagedSymbols>true</AndroidManagedSymbols>
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
</PropertyGroup>
<ItemGroup>
<Reference Include="Mono.Android" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Acr.UserDialogs">
<Version>7.0.1</Version>
</PackageReference>
<PackageReference Include="Newtonsoft.Json">
<Version>11.0.2</Version>
</PackageReference>
<PackageReference Include="PCLStorage">
<Version>1.0.2</Version>
</PackageReference>
<PackageReference Include="Xam.Plugins.Settings">
<Version>3.1.1</Version>
</PackageReference>
<PackageReference Include="Xamarin.Forms" Version="3.1.0.583944" />
<PackageReference Include="Xamarin.Android.Support.Design" Version="25.4.0.2" />
<PackageReference Include="Xamarin.Android.Support.v7.AppCompat" Version="25.4.0.2" />
<PackageReference Include="Xamarin.Android.Support.v4" Version="25.4.0.2" />
<PackageReference Include="Xamarin.Android.Support.v7.CardView" Version="25.4.0.2" />
<PackageReference Include="Xamarin.Android.Support.v7.MediaRouter" Version="25.4.0.2" />
</ItemGroup>
<ItemGroup>
<Compile Include="MainActivity.cs" />
<Compile Include="Resources\Resource.Designer.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\AboutResources.txt" />
<None Include="Assets\AboutAssets.txt" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\icon.png" />
<AndroidResource Include="Resources\drawable-hdpi\icon.png" />
<AndroidResource Include="Resources\drawable-xhdpi\icon.png" />
<AndroidResource Include="Resources\drawable-xxhdpi\icon.png" />
</ItemGroup>
<ItemGroup>
<None Include="Properties\AndroidManifest.xml" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\layout\Tabbar.axml" />
<AndroidResource Include="Resources\layout\Toolbar.axml" />
<AndroidResource Include="Resources\values\styles.xml">
<SubType>Designer</SubType>
</AndroidResource>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\KuchaMobile\KuchaMobile.csproj">
<Project>{ce0f9ff9-cdf5-453a-b01e-c35828a67e27}</Project>
<Name>KuchaMobile</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\cave.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\image.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\cog.png" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\SAW_logo.png" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
</Project>
101 changes: 101 additions & 0 deletions KuchaMobile/KuchaMobile.Android/KuchaMobile.Droid.csproj.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{001E193C-7FB5-4549-B6B8-41206836457F}</ProjectGuid>
<ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<RootNamespace>KuchaMobile.Droid</RootNamespace>
<AssemblyName>KuchaMobile.Android</AssemblyName>
<TargetFrameworkVersion>v8.1</TargetFrameworkVersion>
<AndroidApplication>True</AndroidApplication>
<AndroidResgenFile>Resources\Resource.designer.cs</AndroidResgenFile>
<AndroidResgenClass>Resource</AndroidResgenClass>
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
<MonoAndroidResourcePrefix>Resources</MonoAndroidResourcePrefix>
<MonoAndroidAssetsPrefix>Assets</MonoAndroidAssetsPrefix>
<AndroidUseLatestPlatformSdk>true</AndroidUseLatestPlatformSdk>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug</OutputPath>
<DefineConstants>DEBUG;</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AndroidLinkMode>None</AndroidLinkMode>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AndroidManagedSymbols>true</AndroidManagedSymbols>
<AndroidUseSharedRuntime>false</AndroidUseSharedRuntime>
</PropertyGroup>
<ItemGroup>
<Reference Include="Mono.Android" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Acr.UserDialogs">
<Version>7.0.1</Version>
</PackageReference>
<PackageReference Include="Newtonsoft.Json">
<Version>11.0.2</Version>
</PackageReference>
<PackageReference Include="PCLStorage">
<Version>1.0.2</Version>
</PackageReference>
<PackageReference Include="Xam.Plugins.Settings">
<Version>3.1.1</Version>
</PackageReference>
<PackageReference Include="Xamarin.Forms" Version="3.0.0.446417" />
<PackageReference Include="Xamarin.Android.Support.Design" Version="25.4.0.2" />
<PackageReference Include="Xamarin.Android.Support.v7.AppCompat" Version="25.4.0.2" />
<PackageReference Include="Xamarin.Android.Support.v4" Version="25.4.0.2" />
<PackageReference Include="Xamarin.Android.Support.v7.CardView" Version="25.4.0.2" />
<PackageReference Include="Xamarin.Android.Support.v7.MediaRouter" Version="25.4.0.2" />
</ItemGroup>
<ItemGroup>
<Compile Include="MainActivity.cs" />
<Compile Include="Resources\Resource.Designer.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\AboutResources.txt" />
<None Include="Assets\AboutAssets.txt" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\drawable\icon.png" />
<AndroidResource Include="Resources\drawable-hdpi\icon.png" />
<AndroidResource Include="Resources\drawable-xhdpi\icon.png" />
<AndroidResource Include="Resources\drawable-xxhdpi\icon.png" />
</ItemGroup>
<ItemGroup>
<None Include="Properties\AndroidManifest.xml" />
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\layout\Tabbar.axml" />
<AndroidResource Include="Resources\layout\Toolbar.axml" />
<AndroidResource Include="Resources\values\styles.xml">
<SubType>Designer</SubType>
</AndroidResource>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\KuchaMobile\KuchaMobile.csproj">
<Project>{ce0f9ff9-cdf5-453a-b01e-c35828a67e27}</Project>
<Name>KuchaMobile</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
</Project>
30 changes: 30 additions & 0 deletions KuchaMobile/KuchaMobile.Android/MainActivity.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
using Acr.UserDialogs;
using Android.App;
using Android.Content.PM;
using Android.OS;
using Android.Util;

namespace KuchaMobile.Droid
{
[Activity(Label = "KuchaMobile", Icon = "@drawable/icon", Theme = "@style/MainTheme", 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);

DisplayMetrics displayMetrics = new DisplayMetrics();
WindowManager.DefaultDisplay.GetRealMetrics(displayMetrics);
Internal.Helper.ScreenHeight = displayMetrics.HeightPixels;
Internal.Helper.ScreenWidth = displayMetrics.WidthPixels;

UserDialogs.Init(this);

global::Xamarin.Forms.Forms.Init(this, bundle);
LoadApplication(new App());
}
}
}
Loading

0 comments on commit 24d151a

Please sign in to comment.