forked from organicmaps/organicmaps
[ios] Updated Flurry, Aarki and MobileAppTracker SDKs
This commit is contained in:
parent
88bf161fba
commit
ddabce5e57
10 changed files with 322 additions and 314 deletions
|
@ -206,11 +206,13 @@ void InitLocalizedStrings()
|
|||
|
||||
NSString * advertiserId = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"MobileAppTrackerAdvertiserId"];
|
||||
NSString * conversionKey = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"MobileAppTrackerConversionKey"];
|
||||
[[MobileAppTracker sharedManager] startTrackerWithMATAdvertiserId:advertiserId MATConversionKey:conversionKey];
|
||||
if ([[NSUserDefaults standardUserDefaults] boolForKey:FIRST_LAUNCH_KEY])
|
||||
[[MobileAppTracker sharedManager] trackInstall];
|
||||
else
|
||||
[[MobileAppTracker sharedManager] trackUpdate];
|
||||
[MobileAppTracker startTrackerWithMATAdvertiserId:advertiserId MATConversionKey:conversionKey];
|
||||
if (![[NSUserDefaults standardUserDefaults] boolForKey:FIRST_LAUNCH_KEY])
|
||||
[MobileAppTracker setExistingUser:YES];
|
||||
[MobileAppTracker trackSession];
|
||||
|
||||
if ([AppInfo sharedInfo].advertisingId)
|
||||
[MobileAppTracker setAppleAdvertisingIdentifier:[AppInfo sharedInfo].advertisingId];
|
||||
|
||||
return [launchOptions objectForKey:UIApplicationLaunchOptionsURLKey] != nil;
|
||||
}
|
||||
|
|
|
@ -160,14 +160,18 @@
|
|||
97D40C0B184D031900A1D572 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97D40C09184D031900A1D572 /* Images.xcassets */; };
|
||||
97D40C0E184E389000A1D572 /* MailComposeViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 97D40C0D184E389000A1D572 /* MailComposeViewController.m */; };
|
||||
97D40C0F184E389000A1D572 /* MailComposeViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 97D40C0D184E389000A1D572 /* MailComposeViewController.m */; };
|
||||
97D807B818A92AAB00D416E0 /* MoreAppsVC.mm in Sources */ = {isa = PBXBuildFile; fileRef = 97D807B718A92AAB00D416E0 /* MoreAppsVC.mm */; };
|
||||
97D807B918A92AAB00D416E0 /* MoreAppsVC.mm in Sources */ = {isa = PBXBuildFile; fileRef = 97D807B718A92AAB00D416E0 /* MoreAppsVC.mm */; };
|
||||
97DD585518A8EAFA0079837E /* libAarkiSDK.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 97DD585218A8EAFA0079837E /* libAarkiSDK.a */; };
|
||||
97DD585618A8EAFB0079837E /* libAarkiSDK.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 97DD585218A8EAFA0079837E /* libAarkiSDK.a */; };
|
||||
97DD585818A8EB060079837E /* MobileAppTracker.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 97DD585718A8EB060079837E /* MobileAppTracker.framework */; };
|
||||
97DD585918A8EB060079837E /* MobileAppTracker.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 97DD585718A8EB060079837E /* MobileAppTracker.framework */; };
|
||||
97DD585C18A8EB130079837E /* libFlurry_4.3.2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 97DD585A18A8EB120079837E /* libFlurry_4.3.2.a */; };
|
||||
97DD585D18A8EB130079837E /* libFlurry_4.3.2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 97DD585A18A8EB120079837E /* libFlurry_4.3.2.a */; };
|
||||
97ECD871183620CE00F77A46 /* AdSupport.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 97ECD870183620CE00F77A46 /* AdSupport.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
|
||||
97ECD872183625F900F77A46 /* AdSupport.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 97ECD870183620CE00F77A46 /* AdSupport.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
|
||||
97ECD87518362AC600F77A46 /* MobileAppTracker.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 97ECD87418362AC600F77A46 /* MobileAppTracker.framework */; };
|
||||
97ECD87618362AC700F77A46 /* MobileAppTracker.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 97ECD87418362AC600F77A46 /* MobileAppTracker.framework */; };
|
||||
97ECD87818362B3D00F77A46 /* CoreTelephony.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 97ECD87718362B3D00F77A46 /* CoreTelephony.framework */; };
|
||||
97ECD87A18362B5400F77A46 /* MobileCoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 97ECD87918362B5400F77A46 /* MobileCoreServices.framework */; };
|
||||
97ECD87C1836584B00F77A46 /* libAarkiSDK.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 97ECD87B1836584B00F77A46 /* libAarkiSDK.a */; };
|
||||
97ECD87D1836584B00F77A46 /* libAarkiSDK.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 97ECD87B1836584B00F77A46 /* libAarkiSDK.a */; };
|
||||
97ECD87F1836594400F77A46 /* StoreKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 97ECD87E1836594400F77A46 /* StoreKit.framework */; };
|
||||
97ECD8801836594A00F77A46 /* StoreKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 97ECD87E1836594400F77A46 /* StoreKit.framework */; settings = {ATTRIBUTES = (Weak, ); }; };
|
||||
97ECD881183674CA00F77A46 /* CoreTelephony.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 97ECD87718362B3D00F77A46 /* CoreTelephony.framework */; };
|
||||
|
@ -183,8 +187,6 @@
|
|||
97F61795183E7445009919E2 /* LinkCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 97F61793183E7445009919E2 /* LinkCell.m */; };
|
||||
CB252D6F16FF82C9001E41E9 /* Statistics.mm in Sources */ = {isa = PBXBuildFile; fileRef = CB252D6C16FF82C8001E41E9 /* Statistics.mm */; };
|
||||
CB252D7016FF82C9001E41E9 /* Statistics.mm in Sources */ = {isa = PBXBuildFile; fileRef = CB252D6C16FF82C8001E41E9 /* Statistics.mm */; };
|
||||
ED3B8DB4182CD96F001F124F /* libFlurry_4.3.0.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ED3B8DB3182CD96F001F124F /* libFlurry_4.3.0.a */; };
|
||||
ED3B8DB5182CD96F001F124F /* libFlurry_4.3.0.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ED3B8DB3182CD96F001F124F /* libFlurry_4.3.0.a */; };
|
||||
ED48BBB117BE6EA8003E7E92 /* MWMApi.mm in Sources */ = {isa = PBXBuildFile; fileRef = ED48BBB017BE6EA8003E7E92 /* MWMApi.mm */; };
|
||||
ED48BBB217BE6EA8003E7E92 /* MWMApi.mm in Sources */ = {isa = PBXBuildFile; fileRef = ED48BBB017BE6EA8003E7E92 /* MWMApi.mm */; };
|
||||
ED48BBB517C267F5003E7E92 /* ColorPickerView.mm in Sources */ = {isa = PBXBuildFile; fileRef = ED48BBB417C267F5003E7E92 /* ColorPickerView.mm */; };
|
||||
|
@ -1654,13 +1656,17 @@
|
|||
97D40C09184D031900A1D572 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = SOURCE_ROOT; };
|
||||
97D40C0C184E389000A1D572 /* MailComposeViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; lineEnding = 0; path = MailComposeViewController.h; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objcpp; };
|
||||
97D40C0D184E389000A1D572 /* MailComposeViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MailComposeViewController.m; sourceTree = "<group>"; };
|
||||
97ECD86D1836200A00F77A46 /* Aarki.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Aarki.h; sourceTree = "<group>"; };
|
||||
97ECD86E1836200A00F77A46 /* AarkiContact.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AarkiContact.h; sourceTree = "<group>"; };
|
||||
97D807B618A92AAB00D416E0 /* MoreAppsVC.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MoreAppsVC.h; sourceTree = "<group>"; };
|
||||
97D807B718A92AAB00D416E0 /* MoreAppsVC.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MoreAppsVC.mm; sourceTree = "<group>"; };
|
||||
97DD585218A8EAFA0079837E /* libAarkiSDK.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libAarkiSDK.a; sourceTree = "<group>"; };
|
||||
97DD585318A8EAFA0079837E /* Aarki.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Aarki.h; sourceTree = "<group>"; };
|
||||
97DD585418A8EAFA0079837E /* AarkiContact.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AarkiContact.h; sourceTree = "<group>"; };
|
||||
97DD585718A8EB060079837E /* MobileAppTracker.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = MobileAppTracker.framework; sourceTree = "<group>"; };
|
||||
97DD585A18A8EB120079837E /* libFlurry_4.3.2.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libFlurry_4.3.2.a; sourceTree = "<group>"; };
|
||||
97DD585B18A8EB120079837E /* Flurry.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Flurry.h; sourceTree = "<group>"; };
|
||||
97ECD870183620CE00F77A46 /* AdSupport.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AdSupport.framework; path = System/Library/Frameworks/AdSupport.framework; sourceTree = SDKROOT; };
|
||||
97ECD87418362AC600F77A46 /* MobileAppTracker.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = MobileAppTracker.framework; sourceTree = "<group>"; };
|
||||
97ECD87718362B3D00F77A46 /* CoreTelephony.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreTelephony.framework; path = System/Library/Frameworks/CoreTelephony.framework; sourceTree = SDKROOT; };
|
||||
97ECD87918362B5400F77A46 /* MobileCoreServices.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MobileCoreServices.framework; path = System/Library/Frameworks/MobileCoreServices.framework; sourceTree = SDKROOT; };
|
||||
97ECD87B1836584B00F77A46 /* libAarkiSDK.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libAarkiSDK.a; sourceTree = "<group>"; };
|
||||
97ECD87E1836594400F77A46 /* StoreKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = StoreKit.framework; path = System/Library/Frameworks/StoreKit.framework; sourceTree = SDKROOT; };
|
||||
97EDDCE418A299C000AEFB7A /* Twitter.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Twitter.framework; path = System/Library/Frameworks/Twitter.framework; sourceTree = SDKROOT; };
|
||||
97F61762183D0A72009919E2 /* btn-zoom-in@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "btn-zoom-in@2x.png"; sourceTree = "<group>"; };
|
||||
|
@ -1669,10 +1675,8 @@
|
|||
97F61780183E6172009919E2 /* LocationButton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LocationButton.h; sourceTree = "<group>"; };
|
||||
97F6178F183E742E009919E2 /* LinkCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = LinkCell.h; path = Settings/LinkCell.h; sourceTree = "<group>"; };
|
||||
97F61793183E7445009919E2 /* LinkCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = LinkCell.m; path = Settings/LinkCell.m; sourceTree = "<group>"; };
|
||||
CB252D6916FF82C8001E41E9 /* Flurry.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Flurry.h; sourceTree = "<group>"; };
|
||||
CB252D6B16FF82C8001E41E9 /* Statistics.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Statistics.h; sourceTree = "<group>"; };
|
||||
CB252D6C16FF82C8001E41E9 /* Statistics.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = Statistics.mm; sourceTree = "<group>"; };
|
||||
ED3B8DB3182CD96F001F124F /* libFlurry_4.3.0.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libFlurry_4.3.0.a; sourceTree = "<group>"; };
|
||||
ED48BBAF17BE6EA8003E7E92 /* MWMApi.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MWMApi.h; sourceTree = "<group>"; };
|
||||
ED48BBB017BE6EA8003E7E92 /* MWMApi.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = MWMApi.mm; sourceTree = "<group>"; };
|
||||
ED48BBB317C267F5003E7E92 /* ColorPickerView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ColorPickerView.h; sourceTree = "<group>"; };
|
||||
|
@ -2361,13 +2365,13 @@
|
|||
EE12020911CD464100ABDD5D /* libbase.a in Frameworks */,
|
||||
EDF924DB183380CE00539672 /* FacebookSDK.framework in Frameworks */,
|
||||
EE12020A11CD464100ABDD5D /* libcoding.a in Frameworks */,
|
||||
97DD585518A8EAFA0079837E /* libAarkiSDK.a in Frameworks */,
|
||||
EE12020C11CD464100ABDD5D /* libexpat.a in Frameworks */,
|
||||
EE12020E11CD464100ABDD5D /* libgeometry.a in Frameworks */,
|
||||
97ECD87C1836584B00F77A46 /* libAarkiSDK.a in Frameworks */,
|
||||
EE12020F11CD464100ABDD5D /* libindexer.a in Frameworks */,
|
||||
EE12021011CD464100ABDD5D /* libmap.a in Frameworks */,
|
||||
EE12021211CD464100ABDD5D /* libgraphics.a in Frameworks */,
|
||||
ED3B8DB4182CD96F001F124F /* libFlurry_4.3.0.a in Frameworks */,
|
||||
97DD585C18A8EB130079837E /* libFlurry_4.3.2.a in Frameworks */,
|
||||
FA87151B12B1518F00592DAF /* SystemConfiguration.framework in Frameworks */,
|
||||
FA04373212CAB83F00017494 /* libstorage.a in Frameworks */,
|
||||
EEF5745512DE1AD50082F472 /* libfribidi.a in Frameworks */,
|
||||
|
@ -2375,8 +2379,8 @@
|
|||
49DE1CA413437D7A00A93417 /* libbzip2.a in Frameworks */,
|
||||
FA2EF9C713630C3B00E3E484 /* libplatform.a in Frameworks */,
|
||||
FAAFD699139D9C6B000AE70C /* libsearch.a in Frameworks */,
|
||||
97ECD87518362AC600F77A46 /* MobileAppTracker.framework in Frameworks */,
|
||||
FAEA8B2A1437CA80002A6737 /* libjansson.a in Frameworks */,
|
||||
97DD585818A8EB060079837E /* MobileAppTracker.framework in Frameworks */,
|
||||
FAF29847146EEF4A00FF0057 /* libprotobuf.a in Frameworks */,
|
||||
EE5A34E6156FCB9500E34FFE /* libgui.a in Frameworks */,
|
||||
EEFFB4E815DCDD8A00BACE1C /* libanim.a in Frameworks */,
|
||||
|
@ -2407,6 +2411,7 @@
|
|||
97C985F3186C487900AF7E9E /* libGoogleAdMobAds.a in Frameworks */,
|
||||
FAFB08FB151215EE0041901D /* libfreetype.a in Frameworks */,
|
||||
FAFB08FC151215EE0041901D /* Foundation.framework in Frameworks */,
|
||||
97DD585D18A8EB130079837E /* libFlurry_4.3.2.a in Frameworks */,
|
||||
FAFB08FD151215EE0041901D /* UIKit.framework in Frameworks */,
|
||||
FAFB08FE151215EE0041901D /* CoreGraphics.framework in Frameworks */,
|
||||
FAFB08FF151215EE0041901D /* OpenGLES.framework in Frameworks */,
|
||||
|
@ -2414,6 +2419,7 @@
|
|||
FAFB0901151215EE0041901D /* CoreLocation.framework in Frameworks */,
|
||||
FAFB0902151215EE0041901D /* libbase.a in Frameworks */,
|
||||
EDF924DC183380CF00539672 /* FacebookSDK.framework in Frameworks */,
|
||||
97DD585918A8EB060079837E /* MobileAppTracker.framework in Frameworks */,
|
||||
FAFB0903151215EE0041901D /* libcoding.a in Frameworks */,
|
||||
FAFB0904151215EE0041901D /* libexpat.a in Frameworks */,
|
||||
FAFB0905151215EE0041901D /* libgeometry.a in Frameworks */,
|
||||
|
@ -2421,7 +2427,6 @@
|
|||
972CDCC41887EF9F006641CA /* SpeechKit.framework in Frameworks */,
|
||||
FAFB0907151215EE0041901D /* libmap.a in Frameworks */,
|
||||
FAFB0908151215EE0041901D /* libgraphics.a in Frameworks */,
|
||||
ED3B8DB5182CD96F001F124F /* libFlurry_4.3.0.a in Frameworks */,
|
||||
FAFB0909151215EE0041901D /* SystemConfiguration.framework in Frameworks */,
|
||||
FAFB090A151215EE0041901D /* libstorage.a in Frameworks */,
|
||||
FAFB090B151215EE0041901D /* libfribidi.a in Frameworks */,
|
||||
|
@ -2430,12 +2435,11 @@
|
|||
FAFB090D151215EE0041901D /* libbzip2.a in Frameworks */,
|
||||
FAFB090E151215EE0041901D /* libplatform.a in Frameworks */,
|
||||
FAFB090F151215EE0041901D /* libsearch.a in Frameworks */,
|
||||
97ECD87618362AC700F77A46 /* MobileAppTracker.framework in Frameworks */,
|
||||
FAFB0910151215EE0041901D /* libjansson.a in Frameworks */,
|
||||
FAFB0911151215EE0041901D /* libprotobuf.a in Frameworks */,
|
||||
97ECD87D1836584B00F77A46 /* libAarkiSDK.a in Frameworks */,
|
||||
EE5A34E7156FCBD800E34FFE /* libgui.a in Frameworks */,
|
||||
EEFFB4E915DCDD8A00BACE1C /* libanim.a in Frameworks */,
|
||||
97DD585618A8EAFB0079837E /* libAarkiSDK.a in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
|
@ -2447,6 +2451,8 @@
|
|||
children = (
|
||||
97B4E9271851DAB300BEC5D7 /* Custom Views */,
|
||||
9789DB53188D5DFF007C6FAE /* In App Messaging */,
|
||||
97D807B618A92AAB00D416E0 /* MoreAppsVC.h */,
|
||||
97D807B718A92AAB00D416E0 /* MoreAppsVC.mm */,
|
||||
978F9251183BD530000D6C7C /* NavigationController.h */,
|
||||
978F9252183BD530000D6C7C /* NavigationController.mm */,
|
||||
97D40C0C184E389000A1D572 /* MailComposeViewController.h */,
|
||||
|
@ -3019,14 +3025,14 @@
|
|||
97C98520186AE3CF00AF7E9E /* AppInfo.mm */,
|
||||
97C9851D186AE3C500AF7E9E /* Reachability.h */,
|
||||
97C9851C186AE3C500AF7E9E /* Reachability.m */,
|
||||
CB252D6916FF82C8001E41E9 /* Flurry.h */,
|
||||
ED3B8DB3182CD96F001F124F /* libFlurry_4.3.0.a */,
|
||||
CB252D6B16FF82C8001E41E9 /* Statistics.h */,
|
||||
CB252D6C16FF82C8001E41E9 /* Statistics.mm */,
|
||||
97ECD87B1836584B00F77A46 /* libAarkiSDK.a */,
|
||||
97ECD86D1836200A00F77A46 /* Aarki.h */,
|
||||
97ECD86E1836200A00F77A46 /* AarkiContact.h */,
|
||||
97ECD87418362AC600F77A46 /* MobileAppTracker.framework */,
|
||||
97DD585A18A8EB120079837E /* libFlurry_4.3.2.a */,
|
||||
97DD585B18A8EB120079837E /* Flurry.h */,
|
||||
97DD585718A8EB060079837E /* MobileAppTracker.framework */,
|
||||
97DD585218A8EAFA0079837E /* libAarkiSDK.a */,
|
||||
97DD585318A8EAFA0079837E /* Aarki.h */,
|
||||
97DD585418A8EAFA0079837E /* AarkiContact.h */,
|
||||
);
|
||||
path = Statistics;
|
||||
sourceTree = "<group>";
|
||||
|
@ -5021,6 +5027,7 @@
|
|||
FA09E01113F71F6C007E69CA /* SearchVC.mm in Sources */,
|
||||
9747264318323080006B7CB7 /* UIKitCategories.m in Sources */,
|
||||
97719D421843AF1E00BDD815 /* ScopeView.m in Sources */,
|
||||
97D807B818A92AAB00D416E0 /* MoreAppsVC.mm in Sources */,
|
||||
FABF223E13FAA97A003D4D49 /* CompassView.mm in Sources */,
|
||||
9789DB5A188D94F9007C6FAE /* InterstitialView.mm in Sources */,
|
||||
FA29FDAA141E77F8004ADF66 /* Preferences.mm in Sources */,
|
||||
|
@ -5132,6 +5139,7 @@
|
|||
97C98614186C487900AF7E9E /* MPAdServerURLBuilder.m in Sources */,
|
||||
97C98638186C487900AF7E9E /* MPGlobal.m in Sources */,
|
||||
97C98609186C487900AF7E9E /* MPBannerAdManager.m in Sources */,
|
||||
97D807B918A92AAB00D416E0 /* MoreAppsVC.mm in Sources */,
|
||||
97C9860F186C487900AF7E9E /* MPAdBrowserController.m in Sources */,
|
||||
FA5D4F1A1557F79900E7D8BB /* PlacePageVC.mm in Sources */,
|
||||
FAF457E815597D4600DCCC49 /* Framework.cpp in Sources */,
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
//! Protocol for customizing Aarki offers and providing offer request callbacks
|
||||
/*!
|
||||
|
||||
|
||||
The \a didExit callback is called whenever the user leaves the view controller.
|
||||
This may happen when the user successfully completes, quits or abandons the offer.
|
||||
*/
|
||||
|
@ -22,12 +22,12 @@
|
|||
//! Show the offer (as a full screen modal overlay)
|
||||
/*!
|
||||
\param viewController For example the controller of the view which contains the ad which user clicks to present this offer
|
||||
|
||||
|
||||
This method is essentially equivalent to:
|
||||
\code
|
||||
[viewController presentModalViewController:self animated:animated];
|
||||
\endcode
|
||||
|
||||
|
||||
The offer will be dismissed with animation if it was presented with animation.
|
||||
\sa dismiss
|
||||
*/
|
||||
|
@ -105,3 +105,4 @@ typedef void(^AarkiLoaderCompletionBlock)(AarkiStatus);
|
|||
|
||||
|
||||
@end
|
||||
|
||||
|
|
|
@ -31,9 +31,6 @@ typedef void(^AarkiRewards)(NSString *placementId, NSNumber *rewards);
|
|||
// User ID
|
||||
+ (NSString *)userId;
|
||||
|
||||
// OpenUDID
|
||||
+ (NSString *)openUDID;
|
||||
|
||||
// Advertising Identifier
|
||||
+ (NSString *)advertisingId;
|
||||
|
||||
|
|
|
@ -0,0 +1,110 @@
|
|||
//
|
||||
// MATEventItem.h
|
||||
// MobileAppTracker
|
||||
//
|
||||
// Created by John Bender on 1/10/14.
|
||||
// Copyright (c) 2014 HasOffers. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
/*!
|
||||
MATEventItem represents event items for use with MAT events.
|
||||
*/
|
||||
@interface MATEventItem : NSObject
|
||||
|
||||
/** @name MATEventItem Properties */
|
||||
/*!
|
||||
name of the event item
|
||||
*/
|
||||
@property (nonatomic, copy) NSString *item;
|
||||
/*!
|
||||
unit price of the event item
|
||||
*/
|
||||
@property (nonatomic, assign) float unitPrice;
|
||||
/*!
|
||||
quantity of the event item
|
||||
*/
|
||||
@property (nonatomic, assign) int quantity;
|
||||
/*!
|
||||
revenue of the event item
|
||||
*/
|
||||
@property (nonatomic, assign) float revenue;
|
||||
|
||||
/*!
|
||||
an extra parameter that corresponds to attribute_sub1 property of the event item
|
||||
*/
|
||||
@property (nonatomic, copy) NSString *attribute1;
|
||||
/*!
|
||||
an extra parameter that corresponds to attribute_sub2 property of the event item
|
||||
*/
|
||||
@property (nonatomic, copy) NSString *attribute2;
|
||||
/*!
|
||||
an extra parameter that corresponds to attribute_sub3 property of the event item
|
||||
*/
|
||||
@property (nonatomic, copy) NSString *attribute3;
|
||||
/*!
|
||||
an extra parameter that corresponds to attribute_sub4 property of the event item
|
||||
*/
|
||||
@property (nonatomic, copy) NSString *attribute4;
|
||||
/*!
|
||||
an extra parameter that corresponds to attribute_sub5 property of the event item
|
||||
*/
|
||||
@property (nonatomic, copy) NSString *attribute5;
|
||||
|
||||
|
||||
/** @name Methods to create MATEventItem objects.*/
|
||||
|
||||
/*!
|
||||
Method to create an event item. Revenue will be calculated using (quantity * unitPrice).
|
||||
|
||||
@param name name of the event item
|
||||
@param unitPrice unit price of the event item
|
||||
@param quantity quantity of the event item
|
||||
*/
|
||||
+ (MATEventItem *)eventItemWithName:(NSString *)name unitPrice:(float)unitPrice quantity:(int)quantity;
|
||||
|
||||
/*!
|
||||
Method to create an event item.
|
||||
@param name name of the event item
|
||||
@param unitPrice unit price of the event item
|
||||
@param quantity quantity of the event item
|
||||
@param revenue revenue of the event item, to be used instead of (quantity * unitPrice)
|
||||
*/
|
||||
+ (MATEventItem *)eventItemWithName:(NSString *)name unitPrice:(float)unitPrice quantity:(int)quantity revenue:(float)revenue;
|
||||
|
||||
/*!
|
||||
Method to create an event item.
|
||||
@param name name of the event item
|
||||
@param attribute1 an extra parameter that corresponds to attribute_sub1 property of the event item
|
||||
@param attribute2 an extra parameter that corresponds to attribute_sub2 property of the event item
|
||||
@param attribute3 an extra parameter that corresponds to attribute_sub3 property of the event item
|
||||
@param attribute4 an extra parameter that corresponds to attribute_sub4 property of the event item
|
||||
@param attribute5 an extra parameter that corresponds to attribute_sub5 property of the event item
|
||||
*/
|
||||
+ (MATEventItem *)eventItemWithName:(NSString *)name
|
||||
attribute1:(NSString *)attribute1
|
||||
attribute2:(NSString *)attribute2
|
||||
attribute3:(NSString *)attribute3
|
||||
attribute4:(NSString *)attribute4
|
||||
attribute5:(NSString *)attribute5;
|
||||
|
||||
/*!
|
||||
Method to create an event item.
|
||||
@param name name of the event item
|
||||
@param unitPrice unit price of the event item
|
||||
@param quantity quantity of the event item
|
||||
@param revenue revenue of the event item, to be used instead of (quantity * unitPrice)
|
||||
@param attribute1 an extra parameter that corresponds to attribute_sub1 property of the event item
|
||||
@param attribute2 an extra parameter that corresponds to attribute_sub2 property of the event item
|
||||
@param attribute3 an extra parameter that corresponds to attribute_sub3 property of the event item
|
||||
@param attribute4 an extra parameter that corresponds to attribute_sub4 property of the event item
|
||||
@param attribute5 an extra parameter that corresponds to attribute_sub5 property of the event item
|
||||
*/
|
||||
+ (MATEventItem *)eventItemWithName:(NSString *)name unitPrice:(float)unitPrice quantity:(int)quantity revenue:(float)revenue
|
||||
attribute1:(NSString *)attribute1
|
||||
attribute2:(NSString *)attribute2
|
||||
attribute3:(NSString *)attribute3
|
||||
attribute4:(NSString *)attribute4
|
||||
attribute5:(NSString *)attribute5;
|
||||
@end
|
|
@ -7,8 +7,30 @@
|
|||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "MATEventItem.h"
|
||||
|
||||
#define MATVERSION @"3.0.1"
|
||||
|
||||
|
||||
#pragma mark - enumerated types
|
||||
|
||||
/** @name Results for tracking actions */
|
||||
typedef enum {
|
||||
MATActionResultFailure = -1,
|
||||
MATActionResultRequestSent = 1,
|
||||
MATActionResultAlreadyInstalled
|
||||
} MATActionResult;
|
||||
|
||||
/** @name Gender type constants */
|
||||
typedef enum {
|
||||
MATGenderMale=0, // Gender type MALE. Equals 0.
|
||||
MATGenderFemale=1, // Gender type FEMALE. Equals 1.
|
||||
|
||||
MAT_GENDER_MALE=MATGenderMale, // Backward-compatible alias for MATGenderMale.
|
||||
MAT_GENDER_FEMALE=MATGenderFemale // Backward-compatible alias for MATGenderFemale.
|
||||
} MATGender;
|
||||
|
||||
#define MATVERSION @"2.6.1"
|
||||
|
||||
@protocol MobileAppTrackerDelegate;
|
||||
|
||||
|
@ -19,32 +41,6 @@
|
|||
@interface MobileAppTracker : NSObject
|
||||
|
||||
|
||||
#pragma mark - MATGender
|
||||
|
||||
/** @name Gender type constants */
|
||||
/*!
|
||||
Gender type. An integer -- 0 or 1.
|
||||
*/
|
||||
typedef NSInteger MATGender;
|
||||
/*!
|
||||
Gender type MALE. Equals 0.
|
||||
*/
|
||||
extern const NSInteger MAT_GENDER_MALE;
|
||||
/*!
|
||||
Gender type FEMALE. Equals 1.
|
||||
*/
|
||||
extern const NSInteger MAT_GENDER_FEMALE;
|
||||
|
||||
|
||||
#pragma mark - MobileAppTracker Shared Instance
|
||||
|
||||
/** @name MobileAppTracker Shared Instance */
|
||||
/*!
|
||||
A singleton of the MobileAppTracker class
|
||||
*/
|
||||
+ (MobileAppTracker *)sharedManager;
|
||||
|
||||
|
||||
#pragma mark - Main Initializer
|
||||
|
||||
/** @name Intitializing MobileAppTracker With Advertiser Information */
|
||||
|
@ -54,23 +50,17 @@ extern const NSInteger MAT_GENDER_FEMALE;
|
|||
@param key the MAT Conversion Key provided in Mobile App Tracking.
|
||||
@return YES if error occurs, NO otherwise.
|
||||
*/
|
||||
- (BOOL)startTrackerWithMATAdvertiserId:(NSString *)aid MATConversionKey:(NSString *)key;
|
||||
+ (BOOL)startTrackerWithMATAdvertiserId:(NSString *)aid MATConversionKey:(NSString *)key;
|
||||
|
||||
|
||||
#pragma mark - Properties
|
||||
#pragma mark - Delegate
|
||||
|
||||
/** @name MAT SDK Callback Delegate */
|
||||
/*!
|
||||
[MobileAppTrackerDelegate](MobileAppTrackerDelegate) : A Delegate used by MobileAppTracker to callback.
|
||||
Set this to receive success and failure callbacks from the MAT SDK.
|
||||
[MobileAppTrackerDelegate](MobileAppTrackerDelegate) : A Delegate used by MobileAppTracker to post
|
||||
success and failure callbacks from the MAT SDK.
|
||||
*/
|
||||
@property (nonatomic, assign) id <MobileAppTrackerDelegate> delegate;
|
||||
|
||||
/** @name MAT Data Parameters */
|
||||
/*!
|
||||
Provides a view of the parameters used by the sdk at any time.
|
||||
*/
|
||||
@property (nonatomic, readonly) NSDictionary *sdkDataParameters;
|
||||
+ (void)setDelegate:(id <MobileAppTrackerDelegate>)delegate;
|
||||
|
||||
|
||||
#pragma mark - Debug And Test
|
||||
|
@ -79,153 +69,137 @@ extern const NSInteger MAT_GENDER_FEMALE;
|
|||
|
||||
/*!
|
||||
Specifies that the server responses should include debug information.
|
||||
|
||||
|
||||
@warning This is only for testing. You must turn this off for release builds.
|
||||
|
||||
|
||||
@param yesorno defaults to NO.
|
||||
*/
|
||||
- (void)setDebugMode:(BOOL)yesorno;
|
||||
+ (void)setDebugMode:(BOOL)yesorno;
|
||||
|
||||
/*!
|
||||
Set to YES to allow duplicate requests to be registered with the MAT server.
|
||||
|
||||
|
||||
@warning This is only for testing. You must turn this off for release builds.
|
||||
|
||||
|
||||
@param yesorno defaults to NO.
|
||||
*/
|
||||
- (void)setAllowDuplicateRequests:(BOOL)yesorno;
|
||||
+ (void)setAllowDuplicateRequests:(BOOL)yesorno;
|
||||
|
||||
|
||||
#pragma mark - Data Parameters
|
||||
|
||||
/** @name Setter Methods */
|
||||
|
||||
/*!
|
||||
Set whether this is an existing user or a new one. This is generally used to
|
||||
distinguish users who were using previous versions of the app, prior to
|
||||
integration of the MAT SDK. The default is to assume a new user.
|
||||
See http://support.mobileapptracking.com/entries/22621001-Handling-Installs-prior-to-SDK-implementation
|
||||
@param existingUser - Is this a pre-existing user of the app? Default: NO
|
||||
*/
|
||||
+ (void)setExistingUser:(BOOL)existingUser;
|
||||
|
||||
/*!
|
||||
Set the Apple Advertising Identifier available in iOS 6.
|
||||
@param appleAdvertisingIdentifier - Apple Advertising Identifier
|
||||
*/
|
||||
- (void)setAppleAdvertisingIdentifier:(NSUUID *)appleAdvertisingIdentifier;
|
||||
+ (void)setAppleAdvertisingIdentifier:(NSUUID *)appleAdvertisingIdentifier;
|
||||
|
||||
/*!
|
||||
Set the Apple Vendor Identifier available in iOS 6.
|
||||
@param appleVendorIdentifier - Apple Vendor Identifier
|
||||
*/
|
||||
- (void)setAppleVendorIdentifier:(NSUUID * )appleVendorIdentifier;
|
||||
+ (void)setAppleVendorIdentifier:(NSUUID * )appleVendorIdentifier;
|
||||
|
||||
/*!
|
||||
Sets the currency code.
|
||||
Default: USD
|
||||
@param currencyCode The string name for the currency code.
|
||||
*/
|
||||
- (void)setCurrencyCode:(NSString *)currencyCode;
|
||||
+ (void)setCurrencyCode:(NSString *)currencyCode;
|
||||
|
||||
/*!
|
||||
Sets the jailbroken device flag.
|
||||
@param yesorno The jailbroken device flag.
|
||||
*/
|
||||
- (void)setJailbroken:(BOOL)yesorno;
|
||||
|
||||
/*!
|
||||
Sets the MAT advertiser id.
|
||||
@param advertiserId The string id for the MAT advertiser id.
|
||||
*/
|
||||
- (void)setMATAdvertiserId:(NSString *)advertiserId;
|
||||
|
||||
/*!
|
||||
Sets the MAT conversion key.
|
||||
@param conversionKey The string value for the MAT conversion key.
|
||||
*/
|
||||
- (void)setMATConversionKey:(NSString *)conversionKey;
|
||||
+ (void)setJailbroken:(BOOL)yesorno;
|
||||
|
||||
/*!
|
||||
Sets the package name (bundle_id).
|
||||
Defaults to the Bundle Id of the app that is running the sdk.
|
||||
@param packageName The string name for the package.
|
||||
*/
|
||||
- (void)setPackageName:(NSString *)packageName;
|
||||
+ (void)setPackageName:(NSString *)packageName;
|
||||
|
||||
/*!
|
||||
Specifies if the sdk should auto detect if the iOS device is jailbroken.
|
||||
YES/NO
|
||||
@param yesorno YES will detect if the device is jailbroken, defaults to YES.
|
||||
*/
|
||||
- (void)setShouldAutoDetectJailbroken:(BOOL)yesorno;
|
||||
|
||||
/*!
|
||||
Specifies if the sdk should pull the Apple Advertising Identifier from the device.
|
||||
YES/NO
|
||||
@param yesorno YES will set the Apple Advertising Identifier, defaults to NO.
|
||||
*/
|
||||
- (void)setShouldAutoGenerateAppleAdvertisingIdentifier:(BOOL)yesorno;
|
||||
+ (void)setShouldAutoDetectJailbroken:(BOOL)yesorno;
|
||||
|
||||
/*!
|
||||
Specifies if the sdk should pull the Apple Vendor Identifier from the device.
|
||||
YES/NO
|
||||
Note that setting to NO will clear any previously set value for the property.
|
||||
@param yesorno YES will set the Apple Vendor Identifier, defaults to NO.
|
||||
*/
|
||||
- (void)setShouldAutoGenerateAppleVendorIdentifier:(BOOL)yesorno;
|
||||
|
||||
/*!
|
||||
Sets the MAC address.
|
||||
@param macAddress mac address, defaults to nil.
|
||||
*/
|
||||
- (void)setMACAddress:(NSString *)macAddress;
|
||||
|
||||
/*!
|
||||
Sets the ODIN-1.
|
||||
@param odin1 ODIN-1, defaults to nil.
|
||||
*/
|
||||
- (void)setODIN1:(NSString *)odin1;
|
||||
|
||||
/*!
|
||||
Sets the OpenUDID.
|
||||
@param openUDID OpenUDID, defaults to nil.
|
||||
*/
|
||||
- (void)setOpenUDID:(NSString *)openUDID;
|
||||
+ (void)setShouldAutoGenerateAppleVendorIdentifier:(BOOL)yesorno;
|
||||
|
||||
/*!
|
||||
Sets the site id.
|
||||
@param siteId The string id for the site id.
|
||||
*/
|
||||
- (void)setSiteId:(NSString *)siteId;
|
||||
+ (void)setSiteId:(NSString *)siteId;
|
||||
|
||||
/*!
|
||||
Set the Trusted Preference Identifier (TPID).
|
||||
@param trusteTPID - Trusted Preference Identifier (TPID)
|
||||
Set the TRUSTe Trusted Preference Identifier (TPID).
|
||||
@param tpid - Trusted Preference Identifier
|
||||
*/
|
||||
- (void)setTrusteTPID:(NSString *)trusteTPID;
|
||||
+ (void)setTRUSTeId:(NSString *)tpid;
|
||||
|
||||
/*!
|
||||
Sets the user id.
|
||||
@param userId The string name for the user id.
|
||||
*/
|
||||
- (void)setUserId:(NSString *)userId;
|
||||
+ (void)setUserId:(NSString *)userId;
|
||||
|
||||
/*!
|
||||
Sets the UIID. UIID is replacement of the deprecated UDID in iOS for Asia and Japan.
|
||||
Ref: https://github.com/akisute/UIApplication-UIID
|
||||
@param uiid UIID, defaults to nil.
|
||||
Set user's Facebook ID.
|
||||
@param facebookUserId string containing the user's Facebook user ID.
|
||||
*/
|
||||
- (void)setUIID:(NSString *)uiid;
|
||||
+ (void)setFacebookUserId:(NSString *)facebookUserId;
|
||||
|
||||
/*!
|
||||
Set user's Twitter ID.
|
||||
@param twitterUserId string containing the user's Twitter user ID.
|
||||
*/
|
||||
+ (void)setTwitterUserId:(NSString *)twitterUserId;
|
||||
|
||||
/*!
|
||||
Set user's Google ID.
|
||||
@param googleUserId string containing the user's Google user ID.
|
||||
*/
|
||||
+ (void)setGoogleUserId:(NSString *)googleUserId;
|
||||
|
||||
/*!
|
||||
Sets the user's age.
|
||||
@param userAge user's age
|
||||
*/
|
||||
- (void)setAge:(NSInteger)userAge;
|
||||
+ (void)setAge:(NSInteger)userAge;
|
||||
|
||||
/*!
|
||||
Sets the user's gender.
|
||||
@param userGender user's gender, possible values MAT_GENDER_MALE (0), MAT_GENDER_FEMALE (1).
|
||||
@param userGender user's gender, possible values MATGenderMale, MATGenderFemale
|
||||
*/
|
||||
- (void)setGender:(MATGender)userGender;
|
||||
+ (void)setGender:(MATGender)userGender;
|
||||
|
||||
/*!
|
||||
Sets the user's location.
|
||||
@param latitude user's latitude
|
||||
@param longitude user's longitude
|
||||
*/
|
||||
- (void)setLatitude:(double)latitude longitude:(double)longitude;
|
||||
+ (void)setLatitude:(double)latitude longitude:(double)longitude;
|
||||
|
||||
/*!
|
||||
Sets the user's location including altitude.
|
||||
|
@ -233,61 +207,84 @@ extern const NSInteger MAT_GENDER_FEMALE;
|
|||
@param longitude user's longitude
|
||||
@param altitude user's altitude
|
||||
*/
|
||||
- (void)setLatitude:(double)latitude longitude:(double)longitude altitude:(double)altitude;
|
||||
+ (void)setLatitude:(double)latitude longitude:(double)longitude altitude:(double)altitude;
|
||||
|
||||
/*!
|
||||
Set app-level ad-tracking.
|
||||
YES/NO
|
||||
@param enable YES means opt-in, NO means opt-out.
|
||||
*/
|
||||
- (void)setAppAdTracking:(BOOL)enable;
|
||||
+ (void)setAppAdTracking:(BOOL)enable;
|
||||
|
||||
/*!
|
||||
Set the name of plugin used, if any. Not for general use.
|
||||
@param pluginName
|
||||
*/
|
||||
+ (void)setPluginName:(NSString *)pluginName;
|
||||
|
||||
|
||||
/*!
|
||||
Set the first attribute to be included in the next track call.
|
||||
@param value
|
||||
*/
|
||||
+ (void)setEventAttribute1:(NSString*)value;
|
||||
|
||||
/*!
|
||||
Set the second attribute to be included in the next track call.
|
||||
@param value
|
||||
*/
|
||||
+ (void)setEventAttribute2:(NSString*)value;
|
||||
|
||||
/*!
|
||||
Set the third attribute to be included in the next track call.
|
||||
@param value
|
||||
*/
|
||||
+ (void)setEventAttribute3:(NSString*)value;
|
||||
|
||||
/*!
|
||||
Set the fourth attribute to be included in the next track call.
|
||||
@param value
|
||||
*/
|
||||
+ (void)setEventAttribute4:(NSString*)value;
|
||||
|
||||
/*!
|
||||
Set the fifth attribute to be included in the next track call.
|
||||
@param value
|
||||
*/
|
||||
+ (void)setEventAttribute5:(NSString*)value;
|
||||
|
||||
|
||||
#pragma mark - Show iAd advertising
|
||||
|
||||
/** @name iAd advertising */
|
||||
|
||||
/*!
|
||||
Display an iAd banner in a parent view. The parent view will be faded in and out
|
||||
when an iAd is received or failed to display. The MobileAppTracker's delegate
|
||||
object will receive notifications when this happens.
|
||||
*/
|
||||
- (void) displayiAdInView:(UIView *)view;
|
||||
|
||||
/*!
|
||||
Removes the currently displayed iAd, if any.
|
||||
*/
|
||||
- (void) removeiAd;
|
||||
|
||||
|
||||
#pragma mark - Track Install/Update Methods
|
||||
|
||||
/** @name Track Installs and/or Updates */
|
||||
/** @name Track Installs */
|
||||
|
||||
/*!
|
||||
Record an Install or an Update by determining if a previous
|
||||
version of this app is already installed on the user's device.
|
||||
To be used if this is the first version of the app
|
||||
or the previous version also included MAT sdk.
|
||||
To be called when an app opens; typically in the didFinishLaunching event.
|
||||
Works only once per app version, does not have any effect if called again in the same app version.
|
||||
*/
|
||||
- (void)trackInstall;
|
||||
+ (MATActionResult)trackSession;
|
||||
|
||||
/*!
|
||||
Record an Install or an Update by determining if a previous
|
||||
version of this app is already installed on the user's device.
|
||||
To be used if this is the first version of the app
|
||||
or the previous version also included MAT sdk.
|
||||
To be called when an app opens; typically in the didFinishLaunching event.
|
||||
Works only once per app version, does not have any effect if called again in the same app version.
|
||||
@param refId A reference id used to track an install and/or update, corresponds to advertiser_ref_id on the website.
|
||||
*/
|
||||
- (void)trackInstallWithReferenceId:(NSString *)refId;
|
||||
|
||||
/*!
|
||||
Instead of an Install, force an Update to be recorded.
|
||||
To be used if MAT sdk was not integrated in the previous
|
||||
version of this app. Only use this method if your app can distinguish
|
||||
between an install and an update, else use trackInstall.
|
||||
To be called when an app opens; typically in the didFinishLaunching event.
|
||||
Works only once per app version, does not have any effect if called again in the same app version.
|
||||
*/
|
||||
- (void)trackUpdate;
|
||||
|
||||
/*!
|
||||
Instead of an Install, force an Update to be recorded.
|
||||
To be used if MAT sdk was not integrated in the previous
|
||||
version of this app. Only use this method if your app can distinguish
|
||||
between an install and an update, else use trackInstallWithReferenceId.
|
||||
To be called when an app opens; typically in the didFinishLaunching event.
|
||||
Works only once per app version, does not have any effect if called again in the same app version.
|
||||
@param refId A reference id used to track an update, corresponds to advertiser_ref_id on the website.
|
||||
*/
|
||||
- (void)trackUpdateWithReferenceId:(NSString *)refId;
|
||||
+ (MATActionResult)trackSessionWithReferenceId:(NSString *)refId;
|
||||
|
||||
|
||||
#pragma mark - Track Actions
|
||||
|
@ -297,44 +294,36 @@ extern const NSInteger MAT_GENDER_FEMALE;
|
|||
/*!
|
||||
Record a Track Action for an Event Id or Name.
|
||||
@param eventIdOrName The event name or event id.
|
||||
@param isId Yes if the event is an Id otherwise No if the event is a name only.
|
||||
*/
|
||||
- (void)trackActionForEventIdOrName:(NSString *)eventIdOrName
|
||||
eventIsId:(BOOL)isId;
|
||||
+ (void)trackActionForEventIdOrName:(NSString *)eventIdOrName;
|
||||
|
||||
/*!
|
||||
Record a Track Action for an Event Id or Name and reference id.
|
||||
@param eventIdOrName The event name or event id.
|
||||
@param isId Yes if the event is an Id otherwise No if the event is a name only.
|
||||
@param refId The referencId for an event, corresponds to advertiser_ref_id on the website.
|
||||
*/
|
||||
- (void)trackActionForEventIdOrName:(NSString *)eventIdOrName
|
||||
eventIsId:(BOOL)isId
|
||||
+ (void)trackActionForEventIdOrName:(NSString *)eventIdOrName
|
||||
referenceId:(NSString *)refId;
|
||||
|
||||
|
||||
/*!
|
||||
Record a Track Action for an Event Id or Name, revenue and currency.
|
||||
@param eventIdOrName The event name or event id.
|
||||
@param isId Yes if the event is an Id otherwise No if the event is a name only.
|
||||
@param revenueAmount The revenue amount for the event.
|
||||
@param currencyCode The currency code override for the event. Blank defaults to sdk setting.
|
||||
*/
|
||||
- (void)trackActionForEventIdOrName:(NSString *)eventIdOrName
|
||||
eventIsId:(BOOL)isId
|
||||
+ (void)trackActionForEventIdOrName:(NSString *)eventIdOrName
|
||||
revenueAmount:(float)revenueAmount
|
||||
currencyCode:(NSString *)currencyCode;
|
||||
|
||||
/*!
|
||||
Record a Track Action for an Event Id or Name and reference id, revenue and currency.
|
||||
@param eventIdOrName The event name or event id.
|
||||
@param isId Yes if eventIdOrName is the event id for a pre-defined event on the MAT website, NO otherwise
|
||||
@param refId The referencId for an event, corresponds to advertiser_ref_id on the website.
|
||||
@param revenueAmount The revenue amount for the event.
|
||||
@param currencyCode The currency code override for the event. Blank defaults to sdk setting.
|
||||
*/
|
||||
- (void)trackActionForEventIdOrName:(NSString *)eventIdOrName
|
||||
eventIsId:(BOOL)isId
|
||||
+ (void)trackActionForEventIdOrName:(NSString *)eventIdOrName
|
||||
referenceId:(NSString *)refId
|
||||
revenueAmount:(float)revenueAmount
|
||||
currencyCode:(NSString *)currencyCode;
|
||||
|
@ -347,35 +336,29 @@ extern const NSInteger MAT_GENDER_FEMALE;
|
|||
/*!
|
||||
Record a Track Action for an Event Id or Name and a list of event items.
|
||||
@param eventIdOrName The event name or event id.
|
||||
@param isId Yes if the event is an Id otherwise No if the event is a name only.
|
||||
@param eventItems An array of MATEventItem objects
|
||||
*/
|
||||
- (void)trackActionForEventIdOrName:(NSString *)eventIdOrName
|
||||
eventIsId:(BOOL)isId
|
||||
+ (void)trackActionForEventIdOrName:(NSString *)eventIdOrName
|
||||
eventItems:(NSArray *)eventItems;
|
||||
|
||||
/*!
|
||||
Record a Track Action for an Event Name or Id.
|
||||
@param eventIdOrName The event name or event id.
|
||||
@param isId Yes if the event is an Id otherwise No if the event is a name only.
|
||||
@param eventItems An array of MATEventItem objects
|
||||
@param refId The referencId for an event, corresponds to advertiser_ref_id on the website.
|
||||
*/
|
||||
- (void)trackActionForEventIdOrName:(NSString *)eventIdOrName
|
||||
eventIsId:(BOOL)isId
|
||||
+ (void)trackActionForEventIdOrName:(NSString *)eventIdOrName
|
||||
eventItems:(NSArray *)eventItems
|
||||
referenceId:(NSString *)refId;
|
||||
|
||||
/*!
|
||||
Record a Track Action for an Event Name or Id.
|
||||
@param eventIdOrName The event name or event id.
|
||||
@param isId Yes if the event is an Id otherwise No if the event is a name only.
|
||||
@param eventItems An array of MATEventItem objects
|
||||
@param revenueAmount The revenue amount for the event.
|
||||
@param currencyCode The currency code override for the event. Blank defaults to sdk setting.
|
||||
*/
|
||||
- (void)trackActionForEventIdOrName:(NSString *)eventIdOrName
|
||||
eventIsId:(BOOL)isId
|
||||
+ (void)trackActionForEventIdOrName:(NSString *)eventIdOrName
|
||||
eventItems:(NSArray *)eventItems
|
||||
revenueAmount:(float)revenueAmount
|
||||
currencyCode:(NSString *)currencyCode;
|
||||
|
@ -383,14 +366,12 @@ extern const NSInteger MAT_GENDER_FEMALE;
|
|||
/*!
|
||||
Record a Track Action for an Event Name or Id.
|
||||
@param eventIdOrName The event name or event id.
|
||||
@param isId Yes if the event is an Id otherwise No if the event is a name only.
|
||||
@param eventItems An array of MATEventItem objects
|
||||
@param refId The referencId for an event, corresponds to advertiser_ref_id on the website.
|
||||
@param revenueAmount The revenue amount for the event.
|
||||
@param currencyCode The currency code override for the event. Blank defaults to sdk setting.
|
||||
*/
|
||||
- (void)trackActionForEventIdOrName:(NSString *)eventIdOrName
|
||||
eventIsId:(BOOL)isId
|
||||
+ (void)trackActionForEventIdOrName:(NSString *)eventIdOrName
|
||||
eventItems:(NSArray *)eventItems
|
||||
referenceId:(NSString *)refId
|
||||
revenueAmount:(float)revenueAmount
|
||||
|
@ -399,15 +380,13 @@ extern const NSInteger MAT_GENDER_FEMALE;
|
|||
/*!
|
||||
Record a Track Action for an Event Name or Id.
|
||||
@param eventIdOrName The event name or event id.
|
||||
@param isId Yes if the event is an Id otherwise No if the event is a name only.
|
||||
@param eventItems An array of MATEventItem objects
|
||||
@param refId The referencId for an event, corresponds to advertiser_ref_id on the website.
|
||||
@param revenueAmount The revenue amount for the event.
|
||||
@param currencyCode The currency code override for the event. Blank defaults to sdk setting.
|
||||
@param transactionState The in-app purchase transaction SKPaymentTransactionState as received from the iTunes store.
|
||||
*/
|
||||
- (void)trackActionForEventIdOrName:(NSString *)eventIdOrName
|
||||
eventIsId:(BOOL)isId
|
||||
+ (void)trackActionForEventIdOrName:(NSString *)eventIdOrName
|
||||
eventItems:(NSArray *)eventItems
|
||||
referenceId:(NSString *)refId
|
||||
revenueAmount:(float)revenueAmount
|
||||
|
@ -417,7 +396,6 @@ extern const NSInteger MAT_GENDER_FEMALE;
|
|||
/*!
|
||||
Record a Track Action for an Event Name or Id.
|
||||
@param eventIdOrName The event name or event id.
|
||||
@param isId Yes if the event is an Id otherwise No if the event is a name only.
|
||||
@param eventItems An array of MATEventItem objects
|
||||
@param refId The referencId for an event, corresponds to advertiser_ref_id on the website.
|
||||
@param revenueAmount The revenue amount for the event.
|
||||
|
@ -425,8 +403,7 @@ extern const NSInteger MAT_GENDER_FEMALE;
|
|||
@param transactionState The in-app purchase transaction SKPaymentTransactionState as received from the iTunes store.
|
||||
@param receipt The in-app purchase transaction receipt as received from the iTunes store.
|
||||
*/
|
||||
- (void)trackActionForEventIdOrName:(NSString *)eventIdOrName
|
||||
eventIsId:(BOOL)isId
|
||||
+ (void)trackActionForEventIdOrName:(NSString *)eventIdOrName
|
||||
eventItems:(NSArray *)eventItems
|
||||
referenceId:(NSString *)refId
|
||||
revenueAmount:(float)revenueAmount
|
||||
|
@ -443,7 +420,7 @@ extern const NSInteger MAT_GENDER_FEMALE;
|
|||
Default: NO
|
||||
@param yesorno YES/NO for cookie based tracking.
|
||||
*/
|
||||
- (void)setUseCookieTracking:(BOOL)yesorno;
|
||||
+ (void)setUseCookieTracking:(BOOL)yesorno;
|
||||
|
||||
|
||||
#pragma mark - App-to-app Tracking
|
||||
|
@ -456,17 +433,18 @@ extern const NSInteger MAT_GENDER_FEMALE;
|
|||
used in conjunction with the setTracking:advertiserId:offerId:publisherId:redirect: method.
|
||||
@param redirect_url The string name for the url.
|
||||
*/
|
||||
- (void)setRedirectUrl:(NSString *)redirectURL;
|
||||
+ (void)setRedirectUrl:(NSString *)redirectURL;
|
||||
|
||||
/*!
|
||||
Start a Tracking Session on the MAT server.
|
||||
Start an app-to-app tracking session on the MAT server.
|
||||
@param targetAppPackageName The bundle identifier of the target app.
|
||||
@param targetAppAdvertiserId The MAT advertiser id of the target app.
|
||||
@param offerId The MAT offer id of the target app.
|
||||
@param publisherId The MAT publisher id of the target app.
|
||||
@param shouldRedirect Should redirect to the download url if the tracking session was successfully created. See setRedirectUrl:.
|
||||
@param shouldRedirect Should redirect to the download url if the tracking session was
|
||||
successfully created. See setRedirectUrl:.
|
||||
*/
|
||||
- (void)setTracking:(NSString *)targetAppPackageName
|
||||
+ (void)setTracking:(NSString *)targetAppPackageName
|
||||
advertiserId:(NSString *)targetAppAdvertiserId
|
||||
offerId:(NSString *)targetAdvertiserOfferId
|
||||
publisherId:(NSString *)targetAdvertiserPublisherId
|
||||
|
@ -485,7 +463,7 @@ extern const NSInteger MAT_GENDER_FEMALE;
|
|||
@param urlString the url string used to open your app.
|
||||
@param sourceApplication the source used to open your app. For example, mobile safari.
|
||||
*/
|
||||
- (void)applicationDidOpenURL:(NSString *)urlString sourceApplication:(NSString *)sourceApplication;
|
||||
+ (void)applicationDidOpenURL:(NSString *)urlString sourceApplication:(NSString *)sourceApplication;
|
||||
|
||||
@end
|
||||
|
||||
|
@ -506,117 +484,29 @@ extern const NSInteger MAT_GENDER_FEMALE;
|
|||
@param tracker The MobileAppTracker instance.
|
||||
@param data The success data returned by the MobileAppTracker.
|
||||
*/
|
||||
- (void)mobileAppTracker:(MobileAppTracker *)tracker didSucceedWithData:(NSData *)data;
|
||||
- (void)mobileAppTrackerDidSucceedWithData:(NSData *)data;
|
||||
|
||||
/*!
|
||||
Delegate method called when a track action fails.
|
||||
@param tracker The MobileAppTracker instance.
|
||||
@param error Error object returned by the MobileAppTracker.
|
||||
*/
|
||||
- (void)mobileAppTracker:(MobileAppTracker *)tracker didFailWithError:(NSError *)error;
|
||||
- (void)mobileAppTrackerDidFailWithError:(NSError *)error;
|
||||
|
||||
/*!
|
||||
Delegate method called when an iAd is displayed and its parent view is faded in.
|
||||
*/
|
||||
- (void)mobileAppTrackerDidDisplayiAd;
|
||||
|
||||
/*!
|
||||
Delegate method called when an iAd failed to display and its parent view is faded out.
|
||||
*/
|
||||
- (void)mobileAppTrackerDidRemoveiAd;
|
||||
|
||||
/*!
|
||||
Delegate method called to pass through an iAd display error.
|
||||
@param error Error object returned by the iAd framework.
|
||||
*/
|
||||
- (void)mobileAppTrackerFailedToReceiveiAdWithError:(NSError *)error;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
#pragma mark - MATEventItem
|
||||
|
||||
/*!
|
||||
MATEventItem represents event items for use with MAT events.
|
||||
*/
|
||||
@interface MATEventItem : NSObject
|
||||
|
||||
/** @name MATEventItem Properties */
|
||||
/*!
|
||||
name of the event item
|
||||
*/
|
||||
@property (nonatomic, copy) NSString *item;
|
||||
/*!
|
||||
unit price of the event item
|
||||
*/
|
||||
@property (nonatomic, assign) float unitPrice;
|
||||
/*!
|
||||
quantity of the event item
|
||||
*/
|
||||
@property (nonatomic, assign) int quantity;
|
||||
/*!
|
||||
revenue of the event item
|
||||
*/
|
||||
@property (nonatomic, assign) float revenue;
|
||||
|
||||
/*!
|
||||
an extra parameter that corresponds to attribute_sub1 property of the event item
|
||||
*/
|
||||
@property (nonatomic, copy) NSString *attribute1;
|
||||
/*!
|
||||
an extra parameter that corresponds to attribute_sub2 property of the event item
|
||||
*/
|
||||
@property (nonatomic, copy) NSString *attribute2;
|
||||
/*!
|
||||
an extra parameter that corresponds to attribute_sub3 property of the event item
|
||||
*/
|
||||
@property (nonatomic, copy) NSString *attribute3;
|
||||
/*!
|
||||
an extra parameter that corresponds to attribute_sub4 property of the event item
|
||||
*/
|
||||
@property (nonatomic, copy) NSString *attribute4;
|
||||
/*!
|
||||
an extra parameter that corresponds to attribute_sub5 property of the event item
|
||||
*/
|
||||
@property (nonatomic, copy) NSString *attribute5;
|
||||
|
||||
|
||||
/** @name Methods to create MATEventItem objects.*/
|
||||
|
||||
/*!
|
||||
Method to create an event item. Revenue will be calculated using (quantity * unitPrice).
|
||||
|
||||
@param name name of the event item
|
||||
@param unitPrice unit price of the event item
|
||||
@param quantity quantity of the event item
|
||||
*/
|
||||
+ (MATEventItem *)eventItemWithName:(NSString *)name unitPrice:(float)unitPrice quantity:(int)quantity;
|
||||
|
||||
/*!
|
||||
Method to create an event item.
|
||||
@param name name of the event item
|
||||
@param unitPrice unit price of the event item
|
||||
@param quantity quantity of the event item
|
||||
@param revenue revenue of the event item, to be used instead of (quantity * unitPrice)
|
||||
*/
|
||||
+ (MATEventItem *)eventItemWithName:(NSString *)name unitPrice:(float)unitPrice quantity:(int)quantity revenue:(float)revenue;
|
||||
|
||||
/*!
|
||||
Method to create an event item.
|
||||
@param name name of the event item
|
||||
@param attribute1 an extra parameter that corresponds to attribute_sub1 property of the event item
|
||||
@param attribute2 an extra parameter that corresponds to attribute_sub2 property of the event item
|
||||
@param attribute3 an extra parameter that corresponds to attribute_sub3 property of the event item
|
||||
@param attribute4 an extra parameter that corresponds to attribute_sub4 property of the event item
|
||||
@param attribute5 an extra parameter that corresponds to attribute_sub5 property of the event item
|
||||
*/
|
||||
+ (MATEventItem *)eventItemWithName:(NSString *)name
|
||||
attribute1:(NSString *)attribute1
|
||||
attribute2:(NSString *)attribute2
|
||||
attribute3:(NSString *)attribute3
|
||||
attribute4:(NSString *)attribute4
|
||||
attribute5:(NSString *)attribute5;
|
||||
|
||||
/*!
|
||||
Method to create an event item.
|
||||
@param name name of the event item
|
||||
@param unitPrice unit price of the event item
|
||||
@param quantity quantity of the event item
|
||||
@param revenue revenue of the event item, to be used instead of (quantity * unitPrice)
|
||||
@param attribute1 an extra parameter that corresponds to attribute_sub1 property of the event item
|
||||
@param attribute2 an extra parameter that corresponds to attribute_sub2 property of the event item
|
||||
@param attribute3 an extra parameter that corresponds to attribute_sub3 property of the event item
|
||||
@param attribute4 an extra parameter that corresponds to attribute_sub4 property of the event item
|
||||
@param attribute5 an extra parameter that corresponds to attribute_sub5 property of the event item
|
||||
*/
|
||||
+ (MATEventItem *)eventItemWithName:(NSString *)name unitPrice:(float)unitPrice quantity:(int)quantity revenue:(float)revenue
|
||||
attribute1:(NSString *)attribute1
|
||||
attribute2:(NSString *)attribute2
|
||||
attribute3:(NSString *)attribute3
|
||||
attribute4:(NSString *)attribute4
|
||||
attribute5:(NSString *)attribute5;
|
||||
@end
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Add table
Reference in a new issue