Showing
1 changed file
with
28 additions
and
5 deletions
... | @@ -1053,6 +1053,34 @@ static const char* jailbreak_apps[] = | ... | @@ -1053,6 +1053,34 @@ static const char* jailbreak_apps[] = |
1053 | } | 1053 | } |
1054 | 1054 | ||
1055 | /////////////////////////////////////////////////////////////////////////////// | 1055 | /////////////////////////////////////////////////////////////////////////////// |
1056 | +// - (NSDictionary *)applicationData | ||
1057 | +// { | ||
1058 | +// //Application Data Hack | ||
1059 | +// NSBundle *mainBundle = [NSBundle mainBundle]; | ||
1060 | +// NSMutableDictionary *applicationData = [NSMutableDictionary dictionaryWithCapacity:3]; | ||
1061 | + | ||
1062 | +// if ([Warply get].length != 0) { | ||
1063 | +// [applicationData setValue:[Warply get] forKey:@"sdk_version"]; | ||
1064 | +// } | ||
1065 | + | ||
1066 | +// NSString *CFBundleIdentifier = [mainBundle objectForInfoDictionaryKey:@"CFBundleIdentifier"]; | ||
1067 | +// if (CFBundleIdentifier.length != 0) { | ||
1068 | +// [applicationData setValue:CFBundleIdentifier forKey:@"bundle_identifier"]; | ||
1069 | +// } | ||
1070 | + | ||
1071 | +// NSString *CFBundleShortVersionString = [mainBundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"]; | ||
1072 | +// if (CFBundleShortVersionString.length != 0) { | ||
1073 | +// [applicationData setValue:CFBundleShortVersionString forKey:@"app_version"]; | ||
1074 | +// } | ||
1075 | + | ||
1076 | +// NSString *CFBundleVersion = [mainBundle objectForInfoDictionaryKey:@"CFBundleVersion"]; | ||
1077 | +// if (CFBundleVersion.length != 0) { | ||
1078 | +// [applicationData setValue:CFBundleVersion forKey:@"app_build"]; | ||
1079 | +// } | ||
1080 | +// return applicationData; | ||
1081 | +// } | ||
1082 | + | ||
1083 | +/////////////////////////////////////////////////////////////////////////////// | ||
1056 | - (NSDictionary *)applicationData | 1084 | - (NSDictionary *)applicationData |
1057 | { | 1085 | { |
1058 | //Application Data Hack | 1086 | //Application Data Hack |
... | @@ -1063,11 +1091,6 @@ static const char* jailbreak_apps[] = | ... | @@ -1063,11 +1091,6 @@ static const char* jailbreak_apps[] = |
1063 | [applicationData setValue:[Warply get] forKey:@"sdk_version"]; | 1091 | [applicationData setValue:[Warply get] forKey:@"sdk_version"]; |
1064 | } | 1092 | } |
1065 | 1093 | ||
1066 | - NSString *CFBundleIdentifier = [mainBundle objectForInfoDictionaryKey:@"CFBundleIdentifier"]; | ||
1067 | - if (CFBundleIdentifier.length != 0) { | ||
1068 | - [applicationData setValue:CFBundleIdentifier forKey:@"bundle_identifier"]; | ||
1069 | - } | ||
1070 | - | ||
1071 | NSString *CFBundleShortVersionString = [mainBundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"]; | 1094 | NSString *CFBundleShortVersionString = [mainBundle objectForInfoDictionaryKey:@"CFBundleShortVersionString"]; |
1072 | if (CFBundleShortVersionString.length != 0) { | 1095 | if (CFBundleShortVersionString.length != 0) { |
1073 | [applicationData setValue:CFBundleShortVersionString forKey:@"app_version"]; | 1096 | [applicationData setValue:CFBundleShortVersionString forKey:@"app_version"]; | ... | ... |
-
Please register or login to post a comment