Skip to content

Commit

Permalink
Ruby globals need to be capitalised!
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Cassidy <steve.cassidy@mq.edu.au>
  • Loading branch information
stevecassidy committed Dec 6, 2024
1 parent 7dac906 commit 5b64e4a
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions app/ios/App/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,27 @@ BROWSERSTACK_ACCESS_KEY = ENV["BROWSERSTACK_ACCESS_KEY"]


# keychain details are hard-coded here with a generated password
keychain_name = "keychain"
keychain_password = SecureRandom.hex(32)
KEYCHAIN_NAME = "keychain"
KEYCHAIN_PASSWORD = SecureRandom.hex(32)

def delete_temp_keychain()
delete_keychain(
name: keychain_name
) if File.exist? File.expand_path("~/Library/Keychains/keychain-db")
name: KEYCHAIN_NAME
) if File.exist? File.expand_path("~/Library/Keychains/#{KEYCHAIN_NAME}-db")
end

def create_temp_keychain()
create_keychain(
name: keychain_name,
password: keychain_password,
name: KEYCHAIN_NAME,
password: KEYCHAIN_PASSWORD,
unlock: false,
timeout: 0
)
end

def ensure_temp_keychain()
delete_temp_keychain()
create_temp_keychain(keychain_name, keychain_password)
create_temp_keychain(KEYCHAIN_NAME, KEYCHAIN_PASSWORD)
end

platform :ios do
Expand All @@ -59,8 +59,8 @@ platform :ios do
app_identifier: "#{APPLE_BUNDLE_IDENTIFIER}",
git_basic_authorization: Base64.strict_encode64(ENV["GIT_AUTHORIZATION"]),
readonly: false,
keychain_name: keychain_name,
keychain_password: keychain_password,
keychain_name: KEYCHAIN_NAME,
keychain_password: KEYCHAIN_PASSWORD,
api_key: api_key
)

Expand Down Expand Up @@ -109,8 +109,8 @@ platform :ios do
app_identifier: "#{APPLE_BUNDLE_IDENTIFIER}",
git_basic_authorization: Base64.strict_encode64(ENV["GIT_AUTHORIZATION"]),
readonly: false,
keychain_name: keychain_name,
keychain_password: keychain_password,
keychain_name: KEYCHAIN_NAME,
keychain_password: KEYCHAIN_PASSWORD,
api_key: api_key
)

Expand Down Expand Up @@ -168,8 +168,8 @@ platform :ios do
app_identifier: "#{APPLE_BUNDLE_IDENTIFIER}",
git_basic_authorization: Base64.strict_encode64(ENV["GIT_AUTHORIZATION"]),
readonly: false,
keychain_name: keychain_name,
keychain_password: keychain_password,
keychain_name: KEYCHAIN_NAME,
keychain_password: KEYCHAIN_PASSWORD,
api_key: api_key
)

Expand Down

0 comments on commit 5b64e4a

Please sign in to comment.