Last active
August 15, 2020 17:12
-
-
Save cipolleschi/0327ac600cde41e1cc051d709021760b to your computer and use it in GitHub Desktop.
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
func buildDependencies() -> Dependencies { | |
#if UITESTING | |
if UserDefaults.standard.object(forKey: "mockPurchase") != nil { | |
let mockedMonetizationResult = UserDefaults.standard.bool(forKey: "mockPurchase") | |
return Dependencies(purchaseManagerDependencies: .mocked(with: mockedMonetizationResult)) | |
} | |
#endif | |
return Dependencies() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment