From 144412f64b1f90b3a99734ccda749f00abaf738e Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Sun, 2 Oct 2016 20:20:01 +0200 Subject: [PATCH] re-activates the cache provider --- BookAStar/BookAStar.Droid/BookAStar.Droid.csproj | 4 ++-- BookAStar/BookAStar.Droid/MainActivity.cs | 7 ++----- BookAStar/BookAStar.Droid/packages.config | 2 +- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/BookAStar/BookAStar.Droid/BookAStar.Droid.csproj b/BookAStar/BookAStar.Droid/BookAStar.Droid.csproj index 879a8c8a..f8606fc6 100644 --- a/BookAStar/BookAStar.Droid/BookAStar.Droid.csproj +++ b/BookAStar/BookAStar.Droid/BookAStar.Droid.csproj @@ -266,8 +266,8 @@ ..\..\packages\XLabs.Caching.2.3.0-pre02\lib\portable-net45+netcore45+wpa81+wp8+monoandroid+monotouch+xamarinios10+xamarinmac\XLabs.Caching.dll True - - ..\..\packages\XLabs.Caching.SQLite.2.0.5653-pre2\lib\portable-net45+netcore45+wp8+MonoAndroid1+MonoTouch1\XLabs.Caching.SQLite.dll + + ..\..\packages\XLabs.Caching.SQLite.2.3.0-pre02\lib\portable-net45+netcore45+wpa81+wp8+monoandroid+monotouch+xamarinios10+xamarinmac\XLabs.Caching.Sqlite.dll True diff --git a/BookAStar/BookAStar.Droid/MainActivity.cs b/BookAStar/BookAStar.Droid/MainActivity.cs index 647671dc..b4c9380c 100644 --- a/BookAStar/BookAStar.Droid/MainActivity.cs +++ b/BookAStar/BookAStar.Droid/MainActivity.cs @@ -131,13 +131,10 @@ namespace BookAStar.Droid .Register(app) .Register(t => new KeyVaultStorage(t.Resolve().Id.ToCharArray())) - /* + .Register( t => new SQLiteSimpleCache(new SQLitePlatformAndroid(), - new SQLiteConnectionString(pathToDatabase, true), t.Resolve())) - - */ - ; + new SQLiteConnectionString(pathToDatabase, true), t.Resolve())); Resolver.SetResolver(resolverContainer.GetResolver()); } diff --git a/BookAStar/BookAStar.Droid/packages.config b/BookAStar/BookAStar.Droid/packages.config index 22387ca9..b25003a3 100644 --- a/BookAStar/BookAStar.Droid/packages.config +++ b/BookAStar/BookAStar.Droid/packages.config @@ -33,7 +33,7 @@ - +