Skip to content

Instantly share code, notes, and snippets.

@alexanderjrobinson
alexanderjrobinson / Environment.swift
Last active July 1, 2019 15:24
Example of the Environment single for dependency injection and build configuration variants
import Foundation
// Constant for configuration name from custom property in the Info.plist file
fileprivate let ConfigurationNameKey = "build.config"
// Singleton Instance used globally for shared resources and configuration
var ENV = Environment()
public struct Environment {
public enum Configuration: String {
tap 'caskroom/cask'
brew 'rbenv'
brew 'swiftlint'
cask 'slack'
cask 'google-drive-file-stream'
cask 'figma'
casK 'visual-studio-code'
mas 'Xcode', id: 497799835
@alexanderjrobinson
alexanderjrobinson / pr-checklist.md
Last active February 8, 2016 22:11
PR Checklist

PR Submission Checklist

  • Code compiles without errors or warnings
  • All automated tests pass
  • Code formatted according to team style guide
  • No warnings from static analysis
  • Debug print/log statements have been removed
  • Unsued and commented out code has been removed
  • Performance analysis reports no leaks or general performance issues