Skip to content

Commit

Permalink
GENERAL:
Browse files Browse the repository at this point in the history
Updated and Moved nuspec
Added PCLAppConfig ref on filestream projects
  • Loading branch information
monovo committed Aug 2, 2016
1 parent dd5a876 commit 4e7666c
Show file tree
Hide file tree
Showing 10 changed files with 77 additions and 60 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ usage:
```

- Add an app.config on your shared pcl project, and add your appSettings entries, as you would do with any app.config
- Add this PCL app.config file as a linked file on all your platform projects. For android, make sure to set the build action to 'AndroidAsset'
- Add this PCL app.config file as a linked file on all your platform projects. For android, make sure to set the build action to 'AndroidAsset', for UWP set the build action to 'Content'


### FOR EMBEDDED APP.CONFIG
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<DefineConstants>ANDROID</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
Expand Down Expand Up @@ -124,6 +124,10 @@
<Project>{47adf18f-1bb7-45ae-addb-fa9291f2c532}</Project>
<Name>PCLAppConfig.FileSystemStream.Abstractions</Name>
</ProjectReference>
<ProjectReference Include="..\PCLAppConfig\PCLAppConfig.csproj">
<Project>{91435741-b785-4fd8-b486-fa157fd55852}</Project>
<Name>PCLAppConfig</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
<Import Project="..\..\packages\Xamarin.Android.Support.Vector.Drawable.23.3.0\build\Xamarin.Android.Support.Vector.Drawable.targets" Condition="Exists('..\..\packages\Xamarin.Android.Support.Vector.Drawable.23.3.0\build\Xamarin.Android.Support.Vector.Drawable.targets')" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@
<Project>{47adf18f-1bb7-45ae-addb-fa9291f2c532}</Project>
<Name>PCLAppConfig.FileSystemStream.Abstractions</Name>
</ProjectReference>
<ProjectReference Include="..\PCLAppConfig\PCLAppConfig.csproj">
<Project>{91435741-b785-4fd8-b486-fa157fd55852}</Project>
<Name>PCLAppConfig</Name>
</ProjectReference>
</ItemGroup>
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '14.0' ">
<VisualStudioVersion>14.0</VisualStudioVersion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@
<Project>{47adf18f-1bb7-45ae-addb-fa9291f2c532}</Project>
<Name>PCLAppConfig.FileSystemStream.Abstractions</Name>
</ProjectReference>
<ProjectReference Include="..\PCLAppConfig\PCLAppConfig.csproj">
<Project>{91435741-b785-4fd8-b486-fa157fd55852}</Project>
<Name>PCLAppConfig</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@
<Project>{47adf18f-1bb7-45ae-addb-fa9291f2c532}</Project>
<Name>PCLAppConfig.FileSystemStream.Abstractions</Name>
</ProjectReference>
<ProjectReference Include="..\PCLAppConfig\PCLAppConfig.csproj">
<Project>{91435741-b785-4fd8-b486-fa157fd55852}</Project>
<Name>PCLAppConfig</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Expand Down
4 changes: 2 additions & 2 deletions src/Lib/PCLAppConfig.FileSystemStream/PortableStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static Stream Current
}
}

public static Stream CreateAppConfigStream()
private static Stream CreateAppConfigStream()
{
var pathExtractor = CreateAppConfigPathExtractor();
if (pathExtractor == null)
Expand All @@ -34,7 +34,7 @@ You should reference the PCLAppConfig NuGet package from your main application p
return GetStream(pathExtractor.Path);
}

public static IAppConfigPathExtractor CreateAppConfigPathExtractor()
private static IAppConfigPathExtractor CreateAppConfigPathExtractor()
{
#if ANDROID
return new AndroidAppConfigPathExtractor();
Expand Down
1 change: 0 additions & 1 deletion src/Lib/PCLAppConfig/PCLAppConfig.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
<None Include="PCLAppConfig.nuspec" />
<None Include="PCLAppConfig.pfx" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
Expand Down
55 changes: 0 additions & 55 deletions src/Lib/PCLAppConfig/PCLAppConfig.nuspec

This file was deleted.

55 changes: 55 additions & 0 deletions src/PCLAppConfig.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?xml version="1.0"?>
<package >
<metadata>
<id>PCLAppConfig</id>
<version>0.3</version>
<title>PCL AppConfig - Portable AppSettings Reader</title>
<authors>Ben Ishiyama-levy (Xamariners), Seyyed Soroosh Hosseinalipour</authors>
<owners>Ben Ishiyama-levy (Xamariners)</owners>
<description>
Cross platform Xamarin AppSettings reader
</description>
<releaseNotes>
- Initial Release
</releaseNotes>
<summary>
Cross platform Xamarin AppSettings reader
</summary>
<language>en-US</language>
<projectUrl>https://github.com/mrbrl/PCLAppConfig</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<licenseUrl>http://opensource.org/licenses/Apache-2.0</licenseUrl>
<copyright>Copyright Xamariners 2016</copyright>
<tags>xamarin xamarin.forms PCL Config AppConfig AppSettings Configuration ConfigurationManager uwp winrt android ios xamarin monoandroid monodroid monotouch xamariners</tags>
<dependencies>
<dependency id="PCLStorage" version="1.0.2"/>
</dependencies>
</metadata>
<files>
<!-- portable -->
<file src="Lib\PCLAppConfig.FileSystemStream\bin\Release\PCLAppConfig.dll" target="lib\portable-net45+win+wpa81+wp80+MonoAndroid10+xamarinios10+MonoTouch10\PCLAppConfig.dll" />
<file src="Lib\PCLAppConfig.FileSystemStream\bin\Release\PCLAppConfig.FileSystemStream.Abstractions.dll" target="lib\portable-net45+win+wpa81+wp80+MonoAndroid10+xamarinios10+MonoTouch10\PCLAppConfig.FileSystemStream.Abstractions.dll" />
<file src="Lib\PCLAppConfig.FileSystemStream\bin\Release\PCLAppConfig.FileSystemStream.dll" target="lib\portable-net45+win+wpa81+wp80+MonoAndroid10+xamarinios10+MonoTouch10\PCLAppConfig.FileSystemStream.dll" />

<!-- ios -->
<file src="Lib\PCLAppConfig.FileSystemStream.iOS\bin\Release\PCLAppConfig.dll" target="lib\Xamarin.iOS\PCLAppConfig.dll" />
<file src="Lib\PCLAppConfig.FileSystemStream.iOS\bin\Release\PCLAppConfig.FileSystemStream.Abstractions.dll" target="lib\Xamarin.iOS\PCLAppConfig.FileSystemStream.Abstractions.dll" />
<file src="Lib\PCLAppConfig.FileSystemStream.iOS\bin\Release\PCLAppConfig.FileSystemStream.iOS.dll" target="lib\Xamarin.iOS\PCLAppConfig.FileSystemStream.iOS.dll" />

<!-- classic ios -->
<file src="Lib\PCLAppConfig.FileSystemStream.iOS\bin\Release\PCLAppConfig.dll" target="lib\MonoTouch10\PCLAppConfig.dll" />
<file src="Lib\PCLAppConfig.FileSystemStream.iOS\bin\Release\PCLAppConfig.FileSystemStream.Abstractions.dll" target="lib\MonoTouch10\PCLAppConfig.FileSystemStream.Abstractions.dll" />
<file src="Lib\PCLAppConfig.FileSystemStream.iOS\bin\Release\PCLAppConfig.FileSystemStream.iOS.dll" target="lib\MonoTouch10\PCLAppConfig.FileSystemStream.iOS.dll" />

<!-- android -->
<file src="Lib\PCLAppConfig.FileSystemStream.Android\bin\Release\PCLAppConfig.dll" target="lib\MonoAndroid10\PCLAppConfig.dll" />
<file src="Lib\PCLAppConfig.FileSystemStream.Android\bin\Release\PCLAppConfig.FileSystemStream.Abstractions.dll" target="lib\MonoAndroid10\PCLAppConfig.FileSystemStream.Abstractions.dll" />
<file src="Lib\PCLAppConfig.FileSystemStream.Android\bin\Release\PCLAppConfig.FileSystemStream.Android.dll" target="lib\MonoAndroid10\PCLAppConfig.FileSystemStream.Android.dll" />

<!-- UWP -->
<file src="Lib\PCLAppConfig.FileSystemStream.UWP\bin\Release\PCLAppConfig.dll" target="lib\UAP10\PCLAppConfig.dll" />
<file src="Lib\PCLAppConfig.FileSystemStream.UWP\bin\Release\PCLAppConfig.FileSystemStream.Abstractions.dll" target="lib\UAP10\PCLAppConfig.FileSystemStream.Abstractions.dll" />
<file src="Lib\PCLAppConfig.FileSystemStream.UWP\bin\Release\PCLAppConfig.FileSystemStream.UWP.dll" target="lib\UAP10\PCLAppConfig.FileSystemStream.UWP.dll" />

</files>
</package>
2 changes: 2 additions & 0 deletions src/PCLCoreDemo.sln → src/PCLAppConfig.sln
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{9D100221-BC18-4732-847E-6A6AEFB0FCBD}"
ProjectSection(SolutionItems) = preProject
global.json = global.json
PCLAppConfig.nuspec = PCLAppConfig.nuspec
EndProjectSection
EndProject
Global
Expand Down Expand Up @@ -339,6 +340,7 @@ Global
{C6CD8530-FECA-4B06-AFDD-7CC02D00FD4C}.Debug|x86.Build.0 = Debug|x86
{C6CD8530-FECA-4B06-AFDD-7CC02D00FD4C}.Debug|x86.Deploy.0 = Debug|x86
{C6CD8530-FECA-4B06-AFDD-7CC02D00FD4C}.Release|Any CPU.ActiveCfg = Release|x86
{C6CD8530-FECA-4B06-AFDD-7CC02D00FD4C}.Release|Any CPU.Build.0 = Release|x86
{C6CD8530-FECA-4B06-AFDD-7CC02D00FD4C}.Release|ARM.ActiveCfg = Release|ARM
{C6CD8530-FECA-4B06-AFDD-7CC02D00FD4C}.Release|ARM.Build.0 = Release|ARM
{C6CD8530-FECA-4B06-AFDD-7CC02D00FD4C}.Release|ARM.Deploy.0 = Release|ARM
Expand Down

0 comments on commit 4e7666c

Please sign in to comment.