forked from organicmaps/organicmaps
Merge pull request #2956 from mapsme/aloha-fabric
[ios] Added Alohalytics installation id to Fabric.
This commit is contained in:
commit
169959cdf4
2 changed files with 12 additions and 1 deletions
|
@ -1 +1 @@
|
|||
Subproject commit 4db9ea4cf4b58ee63f1d7f8ad2f79e72ce39bf1c
|
||||
Subproject commit 6fc3b425c324855b3a8bfdce706bdb32b1947cee
|
|
@ -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 () <MWMFrameworkStorageObserver>
|
||||
|
@ -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];
|
||||
|
|
Loading…
Add table
Reference in a new issue