-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #459 from nimblehq/310-multiple-apple-accounts
[#310] Support multiple apple portal accounts
- Loading branch information
Showing
3 changed files
with
25 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,8 +22,10 @@ enum Constant { | |
|
||
// MARK: - Match | ||
|
||
static let userName = "<#userName#>" | ||
static let teamId = "<#teamId#>" | ||
static let appleStagingUserName = "<#userName#>" | ||
static let appleStagingTeamId = "<#teamId#>" | ||
static let appleProductionUserName = "<#userName#>" | ||
static let appleProductionTeamId = "<#teamId#>" | ||
static let keychainName = "github_action_keychain" | ||
static let matchURL = "[email protected]:{organization}/{repo}.git" | ||
|
||
|
@@ -86,7 +88,7 @@ extension Constant { | |
var scheme: String { | ||
switch self { | ||
case .staging: return "\(Constant.projectName) \(rawValue)".trimmed | ||
case .production: return Constant.projectName | ||
case .production: return Constant.projectName.trimmed | ||
} | ||
} | ||
|
||
|
@@ -117,6 +119,20 @@ extension Constant { | |
let outputDirectoryURL = URL(fileURLWithPath: Constant.outputPath) | ||
return outputDirectoryURL.appendingPathComponent(productName + ".app" + Constant.dSYMSuffix).relativePath | ||
} | ||
|
||
var appleUsername: String { | ||
switch self { | ||
case .staging: return Constant.appleStagingUserName | ||
case .production: return Constant.appleProductionUserName | ||
} | ||
} | ||
|
||
var appleTeamId: String { | ||
switch self { | ||
case .staging: return Constant.appleStagingTeamId | ||
case .production: return Constant.appleProductionTeamId | ||
} | ||
} | ||
} | ||
|
||
enum BuildType: String { | ||
|
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