Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed logging

  • Loading branch information...
commit db33d40ec18e0d45b2b0634e57ee605fd62c6adc 1 parent acfaf71
@sarsonj authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 Appirater.m
View
4 Appirater.m
@@ -464,7 +464,6 @@ + (UIViewController *) topMostViewController: (UIViewController *) controller {
}
+ (void)rateApp {
-
NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
[userDefaults setBool:YES forKey:kAppiraterRatedCurrentVersion];
[userDefaults synchronize];
@@ -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
}
Please sign in to comment.
Something went wrong with that request. Please try again.