2015-08-24 00:28:50 +02:00
|
|
|
//
|
|
|
|
// AppStoreRating.m
|
|
|
|
// Signal
|
|
|
|
//
|
|
|
|
// Created by Frederic Jacobs on 23/08/15.
|
|
|
|
// Copyright (c) 2015 Open Whisper Systems. All rights reserved.
|
|
|
|
//
|
|
|
|
|
2015-12-22 12:45:09 +01:00
|
|
|
#import "AppStoreRating.h"
|
2015-12-24 13:07:50 +01:00
|
|
|
#import "iRate.h"
|
2015-08-24 00:28:50 +02:00
|
|
|
|
|
|
|
@implementation AppStoreRating
|
|
|
|
|
2015-12-22 12:45:09 +01:00
|
|
|
+ (void)setupRatingLibrary {
|
2015-08-24 00:28:50 +02:00
|
|
|
iRate *rate = [iRate sharedInstance];
|
|
|
|
rate.appStoreID = 874139669;
|
2015-12-24 13:07:50 +01:00
|
|
|
rate.appStoreGenreID = 6005;
|
2015-08-24 00:28:50 +02:00
|
|
|
rate.daysUntilPrompt = 15;
|
|
|
|
rate.usesUntilPrompt = 10;
|
|
|
|
rate.remindPeriod = 20;
|
|
|
|
rate.onlyPromptIfLatestVersion = YES;
|
|
|
|
rate.promptForNewVersionIfUserRated = NO;
|
|
|
|
rate.messageTitle = NSLocalizedString(@"RATING_TITLE", nil);
|
|
|
|
rate.message = NSLocalizedString(@"RATING_MSG", nil);
|
|
|
|
rate.rateButtonLabel = NSLocalizedString(@"RATING_RATE", nil);
|
|
|
|
}
|
|
|
|
|
2016-12-08 10:47:10 +01:00
|
|
|
+ (void)preventPromptAtNextTest {
|
|
|
|
iRate *rate = [iRate sharedInstance];
|
|
|
|
[rate preventPromptAtNextTest];
|
|
|
|
}
|
2015-08-24 00:28:50 +02:00
|
|
|
@end
|