This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/WordPress/Classes/ViewRelated/Post/AbstractPostListViewController.swift b/WordPress/Classes/ViewRelated/Post/AbstractPostListViewController.swift | |
index 49d4673..9dc5ec7 100644 | |
--- a/WordPress/Classes/ViewRelated/Post/AbstractPostListViewController.swift | |
+++ b/WordPress/Classes/ViewRelated/Post/AbstractPostListViewController.swift | |
@@ -162,10 +162,6 @@ class AbstractPostListViewController : UIViewController, WPContentSyncHelperDele | |
override func viewWillDisappear(animated: Bool) { | |
super.viewWillDisappear(animated) | |
- if searchController.active { | |
- searchController.active = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/WordPress/Classes/Services/Store.swift b/WordPress/Classes/Services/Store.swift | |
index daa668b..e8112f6 100644 | |
--- a/WordPress/Classes/Services/Store.swift | |
+++ b/WordPress/Classes/Services/Store.swift | |
@@ -30,6 +30,10 @@ struct StoreKitCoordinator { | |
typealias PendingPayment = (planID: PlanID, productID: String, siteID: Int) | |
+enum StoreCoordinatorError: ErrorType { | |
+ case PaymentAlreadyInProgress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/WordPress/Classes/Services/PlanService.swift b/WordPress/Classes/Services/PlanService.swift | |
index 7b7d31c..0ee6982 100644 | |
--- a/WordPress/Classes/Services/PlanService.swift | |
+++ b/WordPress/Classes/Services/PlanService.swift | |
@@ -1,12 +1,18 @@ | |
import Foundation | |
+typealias PlanFeatures = [PlanID: [PlanFeature]] | |
+ | |
struct PlanService { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/WordPress/Classes/Models/Plan.swift b/WordPress/Classes/Models/Plan.swift | |
index 5a4826d..ba8053c 100644 | |
--- a/WordPress/Classes/Models/Plan.swift | |
+++ b/WordPress/Classes/Models/Plan.swift | |
@@ -14,6 +14,16 @@ struct Plan { | |
let fullTitle: String | |
let description: String | |
let productIdentifier: String? | |
+ var featureGroups = [PlanFeatureGroup]() | |
+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ReceiptParser | |
attr_reader :counts, :prices | |
def initialize(currency_symbol) | |
if (currency_symbol == "") then currency_symbol = "£" end | |
@currency_symbol = currency_symbol | |
@all_items = [] | |
@counts = { :ios_apps => 0, :iaps => 0 } | |
@prices = { :ios_apps => 0, :iaps => 0 } | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// BeerTests.m | |
// Beer | |
// | |
// Created by Marin Usalj on 5/16/13. | |
// Copyright 2013 @mneorr | mneorr.com. All rights reserved. | |
// | |
#import "Kiwi.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation ADNClient | |
+ (id)sharedClient | |
{ | |
static dispatch_once_t pred = 0; | |
__strong static id _sharedObject = nil; | |
dispatch_once(&pred, ^{ | |
_sharedObject = [[self alloc] init]; | |
}); | |
return _sharedObject; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<project> | |
<app title="Flixel Test" file="Flixel Test" main="Main" version="0.0.1" company="Zaphod" /> | |
<window width="1024" height="768" fps="30" orientation="portrait" resizable="true" if="target_flash" /> | |
<window width="0" height="0" fps="30" orientation="landscape" fullscreen="true" unless="target_flash" /> | |
<set name="BUILD_DIR" value="Export" /> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--# Counter | |
CTYPE_WHITE = 0 | |
CTYPE_BLACK = 1 | |
CTYPE_PLACEWHITE = 2 | |
CTYPE_PLACEBLACK = 3 | |
Counter = class() | |
function Counter:init(x, y, t) | |
self.pos = vec2(x,y) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--# Main | |
-- based on untextured raycaster example: http://lodev.org/cgtutor/raycasting.html | |
MAPWIDTH = 24 | |
MAPHEIGHT = 24 | |
worldMap = { | |
{1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}, | |
{1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, | |
{1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}, |