From 52814475b5866d4a1d9c4b2009f4a53a2da49f02 Mon Sep 17 00:00:00 2001 From: Ilya Grechuhin Date: Thu, 21 Apr 2016 18:10:07 +0300 Subject: [PATCH 1/2] Updated Alohalytics. --- 3party/Alohalytics | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3party/Alohalytics b/3party/Alohalytics index 4db9ea4cf4..6fc3b425c3 160000 --- a/3party/Alohalytics +++ b/3party/Alohalytics @@ -1 +1 @@ -Subproject commit 4db9ea4cf4b58ee63f1d7f8ad2f79e72ce39bf1c +Subproject commit 6fc3b425c324855b3a8bfdce706bdb32b1947cee From 383d4b67267ddcd2ccb592be631ec0d89b92ab25 Mon Sep 17 00:00:00 2001 From: Ilya Grechuhin Date: Thu, 21 Apr 2016 18:39:30 +0300 Subject: [PATCH 2/2] [ios] Added Alohalytics installation id to Fabric. --- iphone/Maps/Classes/MapsAppDelegate.mm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/iphone/Maps/Classes/MapsAppDelegate.mm b/iphone/Maps/Classes/MapsAppDelegate.mm index 4dfa492a26..0996a81a4c 100644 --- a/iphone/Maps/Classes/MapsAppDelegate.mm +++ b/iphone/Maps/Classes/MapsAppDelegate.mm @@ -123,6 +123,13 @@ void InitCrashTrackers() #endif } +void ConfigCrashTrackers() +{ +#ifdef OMIM_PRODUCTION + [[Crashlytics sharedInstance] setObjectValue:[Alohalytics installationId] forKey:@"AlohalyticsInstallationId"]; +#endif +} + using namespace osm_auth_ios; @interface MapsAppDelegate () @@ -382,6 +389,10 @@ using namespace osm_auth_ios; return returnValue; } + // We send Alohalytics installation id to Fabric. + // To make sure id is created, ConfigCrashTrackers must be called after Statistics initialization. + ConfigCrashTrackers(); + NSURL * urlUsedToLaunchMaps = launchOptions[UIApplicationLaunchOptionsURLKey]; if (urlUsedToLaunchMaps != nil) returnValue |= [self checkLaunchURL:urlUsedToLaunchMaps];