Skip to content

Fixes for Android #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
obj/
packages/
.vs/
2 changes: 1 addition & 1 deletion IEnumStringExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static class IEnumStringExtensions
public static List<string> GetStringList(this IEnumString enumerator)
{
Validate.Begin()
.IsNotNull(enumerator)
.IsNotNull(enumerator, "enumerator is null")
.Check();

var browserNames = new List<string>();
Expand Down
20 changes: 20 additions & 0 deletions LocalDevice_Monotouch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,26 @@ public bool Is64BitOperatingSystem()
{
throw new NotImplementedException();
}

public void Restart()
{
throw new NotImplementedException();
}

public ulong GetTotalMemory()
{
throw new NotImplementedException();
}

public ulong GetFreeMemory()
{
throw new NotImplementedException();
}

public decimal GetCpuLoad()
{
throw new NotImplementedException();
}
}
}
}
Expand Down
123 changes: 123 additions & 0 deletions OpenNETCF.Extensions.Android.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
<?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>{62219642-F6CF-4F82-9858-1573C5437244}</ProjectGuid>
<ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>OpenNETCF.Extensions.Android</RootNamespace>
<AssemblyName>OpenNETCF.Extensions.Android</AssemblyName>
<FileAlignment>512</FileAlignment>
<AndroidResgenFile>Resources\Resource.Designer.cs</AndroidResgenFile>
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
<AndroidUseLatestPlatformSdk>True</AndroidUseLatestPlatformSdk>
<TargetFrameworkVersion>v6.0</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Android\Debug\</OutputPath>
<DefineConstants>TRACE;DEBUG;ANDROID</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Android\Release\</OutputPath>
<DefineConstants>TRACE;ANDROID</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="ArrayExtensions.cs" />
<Compile Include="BasicXmlSerializer.cs" />
<Compile Include="BitVector16.cs" />
<Compile Include="BitVector8.cs" />
<Compile Include="BitVectorExtensions.cs" />
<Compile Include="CaselessStringComparer.cs" />
<Compile Include="CircularBuffer.cs" />
<Compile Include="ControlExtensions.cs" />
<Compile Include="ByteExtensions.cs" />
<Compile Include="BasicBinarySerializer.cs" />
<Compile Include="BasicSerializer.cs" />
<Compile Include="BCD.cs" />
<Compile Include="DoNotSerializeAttribute.cs" />
<Compile Include="DateTimeExtensions.cs" />
<Compile Include="DoubleExtensions.cs" />
<Compile Include="EnumExtensions.cs" />
<Compile Include="DisposableBase.cs" />
<Compile Include="FormsExtensions.cs" />
<Compile Include="IEnumStringExtensions.cs" />
<Compile Include="LocalDevice_Mono.cs" />
<Compile Include="LocalDevice_Monotouch.cs" />
<Compile Include="Metrics.cs" />
<Compile Include="MovingAverage.cs" />
<Compile Include="ObjectExtensions.cs" />
<Compile Include="Properties\OpenNETCF.Extensions.Version.cs" />
<Compile Include="PropertyComparer.cs" />
<Compile Include="OrderedDictionary.cs" />
<Compile Include="SafeCollections\SafeDictionary.cs" />
<Compile Include="SafeCollections\SafeEnumerator.cs" />
<Compile Include="SafeCollections\SafeEnumerable.cs" />
<Compile Include="SafeCollections\SafeQueue.cs" />
<Compile Include="SafeCollections\SafeList.cs" />
<Compile Include="StringExtensions.cs" />
<Compile Include="TcpSocketClient.cs" />
<Compile Include="TcpSocketServer.cs" />
<Compile Include="TimeSpanExtensions.cs" />
<Compile Include="TypeExtensions.cs" />
<Compile Include="DirectoryInfoExtensions.cs" />
<Compile Include="EncodingExtensions.cs" />
<Compile Include="EventHandlerExtensions.cs" />
<Compile Include="GenericEventArgs.cs" />
<Compile Include="HttpWebRequestExtensions.cs" />
<Compile Include="IEnumerableExtensions.cs" />
<Compile Include="LocalDevice.cs" />
<Compile Include="LocalDevice_CE.cs">
<DependentUpon>LocalDevice.cs</DependentUpon>
</Compile>
<Compile Include="LocalDevice_Desktop.cs">
<DependentUpon>LocalDevice.cs</DependentUpon>
</Compile>
<Compile Include="LocalDevice_Interface.cs">
<DependentUpon>LocalDevice.cs</DependentUpon>
</Compile>
<Compile Include="LocalDevice_Phone.cs">
<DependentUpon>LocalDevice.cs</DependentUpon>
</Compile>
<Compile Include="Parsers.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="REST\CredentialCache_Phone.cs" />
<Compile Include="REST\DigestRestConnector.cs" />
<Compile Include="REST\RestConnector.cs" />
<Compile Include="Switch.cs" />
<Compile Include="Validation\Validate.cs" />
<Compile Include="Validation\Validation.cs" />
<Compile Include="Validation\ValidationException.cs" />
<Compile Include="Validation\ValidationExtensions.cs" />
<Compile Include="XElementExtensions.cs" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
22 changes: 22 additions & 0 deletions OpenNETCF.Extensions.Android.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenNETCF.Extensions.Android", "OpenNETCF.Extensions.Android.csproj", "{62219642-F6CF-4F82-9858-1573C5437244}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{62219642-F6CF-4F82-9858-1573C5437244}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{62219642-F6CF-4F82-9858-1573C5437244}.Debug|Any CPU.Build.0 = Debug|Any CPU
{62219642-F6CF-4F82-9858-1573C5437244}.Release|Any CPU.ActiveCfg = Release|Any CPU
{62219642-F6CF-4F82-9858-1573C5437244}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal