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 Foundation | |
| import RxSwift | |
| internal class UserDefaultsObservable<T>: NSObject { | |
| // MARK: - Attributes | |
| private let userDefaults: NSUserDefaults | |
| private let subject: PublishSubject<T?> | |
| private let key: String |
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
| // Recording requests | |
| expect { | |
| sendRequest1() | |
| sendRequest2() | |
| }.to(recordRequests(name: "my_test_requests")) | |
| // Matching requests | |
| expect{ | |
| sendRequest1() | |
| sendRequest2() |
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 Szimpla | |
| ///// RECORDING THE SNAPSHOT WITH THE REQUESTS /////// | |
| Szimpla.instance.start() // Starts recording | |
| // Do all your UI tests steps | |
| Szimpla.instance.record(name: "user_share_tracking") // Saves the recorded requests | |
| ///// MATCHING THE SNAPSHOT WITH THE REQUESTS /////// | |
| // Navigate to the point where you would like to start testing. |
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
| pod "Szimpla" | |
| pod "Szimpla/Nimble" |
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
| FRAMEWORK_SEARCH_PATHS[sdk=iphone*] = $(inherited) “Crashlytics/iOS” | |
| FRAMEWORK_SEARCH_PATHS[sdk=macosx*] = $(inherited) “Crashlytics/OSX” |
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
| ONLY_ACTIVE_ARCH[config=Debug] = YES | |
| VALID_ARCHS[sdk=macosx*] = x86_64 | |
| VALID_ARCHS[sdk=iphone*] = arm64 armv7 armv7s | |
| IPHONEOS_DEPLOYMENT_TARGET[sdk=iphone*] = 8.0 | |
| TARGETED_DEVICE_FAMILY[sdk=iphone*] = 1,2 | |
| TARGETED_DEVICE_FAMILY[sdk=appletv*] = 3 | |
| TARGETED_DEVICE_FAMILY[sdk=watch*] = 4 | |
| DEAD_CODE_STRIPPING = NO | |
| DEFINES_MODULE = YES | |
| GCC_DYNAMIC_NO_PIC = NO |
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
| SUPPORTED_PLATFORMS = iphoneos iphonesimulator appletvsimulator appletvos macosx watchsimulator watchos | |
| VALID_ARCHS[sdk=iphone*] = arm64 armv7 armv7s | |
| VALID_ARCHS[sdk=macosx*] = x86_64 |
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 Core |
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 AccountCommandFactory { | |
| func fetch() -> Command<GitHubAccount, CoreError> { | |
| // Initialize and return the command | |
| } | |
| } |
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 AccountCommandFactory { | |
| func fetch() -> AccountFetchCommand { | |
| // Initialize and return the command | |
| } | |
| } |