Skip to content

Commit

Permalink
[#330] Update setting teamId in Match updateCodeSingingSettings
Browse files Browse the repository at this point in the history
Update hard-code teamId in set_up_test_testflight.sh
  • Loading branch information
ducbm051291 committed Apr 21, 2023
1 parent fd3b3ba commit 57a3c1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions fastlane/Helpers/Match.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ 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: 2 additions & 0 deletions set_up_test_testflight.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
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 57a3c1a

Please sign in to comment.