Skip to content

Commit

Permalink
Removed logging
Browse files Browse the repository at this point in the history
  • Loading branch information
sarsonj committed Sep 26, 2013
1 parent acfaf71 commit db33d40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Appirater.m
Expand Up @@ -464,7 +464,6 @@ + (UIViewController *) topMostViewController: (UIViewController *) controller {
}

+ (void)rateApp {

NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
[userDefaults setBool:YES forKey:kAppiraterRatedCurrentVersion];
[userDefaults synchronize];
Expand Down Expand Up @@ -496,12 +495,13 @@ + (void)rateApp {
#else
NSString *reviewURL = [templateReviewURL stringByReplacingOccurrencesOfString:@"APP_ID" withString:[NSString stringWithFormat:@"%@", _appId]];



// iOS 7 needs a different templateReviewURL @see https://github.com/arashpayan/appirater/issues/131
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0 && [[NSUserDefaults standardUserDefaults] boolForKey:@"iosSpecialRateUrl"]) {
reviewURL = [templateReviewURLiOS7 stringByReplacingOccurrencesOfString:@"APP_ID" withString:[NSString stringWithFormat:@"%@", _appId]];
reviewURL = [reviewURL stringByReplacingOccurrencesOfString:@"LANGUAGE" withString:[NSString stringWithFormat:@"%@", [[NSLocale preferredLanguages] objectAtIndex:0]]];
}

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:reviewURL]];
#endif
}
Expand Down

0 comments on commit db33d40

Please sign in to comment.