session-ios/Signal/src/util/AppStoreRating.m

29 lines
869 B
Objective-C

//
// AppStoreRating.m
// Signal
//
// Created by Frederic Jacobs on 23/08/15.
// Copyright (c) 2015 Open Whisper Systems. All rights reserved.
//
#import "AppStoreRating.h"
#import <iRate/iRate.h>
@implementation AppStoreRating
+ (void)setupRatingLibrary
{
iRate *rate = [iRate sharedInstance];
rate.appStoreID = 874139669;
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);
}
@end