Skip to content

Commit

Permalink
[#510] Update keychainName default value with "{PROJECT_NAME}" to be …
Browse files Browse the repository at this point in the history
…replaced when run make.sh

Update make.sh to accept minimum-version
  • Loading branch information
ducbm051291 committed Aug 24, 2023
1 parent 71ef49a commit c37549f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fastlane/Constants/Constant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ enum Constant {
static let appleStagingTeamId = "<#teamId#>"
static let appleProductionUserName = "<#userName#>"
static let appleProductionTeamId = "<#teamId#>"
static let keychainName = "github_action_keychain"
static let keychainName = "{PROJECT_NAME}"
static let matchURL = "[email protected]:{organization}/{repo}.git"

// MARK: - Path
Expand Down
7 changes: 6 additions & 1 deletion make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ usage() {
fi

cat << EOF
Usage: $PROGNAME --bundle-id [BUNDLE_ID_PRODUCTION] --bundle-id-staging [BUNDLE_ID_STAGING] --project-name [PROJECT_NAME]
Usage: $PROGNAME --bundle-id [BUNDLE_ID_PRODUCTION] --bundle-id-staging [BUNDLE_ID_STAGING] --project-name [PROJECT_NAME] --minimum-version [MINIMUM_VERSION] --interface [INTERFACE]
Set up an iOS app from tuist template.
Options:
-h, --help display this usage message and exit
-b, --bundle-id [BUNDLE_ID_PRODUCTION] the production id (i.e. com.example.package)
-s, --bundle-id-staging [BUNDLE_ID_STAGING] the staging id (i.e. com.example.package.staging)
-n, --project-name [PROJECT_NAME] the project name (i.e. MyApp)
-m, --minimum-version [MINIMUM_VERSION] the minimum version of the project (i.e. 14.0)
-i, --interface [INTERFACE] the user interface frameword (SwiftUI or UIKit)
EOF
exit 1
Expand Down Expand Up @@ -52,6 +53,10 @@ while [ $# -gt 0 ] ; do
project_name="$2"
shift
;;
-m|--minimum-version)
minimum_version="$2"
shift
;;
-i|--interface)
interface="$2"
shift
Expand Down

0 comments on commit c37549f

Please sign in to comment.