Manos Chorianopoulos

add applicationData trackers

......@@ -1053,6 +1053,34 @@ static const char* jailbreak_apps[] =
}
///////////////////////////////////////////////////////////////////////////////
// - (NSDictionary *)applicationData
// {
// //Application Data Hack
// NSBundle *mainBundle = [NSBundle mainBundle];
// NSMutableDictionary *applicationData = [NSMutableDictionary dictionaryWithCapacity:3];
// if ([Warply get].length != 0) {
// [applicationData setValue:[Warply get] forKey:@"sdk_version"];
// }
// NSString *CFBundleIdentifier = [mainBundle objectForInfoDictionaryKey:@"CFBundleIdentifier"];
// if (CFBundleIdentifier.length != 0) {
// [applicationData setValue:CFBundleIdentifier forKey:@"bundle_identifier"];
// }
// NSString *CFBundleShortVersionString = [mainBundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"];
// if (CFBundleShortVersionString.length != 0) {
// [applicationData setValue:CFBundleShortVersionString forKey:@"app_version"];
// }
// NSString *CFBundleVersion = [mainBundle objectForInfoDictionaryKey:@"CFBundleVersion"];
// if (CFBundleVersion.length != 0) {
// [applicationData setValue:CFBundleVersion forKey:@"app_build"];
// }
// return applicationData;
// }
///////////////////////////////////////////////////////////////////////////////
- (NSDictionary *)applicationData
{
//Application Data Hack
......@@ -1063,11 +1091,6 @@ static const char* jailbreak_apps[] =
[applicationData setValue:[Warply get] forKey:@"sdk_version"];
}
NSString *CFBundleIdentifier = [mainBundle objectForInfoDictionaryKey:@"CFBundleIdentifier"];
if (CFBundleIdentifier.length != 0) {
[applicationData setValue:CFBundleIdentifier forKey:@"bundle_identifier"];
}
NSString *CFBundleShortVersionString = [mainBundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"];
if (CFBundleShortVersionString.length != 0) {
[applicationData setValue:CFBundleShortVersionString forKey:@"app_version"];
......