iOS: Simple way to manage REST end points

后端 未结 4 1211
既然无缘
既然无缘 2021-01-24 07:28

Our REST based application can be used for testing on multiple internal environments each with a different REST end point. Is there a simple way to set up environment level co

4条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-24 08:04

    I ended up using https://github.com/theappbusiness/ConfigGenerator:

    A command line tool to auto-generate configuration file code, for use in Xcode projects. The configen tool is used to auto-generate configuration code from a property list. It is intended to create the kind of configuration needed for external URLs or API keys used by your app. Currently supports both Swift and Objective-C code generation.

提交回复
热议问题