Permalink
Browse files

Updated to version 1.7.3

  • Loading branch information...
1 parent 803c31c commit d9d78beee8c142e477868bbc6b8b62032f2064e1 @nicklockwood committed Feb 16, 2013
@@ -261,11 +261,14 @@
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_TREAT_WARNINGS_AS_ERRORS = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.6;
ONLY_ACTIVE_ARCH = YES;
+ RUN_CLANG_STATIC_ANALYZER = YES;
SDKROOT = macosx;
+ WARNING_CFLAGS = "-Wall";
};
name = Debug;
};
@@ -274,10 +277,13 @@
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_TREAT_WARNINGS_AS_ERRORS = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.6;
+ RUN_CLANG_STATIC_ANALYZER = YES;
SDKROOT = macosx;
+ WARNING_CFLAGS = "-Wall";
};
name = Release;
};
@@ -266,6 +266,7 @@
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
RUN_CLANG_STATIC_ANALYZER = YES;
SDKROOT = iphoneos;
+ WARNING_CFLAGS = "-Wall";
};
name = Debug;
};
@@ -282,6 +283,7 @@
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
RUN_CLANG_STATIC_ANALYZER = YES;
SDKROOT = iphoneos;
+ WARNING_CFLAGS = "-Wall";
};
name = Release;
};
View
@@ -1,6 +1,6 @@
iRate
-Version 1.7.2, January 14th, 2013
+Version 1.7.3, February 16th, 2013
Copyright (C) 2011 Charcoal Design
View
@@ -166,7 +166,7 @@ The first date on which the user launched the current version of the app. This i
@property (nonatomic, strong) NSDate *lastReminded;
-The date on which the user last requested to be reminded of an update.
+The date on which the user last requested to be reminded to rate the app later.
@property (nonatomic, assign) NSUInteger usesCount;
@@ -242,7 +242,7 @@ This method is called if iRate detects that the application has been updated sin
- (BOOL)iRateShouldShouldPromptForRating;
-This method is called immediately before the rating prompt is displayed to the user. You can use this method to block the standard prompt alert and display the rating prompt in a different way, or bypass it altogether.
+This method is called immediately before the rating prompt is displayed to the user. You can use this method to implement custom prompt logic. You can also use this method to block the standard prompt alert and display the rating prompt in a different way, or bypass it altogether.
- (void)iRateUserDidAttemptToRateApp;
View
@@ -1,3 +1,8 @@
+Version 1.7.3
+
+- Added Slovak, Czech and Austrian translations
+- Fixed some bugs in Cancel/Remind button disabling logic
+
Version 1.7.2
- Added dutch translation
@@ -0,0 +1,6 @@
+"iRateMessageTitle" = "Bewerte %@";
+"iRateAppMessage" = "Wenn dir %@ gefällt, würdest Du es bitte bewerten? Dies wird nicht länger als eine Minute dauern.\nDanke für die Unterstützung!";
+"iRateGameMessage" = "Wenn dir %@ gefällt, würdest Du es bitte bewerten? Dies wird nicht länger als eine Minute dauern. Danke für die Unterstützung!";
+"iRateCancelButton" = "Nein, danke";
+"iRateRateButton" = "Jetzt bewerten";
+"iRateRemindButton" = "Später erinnern";
@@ -0,0 +1,6 @@
+"iRateMessageTitle" = "Ohodnotiť %@";
+"iRateAppMessage" = "Pokud se vám líbí %@, našli byste si chvilku na ohodnocení aplikace? Nebude to trvat víc než minutu.\nDěkujeme za vaši podporu!";
+"iRateGameMessage" = "Pokud se vám hra %@ líbí, našli byste si chvilku na ohodnocení aplikace? Nebude to trvat víc než minutu. Děkujeme za vaši podporu!";
+"iRateCancelButton" = "Nie, Ďakujem";
+"iRateRateButton" = "Ohodnotit nyní";
+"iRateRemindButton" = "Připomenout později";
@@ -0,0 +1,6 @@
+"iRateMessageTitle" = "Ohodnotiť %@";
+"iRateAppMessage" = "Ak sa vám páči %@, našli by ste si chvíľku na ohodnotenie aplikácie? Nebude to trvať viac ako minútu.\nĎakujeme za vašu podporu!";
+"iRateGameMessage" = "Ak sa vám hra %@ páči, našli by ste si chvíľku na ohodnotenie aplikácie? Nebude to trvať viac ako minútu. Ďakujeme za vašu podporu!";
+"iRateCancelButton" = "Nie, Ďakujem";
+"iRateRateButton" = "Ohodnotiť teraz";
+"iRateRemindButton" = "Pripomenúť neskôr";
View
@@ -1,7 +1,7 @@
//
// iRate.h
//
-// Version 1.7.2
+// Version 1.7.3
//
// Created by Nick Lockwood on 26/01/2011.
// Copyright 2011 Charcoal Design
@@ -33,15 +33,12 @@
#import <Availability.h>
#undef weak_delegate
-#undef __weak_delegate
#if __has_feature(objc_arc_weak) && \
(!(defined __MAC_OS_X_VERSION_MIN_REQUIRED) || \
__MAC_OS_X_VERSION_MIN_REQUIRED >= __MAC_10_8)
#define weak_delegate weak
-#define __weak_delegate __weak
#else
#define weak_delegate unsafe_unretained
-#define __weak_delegate __unsafe_unretained
#endif
View
@@ -1,7 +1,7 @@
//
// iRate.m
//
-// Version 1.7.2
+// Version 1.7.3
//
// Created by Nick Lockwood on 26/01/2011.
// Copyright 2011 Charcoal Design
@@ -260,6 +260,7 @@ - (NSURL *)ratingsURL
return [NSURL URLWithString:[NSString stringWithFormat:iRateMacAppStoreURLFormat, (unsigned int)self.appStoreID]];
#endif
+
}
- (NSDate *)firstUsed
@@ -706,7 +707,7 @@ - (void)promptForRating
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:self.messageTitle
message:self.message
delegate:(id <UIAlertViewDelegate>)self
- cancelButtonTitle:self.cancelButtonLabel
+ cancelButtonTitle:[self.cancelButtonLabel length] ? self.cancelButtonLabel: nil
otherButtonTitles:self.rateButtonLabel, nil];
if ([self.remindButtonLabel length])
{
@@ -969,11 +970,6 @@ - (void)willPresentAlertView:(UIAlertView *)alertView
- (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex
{
- //consider cancel button presence
- if (alertView.cancelButtonIndex == -1) {
- ++buttonIndex;
- }
-
if (buttonIndex == alertView.cancelButtonIndex)
{
//ignore this version
@@ -985,7 +981,8 @@ - (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)
[self.delegate iRateUserDidDeclineToRateApp];
}
}
- else if (buttonIndex == 2)
+ else if (([self.cancelButtonLabel length] && buttonIndex == 2) ||
+ ([self.cancelButtonLabel length] == 0 && buttonIndex == 1))
{
//remind later
self.lastReminded = [NSDate date];

0 comments on commit d9d78be

Please sign in to comment.