├── .gitattributes ├── .gitignore ├── .nuget ├── NuGet.Config ├── NuGet.exe └── NuGet.targets ├── AndroidExample ├── AkavacheSqliteLinkerOverride.cs ├── AndroidExample.csproj ├── MainActivity.cs ├── Properties │ ├── AndroidManifest.xml │ └── AssemblyInfo.cs ├── Resources │ ├── Drawable │ │ └── Icon.png │ ├── Layout │ │ ├── Main.axml │ │ └── Settings.axml │ ├── Resource.Designer.cs │ └── Values │ │ └── Strings.xml ├── SettingsActivity.cs ├── TestSettings.cs ├── app.config └── packages.config ├── LICENSE ├── Lager.Android ├── Lager.Android.csproj ├── Lager.Android.nuspec ├── PreferenceExtensions.cs ├── Properties │ └── AssemblyInfo.cs ├── Reflection.cs ├── Resources │ └── Resource.Designer.cs ├── app.config └── packages.config ├── Lager.Tests ├── DummySettingsStorage.cs ├── Lager.Tests.csproj ├── Properties │ └── AssemblyInfo.cs ├── SettingsStorageProxy.cs ├── SettingsStorageTest.cs ├── app.config └── packages.config ├── Lager.sln ├── Lager ├── Lager.csproj ├── Lager.nuspec ├── Properties │ └── AssemblyInfo.cs ├── SettingsStorage.cs ├── app.config └── packages.config └── Readme.md /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | *.sln merge=union 7 | *.csproj merge=union 8 | *.vbproj merge=union 9 | *.fsproj merge=union 10 | *.dbproj merge=union 11 | 12 | # Standard to msysgit 13 | *.doc diff=astextplain 14 | *.DOC diff=astextplain 15 | *.docx diff=astextplain 16 | *.DOCX diff=astextplain 17 | *.dot diff=astextplain 18 | *.DOT diff=astextplain 19 | *.pdf diff=astextplain 20 | *.PDF diff=astextplain 21 | *.rtf diff=astextplain 22 | *.RTF diff=astextplain 23 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Build Folders (you can keep bin if you'd like, to store dlls and pdbs) 2 | [Bb]in/ 3 | [Oo]bj/ 4 | 5 | # mstest test results 6 | TestResults 7 | 8 | ## Ignore Visual Studio temporary files, build results, and 9 | ## files generated by popular Visual Studio add-ons. 10 | 11 | # User-specific files 12 | *.suo 13 | *.user 14 | *.sln.docstates 15 | 16 | # Build results 17 | [Dd]ebug/ 18 | [Rr]elease/ 19 | x64/ 20 | *_i.c 21 | *_p.c 22 | *.ilk 23 | *.meta 24 | *.obj 25 | *.pch 26 | *.pdb 27 | *.pgc 28 | *.pgd 29 | *.rsp 30 | *.sbr 31 | *.tlb 32 | *.tli 33 | *.tlh 34 | *.tmp 35 | *.log 36 | *.vspscc 37 | *.vssscc 38 | .builds 39 | 40 | # Visual C++ cache files 41 | ipch/ 42 | *.aps 43 | *.ncb 44 | *.opensdf 45 | *.sdf 46 | 47 | # Visual Studio profiler 48 | *.psess 49 | *.vsp 50 | *.vspx 51 | 52 | # Guidance Automation Toolkit 53 | *.gpState 54 | 55 | # ReSharper is a .NET coding add-in 56 | _ReSharper* 57 | 58 | # NCrunch 59 | *.ncrunch* 60 | .*crunch*.local.xml 61 | 62 | # Installshield output folder 63 | [Ee]xpress 64 | 65 | # DocProject is a documentation generator add-in 66 | DocProject/buildhelp/ 67 | DocProject/Help/*.HxT 68 | DocProject/Help/*.HxC 69 | DocProject/Help/*.hhc 70 | DocProject/Help/*.hhk 71 | DocProject/Help/*.hhp 72 | DocProject/Help/Html2 73 | DocProject/Help/html 74 | 75 | # Click-Once directory 76 | publish 77 | 78 | # Publish Web Output 79 | *.Publish.xml 80 | 81 | # NuGet Packages Directory 82 | packages 83 | 84 | # Windows Azure Build Output 85 | csx 86 | *.build.csdef 87 | 88 | # Windows Store app package directory 89 | AppPackages/ 90 | 91 | # Others 92 | [Bb]in 93 | [Oo]bj 94 | sql 95 | TestResults 96 | [Tt]est[Rr]esult* 97 | *.Cache 98 | ClientBin 99 | [Ss]tyle[Cc]op.* 100 | ~$* 101 | *.dbmdl 102 | Generated_Code #added for RIA/Silverlight projects 103 | 104 | # Backup & report files from converting an old project file to a newer 105 | # Visual Studio version. Backup files are not needed, because we have git ;-) 106 | _UpgradeReport_Files/ 107 | Backup*/ 108 | UpgradeLog*.XML -------------------------------------------------------------------------------- /.nuget/NuGet.Config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.nuget/NuGet.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flagbug/Lager/4667cb8cd6008f6881bc69ca1ac45d2987f3910d/.nuget/NuGet.exe -------------------------------------------------------------------------------- /.nuget/NuGet.targets: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | $(MSBuildProjectDirectory)\..\ 5 | 6 | 7 | false 8 | 9 | 10 | false 11 | 12 | 13 | true 14 | 15 | 16 | false 17 | 18 | 19 | 20 | 21 | 22 | 26 | 27 | 28 | 29 | 30 | $([System.IO.Path]::Combine($(SolutionDir), ".nuget")) 31 | $([System.IO.Path]::Combine($(ProjectDir), "packages.config")) 32 | 33 | 34 | 35 | 36 | $(SolutionDir).nuget 37 | packages.config 38 | 39 | 40 | 41 | 42 | $(NuGetToolsPath)\NuGet.exe 43 | @(PackageSource) 44 | 45 | "$(NuGetExePath)" 46 | mono --runtime=v4.0.30319 $(NuGetExePath) 47 | 48 | $(TargetDir.Trim('\\')) 49 | 50 | -RequireConsent 51 | -NonInteractive 52 | 53 | "$(SolutionDir) " 54 | "$(SolutionDir)" 55 | 56 | 57 | $(NuGetCommand) install "$(PackagesConfig)" -source "$(PackageSources)" $(NonInteractiveSwitch) $(RequireConsentSwitch) -solutionDir $(PaddedSolutionDir) 58 | $(NuGetCommand) pack "$(ProjectPath)" -Properties "Configuration=$(Configuration);Platform=$(Platform)" $(NonInteractiveSwitch) -OutputDirectory "$(PackageOutputDir)" -symbols 59 | 60 | 61 | 62 | RestorePackages; 63 | $(BuildDependsOn); 64 | 65 | 66 | 67 | 68 | $(BuildDependsOn); 69 | BuildPackage; 70 | 71 | 72 | 73 | 74 | 75 | 76 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 91 | 92 | 95 | 96 | 97 | 98 | 100 | 101 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 133 | 134 | 135 | 136 | -------------------------------------------------------------------------------- /AndroidExample/AkavacheSqliteLinkerOverride.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Akavache.Sqlite3; 3 | 4 | // Note: This class file is *required* for iOS to work correctly, and is 5 | // also a good idea for Android if you enable "Link All Assemblies". 6 | namespace AndroidExample 7 | { 8 | [Preserve] 9 | public static class LinkerPreserve 10 | { 11 | static LinkerPreserve() 12 | { 13 | throw new Exception(typeof(SQLitePersistentBlobCache).FullName); 14 | } 15 | } 16 | 17 | 18 | public class PreserveAttribute : Attribute 19 | { 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /AndroidExample/AndroidExample.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Debug 5 | AnyCPU 6 | 8.0.30703 7 | 2.0 8 | {75745489-742E-4423-816D-1178C5529AE4} 9 | {EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 10 | Library 11 | Properties 12 | AndroidExample 13 | AndroidExample 14 | 512 15 | true 16 | Resources\Resource.Designer.cs 17 | Off 18 | Properties\AndroidManifest.xml 19 | v4.0.3 20 | ..\ 21 | true 22 | 23 | 24 | False 25 | 26 | 27 | true 28 | full 29 | false 30 | bin\Debug\ 31 | DEBUG;TRACE 32 | prompt 33 | 4 34 | None 35 | 36 | 37 | pdbonly 38 | true 39 | bin\Release\ 40 | TRACE 41 | prompt 42 | 4 43 | False 44 | 45 | 46 | 47 | $(SolutionDir)packages\akavache.core.5.0.0\lib\MonoAndroid\Akavache.dll 48 | True 49 | 50 | 51 | $(SolutionDir)packages\akavache.sqlite3.5.0.0\lib\Portable-Net45+Win8+WP8+Wpa81\Akavache.Sqlite3.dll 52 | True 53 | 54 | 55 | 56 | 57 | $(SolutionDir)packages\Newtonsoft.Json.9.0.1\lib\portable-net45+wp80+win8+wpa81\Newtonsoft.Json.dll 58 | True 59 | 60 | 61 | $(SolutionDir)packages\Splat.1.6.2\lib\monoandroid\Splat.dll 62 | True 63 | 64 | 65 | $(SolutionDir)packages\SQLitePCLRaw.bundle_e_sqlite3.1.1.2\lib\MonoAndroid\SQLitePCLRaw.batteries_e_sqlite3.dll 66 | True 67 | 68 | 69 | $(SolutionDir)packages\SQLitePCLRaw.bundle_e_sqlite3.1.1.2\lib\MonoAndroid\SQLitePCLRaw.batteries_v2.dll 70 | True 71 | 72 | 73 | $(SolutionDir)packages\SQLitePCLRaw.core.1.1.2\lib\MonoAndroid\SQLitePCLRaw.core.dll 74 | True 75 | 76 | 77 | $(SolutionDir)packages\SQLitePCLRaw.lib.e_sqlite3.android.1.1.2\lib\MonoAndroid\SQLitePCLRaw.lib.e_sqlite3.dll 78 | True 79 | 80 | 81 | $(SolutionDir)packages\SQLitePCLRaw.provider.e_sqlite3.android.1.1.2\lib\MonoAndroid\SQLitePCLRaw.provider.e_sqlite3.dll 82 | True 83 | 84 | 85 | 86 | 87 | False 88 | ..\packages\Rx-Core.2.2.5\lib\portable-windows8+net45+wp8\System.Reactive.Core.dll 89 | True 90 | 91 | 92 | False 93 | ..\packages\Rx-Interfaces.2.2.5\lib\portable-windows8+net45+wp8\System.Reactive.Interfaces.dll 94 | 95 | 96 | ..\packages\Rx-Linq.2.2.5\lib\portable-windows8+net45+wp8\System.Reactive.Linq.dll 97 | True 98 | 99 | 100 | ..\packages\Rx-PlatformServices.2.2.5\lib\portable-windows8+net45+wp8\System.Reactive.PlatformServices.dll 101 | True 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | AndroidResource 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | {B65B033B-F457-4B6C-A00B-0D492F014681} 132 | Lager.Android 133 | 134 | 135 | {81f64819-c356-4eef-8dbf-bd3d092a2010} 136 | Lager 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. 151 | 152 | 153 | 154 | 155 | 156 | 163 | -------------------------------------------------------------------------------- /AndroidExample/MainActivity.cs: -------------------------------------------------------------------------------- 1 | using Akavache; 2 | using Android.App; 3 | using Android.OS; 4 | using Android.Widget; 5 | 6 | namespace AndroidExample 7 | { 8 | [Activity(Label = "AndroidExample", MainLauncher = true, Icon = "@drawable/icon")] 9 | public class MainActivity : Activity 10 | { 11 | protected override void OnCreate(Bundle bundle) 12 | { 13 | base.OnCreate(bundle); 14 | 15 | // Set our view from the "main" layout resource 16 | SetContentView(Resource.Layout.Main); 17 | 18 | // Get our button from the layout resource, 19 | // and attach an event to it 20 | var button = FindViewById