1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-11 05:43:30 +00:00

undo debugging work

This commit is contained in:
Kyle Spearrin
2017-06-27 15:00:21 -04:00
parent 8a24a6d192
commit 35ae2b783f
2 changed files with 3 additions and 22 deletions

View File

@@ -24,9 +24,9 @@ using SimpleInjector;
namespace Bit.Android
{
#if DEBUG
//[Application(Debuggable = true)]
[Application(Debuggable = true)]
#else
//[Application(Debuggable = false)]
[Application(Debuggable = false)]
#endif
public class MainApplication : Application, Application.IActivityLifecycleCallbacks
{
@@ -197,20 +197,10 @@ namespace Bit.Android
container.RegisterSingleton(application.ApplicationContext);
container.RegisterSingleton<Application>(application);
ISecureStorageService secureStorage;
try
{
secureStorage = new AndroidKeyStoreStorageService(CrossSettings.Current);
}
catch
{
secureStorage = new KeyStoreStorageService(new char[] { });
}
// Services
container.RegisterSingleton<IDatabaseService, DatabaseService>();
container.RegisterSingleton<ISqlService, SqlService>();
container.RegisterSingleton(secureStorage);
container.RegisterSingleton<ISecureStorageService, AndroidKeyStoreStorageService>();
container.RegisterSingleton<ICryptoService, CryptoService>();
container.RegisterSingleton<IKeyDerivationService, BouncyCastleKeyDerivationService>();
container.RegisterSingleton<IAuthService, AuthService>();