2016-05-02 09:52:09 +03:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
using Android.App;
|
|
|
|
|
using Android.Content.PM;
|
|
|
|
|
using Android.Runtime;
|
|
|
|
|
using Android.Views;
|
|
|
|
|
using Android.Widget;
|
|
|
|
|
using Android.OS;
|
|
|
|
|
using Bit.App.Abstractions;
|
|
|
|
|
using XLabs.Ioc;
|
2016-05-21 19:32:34 +03:00
|
|
|
|
using Plugin.Fingerprint.Abstractions;
|
|
|
|
|
using Plugin.Settings.Abstractions;
|
2016-07-02 01:54:00 +03:00
|
|
|
|
using Plugin.Connectivity.Abstractions;
|
|
|
|
|
using Acr.UserDialogs;
|
2016-07-20 01:46:39 +03:00
|
|
|
|
using PushNotification.Plugin.Abstractions;
|
2016-05-02 09:52:09 +03:00
|
|
|
|
|
|
|
|
|
namespace Bit.Android
|
|
|
|
|
{
|
|
|
|
|
[Activity(Label = "bitwarden", Icon = "@drawable/icon", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
|
|
|
|
|
public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsApplicationActivity
|
|
|
|
|
{
|
|
|
|
|
protected override void OnCreate(Bundle bundle)
|
|
|
|
|
{
|
|
|
|
|
base.OnCreate(bundle);
|
2016-06-05 05:35:03 +03:00
|
|
|
|
Console.WriteLine("A OnCreate");
|
2016-05-02 09:52:09 +03:00
|
|
|
|
|
|
|
|
|
global::Xamarin.Forms.Forms.Init(this, bundle);
|
|
|
|
|
|
2016-05-21 19:32:34 +03:00
|
|
|
|
LoadApplication(new App.App(
|
|
|
|
|
Resolver.Resolve<IAuthService>(),
|
2016-07-02 01:54:00 +03:00
|
|
|
|
Resolver.Resolve<IConnectivity>(),
|
|
|
|
|
Resolver.Resolve<IUserDialogs>(),
|
2016-05-21 19:32:34 +03:00
|
|
|
|
Resolver.Resolve<IDatabaseService>(),
|
2016-07-01 03:08:34 +03:00
|
|
|
|
Resolver.Resolve<ISyncService>(),
|
2016-05-21 19:32:34 +03:00
|
|
|
|
Resolver.Resolve<IFingerprint>(),
|
2016-07-20 01:46:39 +03:00
|
|
|
|
Resolver.Resolve<ISettings>(),
|
2016-07-20 06:29:32 +03:00
|
|
|
|
Resolver.Resolve<IPushNotification>(),
|
|
|
|
|
Resolver.Resolve<ILockService>()));
|
2016-05-02 09:52:09 +03:00
|
|
|
|
}
|
|
|
|
|
|
2016-06-05 05:35:03 +03:00
|
|
|
|
protected override void OnPause()
|
|
|
|
|
{
|
|
|
|
|
Console.WriteLine("A OnPause");
|
|
|
|
|
base.OnPause();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void OnDestroy()
|
|
|
|
|
{
|
|
|
|
|
Console.WriteLine("A OnDestroy");
|
|
|
|
|
base.OnDestroy();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void OnRestart()
|
|
|
|
|
{
|
|
|
|
|
Console.WriteLine("A OnRestart");
|
|
|
|
|
base.OnRestart();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void OnStart()
|
|
|
|
|
{
|
|
|
|
|
Console.WriteLine("A OnStart");
|
|
|
|
|
base.OnStart();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void OnStop()
|
|
|
|
|
{
|
|
|
|
|
Console.WriteLine("A OnStop");
|
|
|
|
|
base.OnStop();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void OnResume()
|
|
|
|
|
{
|
|
|
|
|
Console.WriteLine("A OnResume");
|
|
|
|
|
base.OnResume();
|
|
|
|
|
}
|
2016-05-02 09:52:09 +03:00
|
|
|
|
}
|
|
|
|
|
}
|