Created
August 25, 2016 07:57
-
-
Save akehoyayoi/b180221fd8f804d1fa0634512d4264bf to your computer and use it in GitHub Desktop.
Firebaseの設定ファイルをスキーマ毎に切り替える ref: http://qiita.com/akehoyayoi@github/items/ca1eea9605642e288664
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #if PRODUCTION | |
| let filePath = NSBundle.mainBundle().pathForResource("GoogleService-Info-pro", ofType: "plist") | |
| #elseif STAGING | |
| let filePath = NSBundle.mainBundle().pathForResource("GoogleService-Info-stg", ofType: "plist") | |
| #else | |
| let filePath = NSBundle.mainBundle().pathForResource("GoogleService-Info-dev", ofType: "plist") | |
| #endif | |
| let firebaseOption = FIROptions(contentsOfFile: filePath) | |
| FIRApp.configureWithOptions(firebaseOption) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment