mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.0 KiB
Objective-C
33 lines
1.0 KiB
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.h"
|
|
|
|
@implementation AppStoreRating
|
|
|
|
+ (void)setupRatingLibrary {
|
|
iRate *rate = [iRate sharedInstance];
|
|
rate.appStoreID = 874139669;
|
|
rate.appStoreGenreID = 6005;
|
|
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);
|
|
}
|
|
|
|
+ (void)preventPromptAtNextTest {
|
|
iRate *rate = [iRate sharedInstance];
|
|
[rate preventPromptAtNextTest];
|
|
}
|
|
@end
|