diff options
author | Alex Zolotarev <alex@maps.me> | 2015-03-04 18:25:56 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:38:09 +0300 |
commit | cae4ccec9159c732bea5062f85d46ff3ba520e0b (patch) | |
tree | f50ceb0c3e618e1c51ae9f08b8bd03d7824b26b2 /iphone/Maps/Classes/MapsAppDelegate.mm | |
parent | 7ca54514ed17f213bd3ec1d01ffae003d596e3d8 (diff) |
[ios] Removed MAT.
Diffstat (limited to 'iphone/Maps/Classes/MapsAppDelegate.mm')
-rw-r--r-- | iphone/Maps/Classes/MapsAppDelegate.mm | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/iphone/Maps/Classes/MapsAppDelegate.mm b/iphone/Maps/Classes/MapsAppDelegate.mm index 00ab7c3c73..946d7c693f 100644 --- a/iphone/Maps/Classes/MapsAppDelegate.mm +++ b/iphone/Maps/Classes/MapsAppDelegate.mm @@ -3,7 +3,6 @@ #import "Preferences.h" #import "LocationManager.h" #import "Statistics.h" -#import <MobileAppTracker/MobileAppTracker.h> #import "UIKitCategories.h" #import "AppInfo.h" #import "LocalNotificationManager.h" @@ -71,26 +70,6 @@ void InitLocalizedStrings() return [[NSUserDefaults standardUserDefaults] boolForKey:FIRST_LAUNCH_KEY]; } -- (void)initMAT -{ - NSString * advertiserId = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"MobileAppTrackerAdvertiserId"]; - NSString * conversionKey = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"MobileAppTrackerConversionKey"]; - - // Account Configuration info - must be set - [MobileAppTracker initializeWithMATAdvertiserId:advertiserId MATConversionKey:conversionKey]; - - // Used to pass us the IFA, enables highly accurate 1-to-1 attribution. - // Required for many advertising networks. - NSUUID * ifa = [AppInfo sharedInfo].advertisingId; - [MobileAppTracker setAppleAdvertisingIdentifier:ifa advertisingTrackingEnabled:(ifa != nil)]; - - // Only if you have pre-existing users before MAT SDK implementation, identify these users - // using this code snippet. - // Otherwise, pre-existing users will be counted as new installs the first time they run your app. - if (![MapsAppDelegate isFirstAppLaunch]) - [MobileAppTracker setExistingUser:YES]; -} - - (void)initMRGService { NSInteger appId = [[[NSBundle mainBundle] objectForInfoDictionaryKey:@"MRGServiceAppID"] integerValue]; @@ -145,7 +124,6 @@ void InitLocalizedStrings() [self customizeAppearance]; - [self initMAT]; [self initMRGService]; if ([application respondsToSelector:@selector(setMinimumBackgroundFetchInterval:)]) @@ -259,9 +237,6 @@ void InitLocalizedStrings() [FBSettings setDefaultAppID:[[NSBundle mainBundle] objectForInfoDictionaryKey:@"FacebookAppID"]]; [FBAppEvents activateApp]; - // MAT will not function without the measureSession call included - [MobileAppTracker measureSession]; - #ifdef OMIM_FULL [[AccountManager sharedManager] applicationDidBecomeActive:application]; #endif @@ -343,9 +318,6 @@ void InitLocalizedStrings() // We don't support HandleOpenUrl as it's deprecated from iOS 4.2 - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation { - // AlexZ: do we really need this? Need to ask them with a letter - [MobileAppTracker applicationDidOpenURL:[url absoluteString] sourceApplication:sourceApplication]; - #ifdef OMIM_FULL [[AccountManager sharedManager] application:application openURL:url sourceApplication:sourceApplication annotation:annotation]; #endif |