1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-10-02 04:37:50 +02:00

remove additional ga refs

This commit is contained in:
kspearrin 2019-01-25 08:50:44 -05:00
parent 062f6b6665
commit 1374ee31ba

View File

@ -16,7 +16,6 @@ using Plugin.Connectivity.Abstractions;
using Bit.App.Pages; using Bit.App.Pages;
using HockeyApp.iOS; using HockeyApp.iOS;
using Bit.iOS.Core; using Bit.iOS.Core;
using Google.Analytics;
using SimpleInjector; using SimpleInjector;
using XLabs.Ioc.SimpleInjectorContainer; using XLabs.Ioc.SimpleInjectorContainer;
using CoreNFC; using CoreNFC;
@ -33,7 +32,6 @@ namespace Bit.iOS
[Register("AppDelegate")] [Register("AppDelegate")]
public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
{ {
private GaiCompletionHandler _dispatchHandler = null;
private NFCNdefReaderSession _nfcSession = null; private NFCNdefReaderSession _nfcSession = null;
private ILockService _lockService; private ILockService _lockService;
private IDeviceInfoService _deviceInfoService; private IDeviceInfoService _deviceInfoService;
@ -277,10 +275,6 @@ namespace Bit.iOS
{ {
SendResumedMessage(); SendResumedMessage();
// Restores the dispatch interval because dispatchWithCompletionHandler
// has disabled automatic dispatching.
Gai.SharedInstance.DispatchInterval = 10;
base.WillEnterForeground(uiApplication); base.WillEnterForeground(uiApplication);
Debug.WriteLine("WillEnterForeground"); Debug.WriteLine("WillEnterForeground");
} }
@ -399,21 +393,6 @@ namespace Bit.iOS
{ {
return; return;
} }
_dispatchHandler = (result) =>
{
// Send hits until no hits are left, a dispatch error occurs, or the background task expires.
if(_dispatchHandler != null && result == DispatchResult.Good && !taskExpired)
{
Gai.SharedInstance.Dispatch(_dispatchHandler);
}
else
{
UIApplication.SharedApplication.EndBackgroundTask(taskId);
}
};
Gai.SharedInstance.Dispatch(_dispatchHandler);
} }
private void ProcessYubikey(bool success, string message) private void ProcessYubikey(bool success, string message)