Skip to content

Commit

Permalink
Updated to version 1.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklockwood committed Feb 16, 2013
1 parent 803c31c commit d9d78be
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 15 deletions.
6 changes: 6 additions & 0 deletions Examples/Mac Demo/iRateMac.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand All @@ -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;
};
Expand Down
2 changes: 2 additions & 0 deletions Examples/iPhone Demo/iRate.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
RUN_CLANG_STATIC_ANALYZER = YES;
SDKROOT = iphoneos;
WARNING_CFLAGS = "-Wall";
};
name = Debug;
};
Expand All @@ -282,6 +283,7 @@
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
RUN_CLANG_STATIC_ANALYZER = YES;
SDKROOT = iphoneos;
WARNING_CFLAGS = "-Wall";
};
name = Release;
};
Expand Down
2 changes: 1 addition & 1 deletion LICENCE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
iRate

Version 1.7.2, January 14th, 2013
Version 1.7.3, February 16th, 2013

Copyright (C) 2011 Charcoal Design

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down
5 changes: 5 additions & 0 deletions RELEASE NOTES.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 6 additions & 0 deletions iRate/iRate.bundle/at.lproj/Localizable.strings
Original file line number Diff line number Diff line change
@@ -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";
6 changes: 6 additions & 0 deletions iRate/iRate.bundle/cz.lproj/Localizable.strings
Original file line number Diff line number Diff line change
@@ -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";
6 changes: 6 additions & 0 deletions iRate/iRate.bundle/sk.lproj/Localizable.strings
Original file line number Diff line number Diff line change
@@ -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";
5 changes: 1 addition & 4 deletions iRate/iRate.h
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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


Expand Down
13 changes: 5 additions & 8 deletions iRate/iRate.m
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -260,6 +260,7 @@ - (NSURL *)ratingsURL
return [NSURL URLWithString:[NSString stringWithFormat:iRateMacAppStoreURLFormat, (unsigned int)self.appStoreID]];

#endif

}

- (NSDate *)firstUsed
Expand Down Expand Up @@ -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])
{
Expand Down Expand Up @@ -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
Expand All @@ -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];
Expand Down

0 comments on commit d9d78be

Please sign in to comment.