Skip to content

Commit

Permalink
Testing code
Browse files Browse the repository at this point in the history
  • Loading branch information
mattleibow committed Nov 16, 2019
1 parent f22cb96 commit bac1d5a
Show file tree
Hide file tree
Showing 106 changed files with 13,202 additions and 0 deletions.
9 changes: 9 additions & 0 deletions DummyLibrary/DummyLibrary.Android/Class1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using System;

namespace DummyLibrary
{
public class Class1
{
public static string Library => "Android";
}
}
54 changes: 54 additions & 0 deletions DummyLibrary/DummyLibrary.Android/DummyLibrary.Android.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{7962520B-BF49-4C5B-84FB-47E55BBABB94}</ProjectGuid>
<ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<TemplateGuid>{9ef11e43-1701-4396-8835-8392d57abb70}</TemplateGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>DummyLibrary</RootNamespace>
<AssemblyName>DummyLibrary</AssemblyName>
<FileAlignment>512</FileAlignment>
<Deterministic>True</Deterministic>
<AndroidResgenFile>Resources\Resource.designer.cs</AndroidResgenFile>
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
<AndroidUseLatestPlatformSdk>false</AndroidUseLatestPlatformSdk>
<TargetFrameworkVersion>v9.0</TargetFrameworkVersion>
<AndroidUseAapt2>true</AndroidUseAapt2>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>portable</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>portable</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.CSharp" />
<Reference Include="Mono.Android" />
<Reference Include="mscorlib" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Class1.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
</Project>
26 changes: 26 additions & 0 deletions DummyLibrary/DummyLibrary.Android/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using Android.App;

// 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("DummyLibrary.Android")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("DummyLibrary.Android")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
41 changes: 41 additions & 0 deletions DummyLibrary/DummyLibrary.Android/Resources/Resource.designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions DummyLibrary/DummyLibrary.NetStandard/Class1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using System;

namespace DummyLibrary
{
public class Class1
{
public static string Library => ".NET Standard";
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<RootNamespace>DummyLibrary</RootNamespace>
<AssemblyName>DummyLibrary</AssemblyName>
</PropertyGroup>

</Project>
9 changes: 9 additions & 0 deletions DummyLibrary/DummyLibrary.iOS/Class1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using System;

namespace DummyLibrary
{
public class Class1
{
public static string Library => "iOS";
}
}
45 changes: 45 additions & 0 deletions DummyLibrary/DummyLibrary.iOS/DummyLibrary.iOS.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{0F5F2B20-F8F0-4E85-845A-CA3B90BB9C7B}</ProjectGuid>
<ProjectTypeGuids>{FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<TemplateGuid>{a52b8a63-bc84-4b47-910d-692533484892}</TemplateGuid>
<OutputType>Library</OutputType>
<RootNamespace>DummyLibrary</RootNamespace>
<AssemblyName>DummyLibrary</AssemblyName>
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>portable</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug</OutputPath>
<DefineConstants>DEBUG;</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>portable</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Xml" />
<Reference Include="System.Core" />
<Reference Include="Xamarin.iOS" />
</ItemGroup>
<ItemGroup />
<ItemGroup>
<Compile Include="Class1.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
</Project>
36 changes: 36 additions & 0 deletions DummyLibrary/DummyLibrary.iOS/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -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("DummyLibrary.iOS")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("DummyLibrary.iOS")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[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("50c7b8c9-e664-45af-b88e-0c9b8b9c1be1")]

// 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")]
22 changes: 22 additions & 0 deletions DummyLibrary/DummyLibrary.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0"?>
<package >
<metadata>
<id>DummyLibrary</id>
<version>1.0.0</version>
<authors>matthew</authors>
<owners>matthew</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Dummy package description</description>
<copyright>Copyright 2019</copyright>
<dependencies>
<group targetFramework="netstandard1.0" />
<group targetFramework="monoandroid1.0" />
<group targetFramework="xamarinios1.0" />
</dependencies>
</metadata>
<files>
<file src="DummyLibrary.NetStandard\bin\Debug\netstandard2.0\DummyLibrary.dll" target="ref\netstandard1.0\DummyLibrary.dll" />
<file src="DummyLibrary.Android\bin\Debug\DummyLibrary.dll" target="lib\monoandroid1.0\DummyLibrary.dll" />
<file src="DummyLibrary.iOS\bin\Debug\DummyLibrary.dll" target="lib\xamarinios1.0\DummyLibrary.dll" />
</files>
</package>
37 changes: 37 additions & 0 deletions DummyLibrary/DummyLibrary.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29505.209
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DummyLibrary.iOS", "DummyLibrary.iOS\DummyLibrary.iOS.csproj", "{0F5F2B20-F8F0-4E85-845A-CA3B90BB9C7B}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DummyLibrary.NetStandard", "DummyLibrary.NetStandard\DummyLibrary.NetStandard.csproj", "{177808E0-B444-4672-8179-69321FF63B3B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DummyLibrary.Android", "DummyLibrary.Android\DummyLibrary.Android.csproj", "{7962520B-BF49-4C5B-84FB-47E55BBABB94}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{0F5F2B20-F8F0-4E85-845A-CA3B90BB9C7B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0F5F2B20-F8F0-4E85-845A-CA3B90BB9C7B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0F5F2B20-F8F0-4E85-845A-CA3B90BB9C7B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0F5F2B20-F8F0-4E85-845A-CA3B90BB9C7B}.Release|Any CPU.Build.0 = Release|Any CPU
{177808E0-B444-4672-8179-69321FF63B3B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{177808E0-B444-4672-8179-69321FF63B3B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{177808E0-B444-4672-8179-69321FF63B3B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{177808E0-B444-4672-8179-69321FF63B3B}.Release|Any CPU.Build.0 = Release|Any CPU
{7962520B-BF49-4C5B-84FB-47E55BBABB94}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7962520B-BF49-4C5B-84FB-47E55BBABB94}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7962520B-BF49-4C5B-84FB-47E55BBABB94}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7962520B-BF49-4C5B-84FB-47E55BBABB94}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {D1BCD623-085A-4849-AE0F-5D4DA4B899C8}
EndGlobalSection
EndGlobal
7 changes: 7 additions & 0 deletions NuGetFoldersTest/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<RestoreNoCache>true</RestoreNoCache>
<RestorePackagesPath>$(MSBuildThisFileDirectory)packages</RestorePackagesPath>
</PropertyGroup>
</Project>
19 changes: 19 additions & 0 deletions NuGetFoldersTest/NuGetFoldersTest.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 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");
33 changes: 33 additions & 0 deletions NuGetFoldersTest/NuGetFoldersTest.Android/MainActivity.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
using System;

using Android.App;
using Android.Content.PM;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;

namespace NuGetFoldersTest.Droid
{
[Activity(Label = "NuGetFoldersTest", Icon = "@mipmap/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 savedInstanceState)
{
TabLayoutResource = Resource.Layout.Tabbar;
ToolbarResource = Resource.Layout.Toolbar;

base.OnCreate(savedInstanceState);

Xamarin.Essentials.Platform.Init(this, savedInstanceState);
global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
LoadApplication(new App());
}
public override void OnRequestPermissionsResult(int requestCode, string[] permissions, [GeneratedEnum] Android.Content.PM.Permission[] grantResults)
{
Xamarin.Essentials.Platform.OnRequestPermissionsResult(requestCode, permissions, grantResults);

base.OnRequestPermissionsResult(requestCode, permissions, grantResults);
}
}
}
Loading

0 comments on commit bac1d5a

Please sign in to comment.