Skip to content

Commit

Permalink
Add missing gemfile, tidy up Fastfile
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Cassidy <[email protected]>
  • Loading branch information
stevecassidy committed Nov 28, 2024
1 parent c25b58d commit 7c510c3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 43 deletions.
7 changes: 7 additions & 0 deletions app/ios/App/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
source "https://rubygems.org"

gem "fastlane"
gem "cocoapods"

plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
eval_gemfile(plugins_path) if File.exist?(plugins_path)
46 changes: 3 additions & 43 deletions app/ios/App/fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,48 +34,7 @@ def ensure_temp_keychain(name, password)
end

platform :ios do
lane :test_ipa do
keychain_name = TEMP_KEYCHAIN_USER
keychain_password = TEMP_KEYCHAIN_PASSWORD
ensure_temp_keychain(keychain_name, keychain_password)

api_key = app_store_connect_api_key(
key_id: APPLE_KEY_ID,
issuer_id: APPLE_ISSUER_ID,
key_content: APPLE_KEY_CONTENT,
duration: 1200,
in_house: false
)

#increment_build_number(xcodeproj: "App.xcodeproj")
#handled by script and xcode in build phases, I hope.

cocoapods(
clean_install: true
)

match(
type: 'development',
app_identifier: "#{DEVELOPER_APP_IDENTIFIER}",
git_basic_authorization: Base64.strict_encode64(ENV["GIT_AUTHORIZATION"]),
readonly: false,
keychain_name: keychain_name,
keychain_password: keychain_password,
api_key: api_key
)

gym(
configuration: "Debug",
workspace: "App.xcworkspace",
scheme: "App",
export_method: "development",
export_options: {
provisioningProfiles: {
DEVELOPER_APP_ID => "match Development #{DEVELOPER_APP_IDENTIFIER}"
}
}
)
end

lane :closed_beta_browserstack do
keychain_name = TEMP_KEYCHAIN_USER
keychain_password = TEMP_KEYCHAIN_PASSWORD
Expand Down Expand Up @@ -124,6 +83,8 @@ platform :ios do
custom_id: "ios-github-actions-fastlane"
)
end


lane :closed_beta_testflight do
keychain_name = TEMP_KEYCHAIN_USER
keychain_password = TEMP_KEYCHAIN_PASSWORD
Expand Down Expand Up @@ -171,7 +132,6 @@ platform :ios do
merge_commit_filtering: "exclude_merges"
)


pilot(
apple_id: "#{DEVELOPER_APP_ID}",
app_identifier: "#{DEVELOPER_APP_IDENTIFIER}",
Expand Down

0 comments on commit 7c510c3

Please sign in to comment.