From 6c4652e3a0fc36b18ef17984a8fc5dd0dabfc90e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Wed, 14 Apr 2021 14:05:41 +0200 Subject: [PATCH] feat(build,ios) add lane to update dSYMs on Crashlytics --- ios/fastlane/Fastfile | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/ios/fastlane/Fastfile b/ios/fastlane/Fastfile index 3837edcd6..80a9695d1 100644 --- a/ios/fastlane/Fastfile +++ b/ios/fastlane/Fastfile @@ -9,7 +9,7 @@ platform :ios do # Make sure we are on a clean tree ensure_git_status_clean - # Connext to Apple Store Connect + # Connect to Apple Store Connect app_store_connect_api_key( key_id: ENV["ASC_KEY_ID"], issuer_id: ENV["ASC_ISSUER_ID"], @@ -103,12 +103,24 @@ platform :ios do uses_non_exempt_encryption: false ) - # Upload dSYMs to Crashlytics - download_dsyms - upload_symbols_to_crashlytics - # Cleanup clean_build_artifacts reset_git_repo(skip_clean: true) end + + lane :refresh_dsyms do + # Connect to Apple Store Connect + app_store_connect_api_key( + key_id: ENV["ASC_KEY_ID"], + issuer_id: ENV["ASC_ISSUER_ID"], + key_content: ENV["ASC_KEY_CONTENT"], + duration: 1200, + in_house: false + ) + + # Upload dSYMs to Crashlytics + download_dsyms(min_version: ENV["DSYMS_MIN_VERSION"]) # Download dSYM files from iTC + upload_symbols_to_crashlytics # Upload them to Crashlytics + clean_build_artifacts # Delete the local dSYM files + end end