This commit is contained in:
Diego Mello 2023-06-20 16:00:17 -03:00
parent 380bd52029
commit dba4a4ba1a
2 changed files with 3 additions and 20 deletions

View File

@ -293,9 +293,6 @@ commands:
upload-to-testflight: upload-to-testflight:
description: "Upload to TestFlight" description: "Upload to TestFlight"
parameters:
official:
type: boolean
steps: steps:
- checkout - checkout
- attach_workspace: - attach_workspace:
@ -308,7 +305,7 @@ commands:
name: Fastlane Tesflight Upload name: Fastlane Tesflight Upload
command: | command: |
echo $APP_STORE_CONNECT_API_KEY_BASE64 | base64 --decode > ./fastlane/app_store_connect_api_key.p8 echo $APP_STORE_CONNECT_API_KEY_BASE64 | base64 --decode > ./fastlane/app_store_connect_api_key.p8
bundle exec fastlane ios beta official:<< parameters.official >> bundle exec fastlane ios beta
working_directory: ios working_directory: ios
- save_cache: *save-gems-cache - save_cache: *save-gems-cache
@ -518,28 +515,15 @@ jobs:
- store_artifacts: - store_artifacts:
path: ~/junit path: ~/junit
# iOS builds
ios-build-experimental:
executor: mac-env
steps:
- ios-build
ios-build-official: ios-build-official:
executor: mac-env executor: mac-env
steps: steps:
- ios-build - ios-build
ios-testflight-experimental:
executor: mac-env
steps:
- upload-to-testflight:
official: false
ios-testflight-official: ios-testflight-official:
executor: mac-env executor: mac-env
steps: steps:
- upload-to-testflight: - upload-to-testflight
official: true
e2e-build-ios: e2e-build-ios:
executor: mac-env executor: mac-env

View File

@ -35,14 +35,13 @@ platform :ios do
) )
pilot( pilot(
ipa: 'ios/Rocket.Chat.ipa', ipa: 'ios/Rocket.Chat.ipa',
app_identifier: options[:official] ? 'chat.rocket.ios' : 'chat.rocket.reactnative',
skip_waiting_for_build_processing: true skip_waiting_for_build_processing: true
) )
upload_symbols_to_crashlytics(dsym_path: "./ios/Rocket.Chat.app.dSYM.zip") upload_symbols_to_crashlytics(dsym_path: "./ios/Rocket.Chat.app.dSYM.zip")
upload_symbols_to_bugsnag( upload_symbols_to_bugsnag(
config_file: "./RocketChatRN/Info.plist", config_file: "./RocketChatRN/Info.plist",
dsym_path: "./ios/Rocket.Chat.app.dSYM.zip", dsym_path: "./ios/Rocket.Chat.app.dSYM.zip",
api_key: options[:official] ? ENV["BUGSNAG_KEY_OFFICIAL"] : ENV["BUGSNAG_KEY"] api_key: ENV["BUGSNAG_KEY_OFFICIAL"]
) )
end end