-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
50 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
15 changes: 15 additions & 0 deletions
15
Scripts/Swift/iOSTemplateMaker/Sources/iOSTemplateMaker/Helpers/EnvironmentValue.swift
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// EnvironmentValue.swift | ||
// | ||
// | ||
// Created by Bliss on 30/8/23. | ||
// | ||
|
||
import Foundation | ||
|
||
enum EnvironmentValue { | ||
|
||
static func value(for key: String) -> String? { | ||
ProcessInfo.processInfo.environment[key] | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
Scripts/Swift/iOSTemplateMaker/Sources/iOSTemplateMaker/Models/EnvironmentKey.swift
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// EnvironmentKey.swift | ||
// | ||
// | ||
// Created by Bliss on 30/8/23. | ||
// | ||
|
||
enum EnvironmentKey: String { | ||
|
||
case matchRepo = "MATCH_REPO" | ||
case stagingFirebaseAppId = "STAGING_FIREBASE_APP_ID" | ||
case teamId = "TEAM_ID" | ||
case apiKey = "API_KEY_ID" | ||
case issuerId = "ISSUER_ID" | ||
case isCI = "CI" | ||
} | ||
|
||
extension EnvironmentValue { | ||
|
||
static func value(for key: EnvironmentKey) -> String? { | ||
Self.value(for: key.rawValue) | ||
} | ||
} |
This file contains 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
This file contains 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