mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
33 lines
1 KiB
Objective-C
33 lines
1 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
|