Begin migration from Matomo to PostHog

Add CocoaPods-Keys.
This commit is contained in:
Doug
2021-10-27 14:51:46 +01:00
parent 2048cae2cc
commit efdbdcd117
49 changed files with 423 additions and 341 deletions
@@ -22,7 +22,6 @@
#import "JitsiViewController.h"
#import "RageShakeManager.h"
#import "Analytics.h"
#import "ThemeService.h"
#import "UniversalLink.h"
+9 -7
View File
@@ -433,16 +433,14 @@ NSString *const AppDelegateUniversalLinkDidChangeNotification = @"AppDelegateUni
_isAppForeground = NO;
_handleSelfVerificationRequest = YES;
// Configure our analytics. It will indeed start if the option is enabled
Analytics *analytics = [Analytics sharedInstance];
// Configure our analytics. It will start automatically if the option is enabled
Analytics *analytics = Analytics.shared;
[MXSDKOptions sharedInstance].analyticsDelegate = analytics;
[DecryptionFailureTracker sharedInstance].delegate = [Analytics sharedInstance];
[DecryptionFailureTracker sharedInstance].delegate = analytics;
MXBaseProfiler *profiler = [MXBaseProfiler new];
profiler.analytics = analytics;
[MXSDKOptions sharedInstance].profiler = profiler;
[analytics start];
self.localAuthenticationService = [[LocalAuthenticationService alloc] initWithPinCodePreferences:[PinCodePreferences shared]];
@@ -587,7 +585,7 @@ NSString *const AppDelegateUniversalLinkDidChangeNotification = @"AppDelegateUni
// Analytics: Force to send the pending actions
[[DecryptionFailureTracker sharedInstance] dispatch];
[[Analytics sharedInstance] dispatch];
[Analytics.shared forceUpload];
}
- (void)applicationWillEnterForeground:(UIApplication *)application
@@ -648,7 +646,8 @@ NSString *const AppDelegateUniversalLinkDidChangeNotification = @"AppDelegateUni
MXLogDebug(@"[AppDelegate] afterAppUnlockedByPin");
// Check if there is crash log to send
if (RiotSettings.shared.enableCrashReport)
#warning Is this technically analytics or is it mixing the two up?
if (Analytics.shared.isRunning)
{
[self checkExceptionToReport];
}
@@ -2225,6 +2224,9 @@ NSString *const AppDelegateUniversalLinkDidChangeNotification = @"AppDelegateUni
// Reset push notification store
[self.pushNotificationStore reset];
// Reset analytics
[Analytics.shared reset];
#ifdef MX_CALL_STACK_ENDPOINT
// Erase all created certificates and private keys by MXEndpointCallStack
for (MXKAccount *account in MXKAccountManager.sharedManager.accounts)