From 39530afeb234072d97f0debd765d280320a222c1 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Thu, 22 Jun 2023 17:25:46 -0300 Subject: [PATCH] Cleanup iOS Fastfile --- ios/fastlane/Fastfile | 40 ++++++++++++++++++++-------------------- ios/fastlane/README.md | 26 +++++++++----------------- 2 files changed, 29 insertions(+), 37 deletions(-) diff --git a/ios/fastlane/Fastfile b/ios/fastlane/Fastfile index a0be4f031..0e44cb36d 100644 --- a/ios/fastlane/Fastfile +++ b/ios/fastlane/Fastfile @@ -25,7 +25,26 @@ platform :ios do ) end - desc "Submit a new Beta Build to Apple TestFlight" + desc "Build" + lane :build do + api_key = app_store_connect_api_key( + key_id: ENV["APP_STORE_CONNECT_API_KEY_ID"], + issuer_id: ENV["APP_STORE_CONNECT_API_KEY_ISSUER_ID"], + key_filepath: 'fastlane/app_store_connect_api_key.p8', + in_house: false + ) + match(type: "appstore") + get_provisioning_profile(app_identifier: "chat.rocket.ios.Rocket-Chat-ShareExtension") + get_provisioning_profile(app_identifier: "chat.rocket.ios.NotificationService") + # pem(api_key: api_key) # still uses Spaceship http://docs.fastlane.tools/actions/pem/#how-does-it-work + gym( + scheme: "RocketChat", + workspace: "RocketChatRN.xcworkspace", + output_name: "Rocket.Chat" + ) + end + + desc "Upload build to TestFlight" lane :beta do |options| api_key = app_store_connect_api_key( key_id: ENV["APP_STORE_CONNECT_API_KEY_ID"], @@ -48,25 +67,6 @@ platform :ios do ) end - desc "Build app" - lane :build_official do - api_key = app_store_connect_api_key( - key_id: ENV["APP_STORE_CONNECT_API_KEY_ID"], - issuer_id: ENV["APP_STORE_CONNECT_API_KEY_ISSUER_ID"], - key_filepath: 'fastlane/app_store_connect_api_key.p8', - in_house: false - ) - match(type: "appstore") - get_provisioning_profile(app_identifier: "chat.rocket.ios.Rocket-Chat-ShareExtension") - get_provisioning_profile(app_identifier: "chat.rocket.ios.NotificationService") - # pem(api_key: api_key) # still uses Spaceship http://docs.fastlane.tools/actions/pem/#how-does-it-work - gym( - scheme: "RocketChat", - workspace: "RocketChatRN.xcworkspace", - output_name: "Rocket.Chat" - ) - end - after_all do |lane| delete_keychain(name: ENV["MATCH_KEYCHAIN_NAME"]) end diff --git a/ios/fastlane/README.md b/ios/fastlane/README.md index cda0b18bb..a8cbb997d 100644 --- a/ios/fastlane/README.md +++ b/ios/fastlane/README.md @@ -15,29 +15,21 @@ For _fastlane_ installation instructions, see [Installing _fastlane_](https://do ## iOS +### ios build + +```sh +[bundle exec] fastlane ios build +``` + +Build + ### ios beta ```sh [bundle exec] fastlane ios beta ``` -Submit a new Beta Build to Apple TestFlight - -### ios build_official - -```sh -[bundle exec] fastlane ios build_official -``` - -Build app - -### ios build_fork - -```sh -[bundle exec] fastlane ios build_fork -``` - -Build fork app +Upload build to TestFlight ----