2017-04-05 20:56:22 +00:00
|
|
|
//==============================================================================
|
|
|
|
// This file is part of Master Password.
|
|
|
|
// Copyright (c) 2011-2017, Maarten Billemont.
|
2014-09-17 05:34:58 +00:00
|
|
|
//
|
2017-04-05 20:56:22 +00:00
|
|
|
// Master Password is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
2014-09-17 05:34:58 +00:00
|
|
|
//
|
2017-04-05 20:56:22 +00:00
|
|
|
// Master Password is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
2014-09-17 05:34:58 +00:00
|
|
|
//
|
2017-04-05 20:56:22 +00:00
|
|
|
// You can find a copy of the GNU General Public License in the
|
|
|
|
// LICENSE file. Alternatively, see <http://www.gnu.org/licenses/>.
|
|
|
|
//==============================================================================
|
2014-09-17 05:34:58 +00:00
|
|
|
|
|
|
|
#import "MPStoreViewController.h"
|
|
|
|
#import "MPiOSAppDelegate.h"
|
|
|
|
#import "UIColor+Expanded.h"
|
2014-09-21 14:29:18 +00:00
|
|
|
#import "MPAppDelegate_InApp.h"
|
2017-05-07 22:36:01 +00:00
|
|
|
#import "MPSitesViewController.h"
|
2014-09-17 05:34:58 +00:00
|
|
|
|
2014-09-26 04:32:07 +00:00
|
|
|
PearlEnum( MPDevelopmentFuelConsumption,
|
|
|
|
MPDevelopmentFuelConsumptionQuarterly, MPDevelopmentFuelConsumptionMonthly, MPDevelopmentFuelWeekly );
|
|
|
|
|
|
|
|
@interface MPStoreViewController()<MPInAppDelegate>
|
2014-09-17 05:34:58 +00:00
|
|
|
|
2017-04-30 03:03:50 +00:00
|
|
|
@property(nonatomic, strong) NSDictionary<NSString *, SKProduct *> *products;
|
2017-04-30 21:48:03 +00:00
|
|
|
@property(nonatomic, strong) NSDictionary<NSString *, SKPaymentTransaction *> *transactions;
|
|
|
|
@property(nonatomic, strong) NSMutableArray<NSArray *> *dataSource;
|
2014-09-17 05:34:58 +00:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation MPStoreViewController
|
|
|
|
|
2014-09-29 02:15:55 +00:00
|
|
|
+ (NSString *)latestStoreFeatures {
|
|
|
|
|
|
|
|
NSMutableString *features = [NSMutableString string];
|
|
|
|
NSArray *storeVersions = @[
|
2016-01-15 05:19:07 +00:00
|
|
|
@"Generated Usernames\nSecurity Question Answers",
|
|
|
|
@"TouchID Support"
|
2014-09-29 02:15:55 +00:00
|
|
|
];
|
|
|
|
NSInteger storeVersion = [[NSUserDefaults standardUserDefaults] integerForKey:@"storeVersion"];
|
|
|
|
for (; storeVersion < [storeVersions count]; ++storeVersion)
|
2017-04-30 03:03:50 +00:00
|
|
|
[features appendFormat:@"%@\n", storeVersions[(NSUInteger)storeVersion]];
|
2014-09-29 02:15:55 +00:00
|
|
|
if (![features length])
|
|
|
|
return nil;
|
|
|
|
|
|
|
|
[[NSUserDefaults standardUserDefaults] setInteger:storeVersion forKey:@"storeVersion"];
|
2014-10-24 04:35:05 +00:00
|
|
|
if (![[NSUserDefaults standardUserDefaults] synchronize])
|
|
|
|
wrn( @"Couldn't synchronize store version update." );
|
2014-09-29 02:15:55 +00:00
|
|
|
return features;
|
|
|
|
}
|
|
|
|
|
2014-09-17 05:34:58 +00:00
|
|
|
- (void)viewDidLoad {
|
|
|
|
|
|
|
|
[super viewDidLoad];
|
|
|
|
|
2014-09-24 05:07:02 +00:00
|
|
|
self.tableView.tableHeaderView = [UIView new];
|
|
|
|
self.tableView.tableFooterView = [UIView new];
|
2016-01-14 15:03:30 +00:00
|
|
|
self.tableView.rowHeight = UITableViewAutomaticDimension;
|
|
|
|
self.tableView.estimatedRowHeight = 400;
|
2014-09-17 05:34:58 +00:00
|
|
|
self.view.backgroundColor = [UIColor clearColor];
|
2017-04-30 21:48:03 +00:00
|
|
|
|
|
|
|
self.dataSource = [@[ @[], @[ @"MPStoreCellSpinner", @"MPStoreCellFooter" ] ] mutableCopy];
|
2014-09-17 05:34:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (void)viewWillAppear:(BOOL)animated {
|
|
|
|
|
|
|
|
[super viewWillAppear:animated];
|
|
|
|
|
|
|
|
self.tableView.contentInset = UIEdgeInsetsMake( 64, 0, 49, 0 );
|
|
|
|
|
2014-09-26 04:32:07 +00:00
|
|
|
[[MPiOSAppDelegate get] registerProductsObserver:self];
|
2014-09-17 05:34:58 +00:00
|
|
|
}
|
|
|
|
|
2014-09-27 05:27:05 +00:00
|
|
|
- (void)viewWillDisappear:(BOOL)animated {
|
|
|
|
|
|
|
|
[super viewWillDisappear:animated];
|
|
|
|
|
2017-04-30 21:48:03 +00:00
|
|
|
[[MPiOSAppDelegate get] removeProductsObserver:self];
|
2014-09-27 05:27:05 +00:00
|
|
|
}
|
|
|
|
|
2014-09-30 12:20:35 +00:00
|
|
|
#pragma mark - UITableViewDataSource
|
2014-09-17 05:34:58 +00:00
|
|
|
|
2017-04-30 21:48:03 +00:00
|
|
|
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
|
2014-09-17 05:34:58 +00:00
|
|
|
|
2017-04-30 21:48:03 +00:00
|
|
|
return [self.dataSource count];
|
|
|
|
}
|
2014-09-21 14:29:18 +00:00
|
|
|
|
2017-04-30 21:48:03 +00:00
|
|
|
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
|
2014-09-17 05:34:58 +00:00
|
|
|
|
2017-04-30 21:48:03 +00:00
|
|
|
return [self.dataSource[(NSUInteger)section] count];
|
2014-09-17 05:34:58 +00:00
|
|
|
}
|
|
|
|
|
2017-04-30 21:48:03 +00:00
|
|
|
- (MPStoreProductCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
|
|
|
|
|
|
|
|
id content = self.dataSource[(NSUInteger)indexPath.section][(NSUInteger)indexPath.row];
|
|
|
|
if ([content isKindOfClass:[SKProduct class]]) {
|
|
|
|
SKProduct *product = content;
|
|
|
|
MPStoreProductCell *cell;
|
|
|
|
if ([product.productIdentifier isEqualToString:MPProductFuel])
|
2018-10-15 22:09:46 +00:00
|
|
|
cell = [MPStoreFuelProductCell dequeueFromTableView:tableView indexPath:indexPath];
|
2017-04-30 21:48:03 +00:00
|
|
|
else
|
2018-10-15 22:09:46 +00:00
|
|
|
cell = [MPStoreProductCell dequeueFromTableView:tableView indexPath:indexPath];
|
2017-04-30 21:48:03 +00:00
|
|
|
[cell updateWithProduct:product transaction:self.transactions[product.productIdentifier]];
|
|
|
|
|
|
|
|
return cell;
|
|
|
|
}
|
2014-09-30 12:20:35 +00:00
|
|
|
|
2017-04-30 21:48:03 +00:00
|
|
|
return [tableView dequeueReusableCellWithIdentifier:content forIndexPath:indexPath];
|
2014-09-30 12:20:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#pragma mark - UITableViewDelegate
|
|
|
|
|
2014-09-24 05:07:02 +00:00
|
|
|
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
|
|
|
|
|
2016-01-14 15:03:30 +00:00
|
|
|
return UITableViewAutomaticDimension;
|
2014-09-24 05:07:02 +00:00
|
|
|
}
|
|
|
|
|
2014-09-17 05:34:58 +00:00
|
|
|
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
|
|
|
|
|
2017-04-30 21:48:03 +00:00
|
|
|
UITableViewCell *cell = [self tableView:tableView cellForRowAtIndexPath:indexPath];
|
|
|
|
if (cell.selectionStyle != UITableViewCellSelectionStyleNone && [cell isKindOfClass:[MPStoreProductCell class]]) {
|
|
|
|
MPStoreProductCell *productCell = (MPStoreProductCell *)cell;
|
2014-09-21 14:29:18 +00:00
|
|
|
|
2017-04-30 21:48:03 +00:00
|
|
|
if (productCell.product && ![[MPAppDelegate_Shared get] isFeatureUnlocked:productCell.product.productIdentifier])
|
|
|
|
[[MPAppDelegate_Shared get] purchaseProductWithIdentifier:productCell.product.productIdentifier quantity:productCell.quantity];
|
|
|
|
}
|
2014-09-17 05:34:58 +00:00
|
|
|
|
|
|
|
[tableView deselectRowAtIndexPath:indexPath animated:YES];
|
|
|
|
}
|
|
|
|
|
2014-09-18 00:50:27 +00:00
|
|
|
#pragma mark - Actions
|
|
|
|
|
2014-09-26 04:32:07 +00:00
|
|
|
- (IBAction)toggleFuelConsumption:(id)sender {
|
|
|
|
|
|
|
|
NSUInteger fuelConsumption = [[MPiOSConfig get].developmentFuelConsumption unsignedIntegerValue];
|
|
|
|
[MPiOSConfig get].developmentFuelConsumption = @((fuelConsumption + 1) % MPDevelopmentFuelConsumptionCount);
|
2017-04-30 21:48:03 +00:00
|
|
|
|
|
|
|
[self.tableView updateDataSource:self.dataSource toSections:nil reloadItems:@[ self.products[MPProductFuel] ]
|
|
|
|
withRowAnimation:UITableViewRowAnimationAutomatic];
|
2014-09-26 04:32:07 +00:00
|
|
|
}
|
|
|
|
|
2014-09-18 00:50:27 +00:00
|
|
|
- (IBAction)restorePurchases:(id)sender {
|
|
|
|
|
|
|
|
[PearlAlert showAlertWithTitle:@"Restore Previous Purchases" message:
|
|
|
|
@"This will check with Apple to find and activate any purchases you made from other devices."
|
|
|
|
viewStyle:UIAlertViewStyleDefault initAlert:nil
|
|
|
|
tappedButtonBlock:^(UIAlertView *alert, NSInteger buttonIndex) {
|
|
|
|
if (buttonIndex == [alert cancelButtonIndex])
|
|
|
|
return;
|
|
|
|
|
2014-09-24 05:07:02 +00:00
|
|
|
[[MPAppDelegate_Shared get] restoreCompletedTransactions];
|
2014-09-18 00:50:27 +00:00
|
|
|
} cancelTitle:@"Cancel" otherTitles:@"Find Purchases", nil];
|
|
|
|
}
|
|
|
|
|
2014-09-29 02:15:55 +00:00
|
|
|
- (IBAction)sendThanks:(id)sender {
|
|
|
|
|
|
|
|
[[self dismissPopup].navigationController performSegueWithIdentifier:@"web" sender:
|
2017-04-30 22:45:08 +00:00
|
|
|
[NSURL URLWithString:@"https://thanks.lhunath.com"]];
|
2014-09-29 02:15:55 +00:00
|
|
|
}
|
|
|
|
|
2014-09-26 04:32:07 +00:00
|
|
|
#pragma mark - MPInAppDelegate
|
|
|
|
|
2017-04-30 21:48:03 +00:00
|
|
|
- (void)updateWithProducts:(NSDictionary<NSString *, SKProduct *> *)products
|
|
|
|
transactions:(NSDictionary<NSString *, SKPaymentTransaction *> *)transactions {
|
2014-09-26 04:32:07 +00:00
|
|
|
|
|
|
|
self.products = products;
|
2017-04-30 21:48:03 +00:00
|
|
|
self.transactions = transactions;
|
|
|
|
NSMutableArray *newDataSource = [NSMutableArray arrayWithCapacity:2];
|
|
|
|
|
|
|
|
// Section 0: products
|
|
|
|
[newDataSource addObject:[[products allValues] sortedArrayUsingComparator:
|
|
|
|
^NSComparisonResult(SKProduct *p1, SKProduct *p2) {
|
|
|
|
return [p1.productIdentifier compare:p2.productIdentifier];
|
|
|
|
}]];
|
|
|
|
NSArray *reloadProducts = [newDataSource[0] filteredArrayUsingPredicate:[NSPredicate predicateWithBlock:
|
|
|
|
^BOOL(SKProduct *product, NSDictionary *bindings) {
|
|
|
|
return self.transactions[product.productIdentifier] != nil;
|
|
|
|
}]];
|
|
|
|
|
|
|
|
// Section 1: information cells
|
|
|
|
[newDataSource addObject:@[ @"MPStoreCellFooter" ]];
|
|
|
|
|
|
|
|
[self.tableView updateDataSource:self.dataSource toSections:newDataSource
|
|
|
|
reloadItems:reloadProducts withRowAnimation:UITableViewRowAnimationAutomatic];
|
2014-09-26 04:32:07 +00:00
|
|
|
}
|
|
|
|
|
2014-09-17 05:34:58 +00:00
|
|
|
#pragma mark - Private
|
|
|
|
|
2017-05-07 22:36:01 +00:00
|
|
|
- (MPSitesViewController *)dismissPopup {
|
2014-09-29 02:15:55 +00:00
|
|
|
|
|
|
|
for (UIViewController *vc = self; (vc = vc.parentViewController);)
|
2017-05-07 22:36:01 +00:00
|
|
|
if ([vc isKindOfClass:[MPSitesViewController class]]) {
|
|
|
|
MPSitesViewController *passwordsVC = (MPSitesViewController *)vc;
|
2014-09-29 02:15:55 +00:00
|
|
|
[passwordsVC dismissPopdown:self];
|
|
|
|
return passwordsVC;
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil;
|
|
|
|
}
|
|
|
|
|
2017-04-30 21:48:03 +00:00
|
|
|
@end
|
2014-09-17 05:34:58 +00:00
|
|
|
|
2017-04-30 21:48:03 +00:00
|
|
|
@implementation MPStoreProductCell
|
2014-09-17 05:34:58 +00:00
|
|
|
|
2017-04-30 21:48:03 +00:00
|
|
|
- (void)updateWithProduct:(SKProduct *)product transaction:(SKPaymentTransaction *)transaction {
|
2014-09-17 05:34:58 +00:00
|
|
|
|
2017-04-30 21:48:03 +00:00
|
|
|
_product = product;
|
2014-09-17 05:34:58 +00:00
|
|
|
|
2017-04-30 21:48:03 +00:00
|
|
|
BOOL purchased = [[MPiOSAppDelegate get] isFeatureUnlocked:self.product.productIdentifier];
|
|
|
|
self.selectionStyle = purchased? UITableViewCellSelectionStyleNone: UITableViewCellSelectionStyleDefault;
|
|
|
|
self.selectedBackgroundView = self.selectionStyle == UITableViewCellSelectionStyleNone? nil: [[UIView alloc] initWithFrame:self.bounds];
|
|
|
|
self.selectedBackgroundView.backgroundColor = [UIColor colorWithRGBAHex:0x78DDFB33];
|
2014-09-17 05:34:58 +00:00
|
|
|
|
2017-04-30 21:48:03 +00:00
|
|
|
self.purchasedIndicator.visible = purchased;
|
|
|
|
self.priceLabel.text = purchased? @"": [self price];
|
|
|
|
self.titleLabel.text = product.localizedTitle;
|
|
|
|
self.descriptionLabel.text = product.localizedDescription;
|
2017-04-30 22:45:08 +00:00
|
|
|
self.thumbnailView.image = [self productImage];
|
2017-04-30 21:48:03 +00:00
|
|
|
|
|
|
|
if (transaction && (transaction.transactionState == SKPaymentTransactionStateDeferred ||
|
|
|
|
transaction.transactionState == SKPaymentTransactionStatePurchasing))
|
|
|
|
[self.activityIndicator startAnimating];
|
|
|
|
else
|
|
|
|
[self.activityIndicator stopAnimating];
|
2014-09-17 05:34:58 +00:00
|
|
|
}
|
|
|
|
|
2017-04-30 22:45:08 +00:00
|
|
|
- (UIImage *)productImage {
|
|
|
|
|
|
|
|
if ([MPProductGenerateLogins isEqualToString:self.product.productIdentifier])
|
|
|
|
return [UIImage imageNamed:@"thumb_generated_login"];
|
|
|
|
if ([MPProductGenerateAnswers isEqualToString:self.product.productIdentifier])
|
|
|
|
return [UIImage imageNamed:@"thumb_generated_answers"];
|
|
|
|
if ([MPProductOSIntegration isEqualToString:self.product.productIdentifier])
|
|
|
|
return [UIImage imageNamed:@"thumb_ios_integration"];
|
|
|
|
if ([MPProductTouchID isEqualToString:self.product.productIdentifier])
|
|
|
|
return [UIImage imageNamed:@"thumb_touch_id"];
|
|
|
|
if ([MPProductFuel isEqualToString:self.product.productIdentifier])
|
|
|
|
return [UIImage imageNamed:@"thumb_fuel"];
|
|
|
|
|
|
|
|
return nil;
|
|
|
|
}
|
|
|
|
|
2017-04-30 21:48:03 +00:00
|
|
|
- (NSString *)price {
|
2014-09-17 05:34:58 +00:00
|
|
|
|
2017-04-30 21:48:03 +00:00
|
|
|
NSNumberFormatter *currencyFormatter = [NSNumberFormatter new];
|
|
|
|
currencyFormatter.numberStyle = NSNumberFormatterCurrencyStyle;
|
|
|
|
currencyFormatter.locale = self.product.priceLocale;
|
2014-09-17 05:34:58 +00:00
|
|
|
|
2017-04-30 21:48:03 +00:00
|
|
|
return [currencyFormatter stringFromNumber:@([self.product.price floatValue] * self.quantity)];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSInteger)quantity {
|
2014-09-17 05:34:58 +00:00
|
|
|
|
2017-04-30 21:48:03 +00:00
|
|
|
return 1;
|
2014-09-17 05:34:58 +00:00
|
|
|
}
|
|
|
|
|
2017-04-30 21:48:03 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation MPStoreFuelProductCell
|
|
|
|
|
|
|
|
- (void)updateWithProduct:(SKProduct *)product transaction:(SKPaymentTransaction *)transaction {
|
|
|
|
|
|
|
|
[super updateWithProduct:product transaction:transaction];
|
2014-09-26 04:32:07 +00:00
|
|
|
|
|
|
|
CGFloat weeklyFuelConsumption = [self weeklyFuelConsumption]; /* consume x fuel / week */
|
2017-04-30 21:48:03 +00:00
|
|
|
[self.fuelSpeedButton setTitle:[self weeklyFuelConsumptionTitle] forState:UIControlStateNormal];
|
|
|
|
|
|
|
|
NSTimeInterval fuelSecondsElapsed = 0;
|
2014-09-30 04:01:33 +00:00
|
|
|
CGFloat fuelRemaining = [[MPiOSConfig get].developmentFuelRemaining floatValue]; /* x fuel left */
|
|
|
|
CGFloat fuelInvested = [[MPiOSConfig get].developmentFuelInvested floatValue]; /* x fuel left */
|
2017-04-30 21:48:03 +00:00
|
|
|
NSDate *now = [NSDate date], *checked = [MPiOSConfig get].developmentFuelChecked;
|
|
|
|
if (!checked || 3600 < (fuelSecondsElapsed = [now timeIntervalSinceDate:checked])) {
|
2014-09-26 04:32:07 +00:00
|
|
|
NSTimeInterval weeksElapsed = fuelSecondsElapsed / (3600 * 24 * 7 /* 1 week */); /* x weeks elapsed */
|
2017-04-30 21:48:03 +00:00
|
|
|
NSTimeInterval fuelConsumed = MIN( fuelRemaining, weeklyFuelConsumption * weeksElapsed );
|
2014-09-30 04:01:33 +00:00
|
|
|
fuelRemaining -= fuelConsumed;
|
|
|
|
fuelInvested += fuelConsumed;
|
2014-09-28 14:05:36 +00:00
|
|
|
[MPiOSConfig get].developmentFuelChecked = now;
|
2014-09-30 04:01:33 +00:00
|
|
|
[MPiOSConfig get].developmentFuelRemaining = @(fuelRemaining);
|
|
|
|
[MPiOSConfig get].developmentFuelInvested = @(fuelInvested);
|
2014-09-26 04:32:07 +00:00
|
|
|
}
|
|
|
|
|
2017-04-30 21:48:03 +00:00
|
|
|
CGFloat fuelRatio = weeklyFuelConsumption? fuelRemaining / weeklyFuelConsumption: 0; /* x weeks worth of fuel left */
|
|
|
|
[self.fuelMeterConstraint updateConstant:MIN( 0.5f, fuelRatio - 0.5f ) * 160]; /* -80pt = 0 weeks left, +80pt = >=1 week left */
|
|
|
|
self.fuelStatusLabel.text = strf( @"Fuel left: %0.1f work hours\nFunded: %0.1f work hours", fuelRemaining, fuelInvested );
|
2014-09-30 04:01:33 +00:00
|
|
|
self.fuelStatusLabel.hidden = (fuelRemaining + fuelInvested) == 0;
|
2014-09-26 04:32:07 +00:00
|
|
|
}
|
|
|
|
|
2017-04-30 21:48:03 +00:00
|
|
|
- (NSInteger)quantity {
|
|
|
|
|
|
|
|
return MAX( 1, (NSInteger)ceil( MP_FUEL_HOURLY_RATE * [self weeklyFuelConsumption] ) );
|
|
|
|
}
|
|
|
|
|
2014-09-26 04:32:07 +00:00
|
|
|
- (CGFloat)weeklyFuelConsumption {
|
|
|
|
|
|
|
|
switch ((MPDevelopmentFuelConsumption)[[MPiOSConfig get].developmentFuelConsumption unsignedIntegerValue]) {
|
|
|
|
case MPDevelopmentFuelConsumptionQuarterly:
|
|
|
|
return 1.f / 12 /* 12 weeks */;
|
|
|
|
case MPDevelopmentFuelConsumptionMonthly:
|
|
|
|
return 1.f / 4 /* 4 weeks */;
|
|
|
|
case MPDevelopmentFuelWeekly:
|
2017-04-30 21:48:03 +00:00
|
|
|
return 1.f /* 1 week */;
|
2014-09-26 04:32:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2017-04-30 21:48:03 +00:00
|
|
|
- (NSString *)weeklyFuelConsumptionTitle {
|
2014-09-26 04:32:07 +00:00
|
|
|
|
2017-04-30 21:48:03 +00:00
|
|
|
switch ((MPDevelopmentFuelConsumption)[[MPiOSConfig get].developmentFuelConsumption unsignedIntegerValue]) {
|
|
|
|
case MPDevelopmentFuelConsumptionQuarterly:
|
|
|
|
return @"1h / quarter";
|
|
|
|
case MPDevelopmentFuelConsumptionMonthly:
|
|
|
|
return @"1h / month";
|
|
|
|
case MPDevelopmentFuelWeekly:
|
|
|
|
return @"1h / week";
|
|
|
|
}
|
2014-09-26 04:32:07 +00:00
|
|
|
|
2017-04-30 21:48:03 +00:00
|
|
|
return nil;
|
2014-09-17 05:34:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@end
|