├── Lager.Android
├── Resources
│ └── Resource.Designer.cs
├── app.config
├── packages.config
├── Properties
│ └── AssemblyInfo.cs
├── Lager.Android.nuspec
├── Reflection.cs
├── Lager.Android.csproj
└── PreferenceExtensions.cs
├── .nuget
├── NuGet.exe
├── NuGet.Config
└── NuGet.targets
├── AndroidExample
├── Resources
│ ├── Drawable
│ │ └── Icon.png
│ ├── Values
│ │ └── Strings.xml
│ ├── Layout
│ │ ├── Main.axml
│ │ └── Settings.axml
│ └── Resource.Designer.cs
├── Properties
│ ├── AndroidManifest.xml
│ └── AssemblyInfo.cs
├── AkavacheSqliteLinkerOverride.cs
├── app.config
├── MainActivity.cs
├── TestSettings.cs
├── packages.config
├── SettingsActivity.cs
└── AndroidExample.csproj
├── Lager
├── app.config
├── packages.config
├── Properties
│ └── AssemblyInfo.cs
├── Lager.nuspec
├── Lager.csproj
└── SettingsStorage.cs
├── Lager.Tests
├── app.config
├── SettingsStorageProxy.cs
├── DummySettingsStorage.cs
├── packages.config
├── Properties
│ └── AssemblyInfo.cs
├── SettingsStorageTest.cs
└── Lager.Tests.csproj
├── .gitattributes
├── LICENSE
├── .gitignore
├── Lager.sln
└── Readme.md
/Lager.Android/Resources/Resource.Designer.cs:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/.nuget/NuGet.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flagbug/Lager/HEAD/.nuget/NuGet.exe
--------------------------------------------------------------------------------
/AndroidExample/Resources/Drawable/Icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/flagbug/Lager/HEAD/AndroidExample/Resources/Drawable/Icon.png
--------------------------------------------------------------------------------
/.nuget/NuGet.Config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/AndroidExample/Properties/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/AndroidExample/Resources/Values/Strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Hello World, Click Me!
4 | AndroidTest
5 |
6 | - Item 1
7 | - Item 2
8 | - Item 3
9 |
10 |
--------------------------------------------------------------------------------
/Lager/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Lager.Android/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/Lager.Tests/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/AndroidExample/Resources/Layout/Main.axml:
--------------------------------------------------------------------------------
1 |
2 |
7 |
13 |
14 |
--------------------------------------------------------------------------------
/.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 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/Lager.Tests/SettingsStorageProxy.cs:
--------------------------------------------------------------------------------
1 | using Akavache;
2 |
3 | namespace Lager.Tests
4 | {
5 | public class SettingsStorageProxy : SettingsStorage
6 | {
7 | public SettingsStorageProxy(IBlobCache blobCache = null)
8 | : base("#Storage#", blobCache ?? new InMemoryBlobCache())
9 | { }
10 |
11 | public T GetOrCreateProxy(T defaultValue, string key)
12 | {
13 | return this.GetOrCreate(defaultValue, key);
14 | }
15 |
16 | public void SetOrCreateProxy(T value, string key)
17 | {
18 | this.SetOrCreate(value, key);
19 | }
20 | }
21 | }
--------------------------------------------------------------------------------
/Lager.Tests/DummySettingsStorage.cs:
--------------------------------------------------------------------------------
1 | using Akavache;
2 |
3 | namespace Lager.Tests
4 | {
5 | public class DummySettingsStorage : SettingsStorage
6 | {
7 | public DummySettingsStorage(string keyPrefix, IBlobCache cache)
8 | : base(keyPrefix, cache)
9 | { }
10 |
11 | public int DummyNumber
12 | {
13 | get { return this.GetOrCreate(42); }
14 | set { this.SetOrCreate(value); }
15 | }
16 |
17 | public string DummyText
18 | {
19 | get { return this.GetOrCreate("Yaddayadda"); }
20 | set { this.SetOrCreate(value); }
21 | }
22 | }
23 | }
--------------------------------------------------------------------------------
/AndroidExample/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/Lager.Android/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/AndroidExample/Resources/Layout/Settings.axml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
11 |
16 |
21 |
--------------------------------------------------------------------------------
/Lager/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/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