Issue
As per our our API documentation, there are more environments that our API should be able to support, which are Staging and Production, and you only handled the Production environment so far with hard-coded values. I would like to know more on if you have any experiences in handling different environments in a project and if yes, how would you do it in such cases?
|
class Constants { |
|
static let baseUrl = "https://survey-api.nimblehq.co/api/v1/" |
|
static let clientId = "ofzl-2h5ympKa0WqqTzqlVJUiRsxmXQmt5tkgrlWnOE" |
|
static let clientSecret = "lMQb900L-mTeU-FVTCwyhjsfBwRCxwwbCitPob96cuU" |
|
static let accessToken = "accessToken" |
|
static let pullToRefreshOffset: Double = -80 |
|
} |
Issue
As per our our API documentation, there are more environments that our API should be able to support, which are Staging and Production, and you only handled the Production environment so far with hard-coded values. I would like to know more on if you have any experiences in handling different environments in a project and if yes, how would you do it in such cases?
survey/Survey/Constants/Constants.swift
Lines 10 to 16 in a8f653f