Skip to content
Merged
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
19 changes: 10 additions & 9 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,21 @@
// ADDINS
//////////////////////////////////////////////////////////////////////

#addin "Cake.FileHelpers"
#addin "Cake.Coveralls"
#addin "Cake.PinNuGetDependency"
#addin "nuget:?package=Cake.FileHelpers&version=1.0.4"
#addin "nuget:?package=Cake.Coveralls&version=0.4.0"
#addin "nuget:?package=Cake.PinNuGetDependency&version=0.1.0.1495792899"

//////////////////////////////////////////////////////////////////////
// TOOLS
//////////////////////////////////////////////////////////////////////

#tool "GitReleaseManager"
#tool "GitVersion.CommandLine"
#tool "coveralls.io"
#tool "OpenCover"
#tool "ReportGenerator"
#tool nuget:?package=vswhere
#tool "nuget:?package=GitReleaseManager&version=0.6.0"
#tool "nuget:?package=GitVersion.CommandLine&version=3.6.5"
#tool "nuget:?package=coveralls.io&version=1.3.4"
#tool "nuget:?package=OpenCover&version=4.6.519"
#tool "nuget:?package=ReportGenerator&version=2.5.11"
#tool "nuget:?package=vswhere&version=2.1.4"


//////////////////////////////////////////////////////////////////////
// ARGUMENTS
Expand Down
2 changes: 1 addition & 1 deletion build.cmd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@echo off
tools\nuget\nuget.exe update -self
tools\nuget\nuget.exe install xunit.runner.console -OutputDirectory tools -ExcludeVersion
tools\nuget\nuget.exe install Cake -OutputDirectory tools -ExcludeVersion
tools\nuget\nuget.exe install Cake -OutputDirectory tools -ExcludeVersion -Version 0.21.1

tools\Cake\Cake.exe build.cake --target=%1

Expand Down
14 changes: 13 additions & 1 deletion src/Akavache.Sqlite3/Akavache.Sqlite3.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,23 @@
<None Remove="sqlite-ng-notes.md" />
<None Remove="sqlite3-hint.txt" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Akavache.Core\Akavache.Core.csproj" />
</ItemGroup>


<ItemGroup>
<Content Include="content\AkavacheSqliteLinkerOverride.cs.pp">
<PackagePath>content\</PackagePath>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="contentFiles\cs\any\AkavacheSqliteLinkerOverride.cs.pp">
<PackagePath>contentFiles\cs\any\</PackagePath>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>

<Import Project="$(MSBuildSDKExtrasTargets)" Condition="Exists('$(MSBuildSDKExtrasTargets)')" />

</Project>
21 changes: 21 additions & 0 deletions src/Akavache.Sqlite3/content/AkavacheSqliteLinkerOverride.cs.pp
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using System;
using Akavache.Sqlite3;

// Note: This class file is *required* for iOS to work correctly, and is
// also a good idea for Android if you enable "Link All Assemblies".
namespace $rootnamespace$
{
[Preserve]
public static class LinkerPreserve
{
static LinkerPreserve()
{
throw new Exception(typeof(SQLitePersistentBlobCache).FullName);
}
}


public class PreserveAttribute : Attribute
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using System;
using Akavache.Sqlite3;

// Note: This class file is *required* for iOS to work correctly, and is
// also a good idea for Android if you enable "Link All Assemblies".
namespace $rootnamespace$
{
[Preserve]
public static class LinkerPreserve
{
static LinkerPreserve()
{
throw new Exception(typeof(SQLitePersistentBlobCache).FullName);
}
}


public class PreserveAttribute : Attribute
{
}
}
3 changes: 2 additions & 1 deletion src/Akavache.sln
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26730.8
VisualStudioVersion = 15.0.26730.16
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{9407D902-E9CF-4CB6-B601-77CDF74B9475}"
ProjectSection(SolutionItems) = preProject
..\appveyor.yml = ..\appveyor.yml
..\build.cake = ..\build.cake
..\build.cmd = ..\build.cmd
Directory.build.props = Directory.build.props
Directory.build.targets = Directory.build.targets
Rebracer.xml = Rebracer.xml
Expand Down