This file contains hidden or 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
desc "Create an unsigned IPA for distribution and resigning" | |
lane :distro do | |
makeUnsignedIPA | |
end | |
# Creates the unsigned IPA file for distribution | |
def makeUnsignedIPA |
This file contains hidden or 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
let backgroundColor = UIColor.init(red: 61/255, green: 30/255, blue: 94/255, alpha: 1) | |
let selectedTabColor = UIColor.init(red: 247/255, green: 149/255, blue: 23/155, alpha: 1) | |
// background color of tabs | |
UITabBar.appearance().barTintColor = backgroundColor | |
// prevent the color from being altered by content showing through below | |
UITabBar.appearance().translucent = false | |
// prevent default styling of tab bar icons |
This file contains hidden or 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 PrioritiesManager : ProductManager { | |
static let sharedInstance = PrioritiesManager() | |
var lastProductPurchased : Product? | |
override init() { | |
super.init() | |
self.productsKey = "com.detroitlabs.shopfast.priorities" | |
self.loadProductsFromDefaults() |
This file contains hidden or 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
func addProduct(product: Product) { | |
let newProduct = Product(name: product.name, qty: 0) | |
if let _ = lastProductPurchased, | |
let index : Int = self.findIndexForProductName(lastProductPurchased!.name) { | |
// if the new product already exists | |
if let _ = self.findProductByName(newProduct.name) { | |
// do nothing -- Rule #2 |
This file contains hidden or 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
func addProduct(product: Product) { | |
let newProduct = Product(name: product.name, qty: 0) | |
// if the product exists | |
if self.doesProductExist(newProduct.name) { | |
// if there is a last item purchased | |
if let lastProduct = self.lastProductPurchased { |
This file contains hidden or 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 ShoppingListManager : ProductManager { | |
static let sharedInstance = ShoppingListManager() | |
let prioritiesManager = PrioritiesManager.sharedInstance | |
func markPurchasedAtIndex(index: Int) { | |
let product = self.products[index] | |
This file contains hidden or 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
func addProduct(product: Product) { | |
let newProduct = Product(name: product.name, qty: 0) | |
// if the product exists | |
if self.doesProductExist(newProduct.name) { | |
// if there is a last item purchased | |
if let lastProduct = self.lastProductPurchased { | |
This file contains hidden or 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
func addProduct(product: Product) { | |
let newProduct = Product(name: product.name, qty: 0) | |
// if the product exists | |
if self.doesProductExist(newProduct.name) { | |
// if there is a last item purchased | |
if let lastProduct = self.lastProductPurchased { | |
This file contains hidden or 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 PrioritiesManager : ProductManager { | |
static let sharedInstance = PrioritiesManager() | |
var productsInThisTrip : [Product]? | |
func addProduct(product: Product) { | |
let newProduct = Product(name: product.name, qty: 0) | |
NewerOlder