Skip to content

[Question] Application environment handling concern #15

@minhnimble

Description

@minhnimble

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
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions