Skip to content

Commit

Permalink
[#330] Remove setting team id
Browse files Browse the repository at this point in the history
  • Loading branch information
ducbm051291 committed Apr 21, 2023
1 parent 6666c18 commit fd3b3ba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
7 changes: 6 additions & 1 deletion fastlane/Constants/Constant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,12 @@ extension Constant {

var productName: String { "\(Constant.projectName) \(rawValue)".trimmed }

var scheme: String { "\(Constant.projectName) \(rawValue)".trimmed }
var scheme: String {
switch self {
case .staging: return "\(Constant.projectName) \(rawValue)".trimmed
case .production: return Constant.projectName
}
}

var bundleId: String {
switch self {
Expand Down
1 change: 0 additions & 1 deletion fastlane/Helpers/Match.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ enum Match {
updateCodeSigningSettings(
path: Constant.projectPath,
useAutomaticSigning: .userDefined(false),
teamId: .userDefined(Constant.teamId),
targets: .userDefined([Constant.projectName]),
buildConfigurations: .userDefined([Self.createBuildConfiguration(type: type, environment: environment)]),
codeSignIdentity: .userDefined(type.codeSignIdentity),
Expand Down
2 changes: 0 additions & 2 deletions set_up_test_testflight.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
readonly CONSTANT_TEAM_ID="<#teamId#>"
readonly CONSTANT_API_KEY_ID="<#API_KEY_ID#>"
readonly CONSTANT_ISSUER_ID="<#ISSUER_ID#>"
readonly CONSTANT_MATCH_REPO="[email protected]:{organization}\/{repo}.git"

readonly WORKING_DIR=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
MATCH_REPO_ESCAPED=$(echo "${MATCH_REPO//\//\\\/}")

LC_ALL=C find $WORKING_DIR -type f -exec sed -i "" "s/$CONSTANT_TEAM_ID/4TWS7E2EPE/g" {} +
LC_ALL=C find $WORKING_DIR -type f -exec sed -i "" "s/$CONSTANT_API_KEY_ID/$API_KEY_ID/g" {} +
LC_ALL=C find $WORKING_DIR -type f -exec sed -i "" "s/$CONSTANT_ISSUER_ID/$ISSUER_ID/g" {} +
LC_ALL=C find $WORKING_DIR -type f -exec sed -i "" "s/$CONSTANT_MATCH_REPO/$MATCH_REPO_ESCAPED/g" {} +

0 comments on commit fd3b3ba

Please sign in to comment.