From 6282671df7530621a319df344bea0846f6d0dafd Mon Sep 17 00:00:00 2001 From: Vladimir Makarov Date: Thu, 17 Feb 2022 13:07:13 +0500 Subject: [PATCH] firebase_app_distribution groups file check added --- xcode/commonFastfile | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/xcode/commonFastfile b/xcode/commonFastfile index 607dfc3..fe20086 100644 --- a/xcode/commonFastfile +++ b/xcode/commonFastfile @@ -36,12 +36,24 @@ private_lane :uploadToFirebase do |options| google_app_id = get_info_plist_value(path: gsp_plist_path, key: "GOOGLE_APP_ID") - firebase_app_distribution( + firebase_app_distibution_groups_path = File.expand_path "../firebase_app_distribution_groups" + + # Select groups_file or groups parameter depending on groups file existence + if File.exists? firebase_app_distibution_groups_path + firebase_app_distribution( + app: google_app_id, + ipa_path: options[:ipa_path], + groups_file: firebase_app_distibution_groups_path, + release_notes_file: releaseNotesFile + ) + else + firebase_app_distribution( app: google_app_id, ipa_path: options[:ipa_path], groups: "touch-instinct", release_notes_file: releaseNotesFile - ) + ) + end upload_symbols_to_crashlytics( gsp_path: get_google_services_plist_path(app_target_folder_name, configuration_type)