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
platform :ios, '10.0' | |
target 'TARGET_NAME' do | |
use_frameworks! | |
inhibit_all_warnings! | |
pod 'Firebase/Core' | |
pod 'Firebase/Auth' | |
pod 'Firebase/Database' | |
pod 'Firebase/Storage' |
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
import UIKit | |
protocol TestDisplayLogic: class | |
{ | |
func successFetchedItems(viewModel: Test.Fetch.ViewModel) | |
func errorFetchingItems(viewModel: Test.Fetch.ViewModel) | |
} | |
class TestViewController: UIViewController, TestDisplayLogic | |
{ |
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
import UIKit | |
protocol TestPresentationLogic | |
{ | |
func presentFetchResults(response: Test.Fetch.Response) | |
} | |
class TestPresenter: TestPresentationLogic | |
{ | |
weak var viewController: TestDisplayLogic? |
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
import UIKit | |
protocol TestBusinessLogic | |
{ | |
func fetchItems(request: Test.Fetch.Request) | |
} | |
protocol TestDataStore | |
{ | |
//var name: String { get set } |
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
import UIKit | |
@objc protocol TestRoutingLogic | |
{ | |
//func routeToSomewhere(segue: UIStoryboardSegue?) | |
} | |
protocol TestDataPassing | |
{ | |
var dataStore: TestDataStore? { get } |
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
// | |
// RateApp.swift | |
// https://medium.com/@dejanatanasov | |
// | |
import Foundation | |
import StoreKit | |
class RateApp { |
NewerOlder