Open pablomarti opened 5 years ago
FWIW, recently I was looking for a better solutions to the keys/url stuff that fits with a good CI integration, and also help to remove those ugly constants or hardcoded url/keys inside the project. I found this alternative https://github.com/orta/cocoapods-keys, and worked great so far, the drawback is just works with CocoaPods.
https://github.com/Stanley-Jovel/TDD-and-dependency-injecion-with-swift/blob/d780aafe5f906c70ea9fe82dc86cb1eb6cace892/TDD-and-dependency-injection-experiment/ApiWrapper.swift#L14
Don't hardcode configs or settings, use a Plist.