Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create logic to be able to run MQA in preproduction (OA), production (Market), and development mode (off) #13

Open
ghost opened this issue Nov 10, 2015 · 0 comments

Comments

@ghost
Copy link

ghost commented Nov 10, 2015

We need logic like we have in iOS that allows for different variables be set for the state of MQA when it's built through Jenkins.

Here's some example code from iOS:

var isDevelopment = true
        // Read configurations from the Config.plist.
        let configurationPath = NSBundle.mainBundle().pathForResource("Config", ofType: "plist")
        if((configurationPath) != nil){
            let configuration = NSDictionary(contentsOfFile: configurationPath!) as! [String: AnyObject]!

            if let isDev = configuration["isDevelopment"] as? Bool {
                isDevelopment = isDev
            }
        }

        //Set the SDK mode Market vs QA for Production and Pre-Production
        #if Debug
            // Do nothing
        #else
            if isDevelopment {
                MQALogger.settings().mode = MQAMode.QA
            } else {
                MQALogger.settings().mode = MQAMode.Market
            }
        #endif
@ghost ghost added the enhancement label Nov 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants