Skip to content

Commit fb93470

Browse files
fix(crashlytics, ios): remove warning regarding legacy firebase_app_id_file.json file (#17852)
1 parent 7113857 commit fb93470

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

packages/firebase_crashlytics/firebase_crashlytics/ios/crashlytics_add_upload_symbols

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,14 @@ end
3535
# Path to the Xcode project to modify
3636
project_path = File.join(options_dict[:project_dir], options_dict[:project_name])
3737

38-
unless (File.exist?(project_path))
38+
unless (File.exist?(project_path))
3939
abort("Project at #{project_path} does not exist. Please check paths or incorporate Crashlytics upload symbols manually.\n");
4040
end
4141

4242
# If this is a Flutter project, upload-symbols will use the firebase_app_id_file.json to get the app's ID. If this file doesn't exist, upload-symbols may not be
43-
# able to upload symbols correctly.
43+
# able to upload symbols correctly.
4444
if(options_dict[:flutter_project])
4545
unless File.exist?("#{options_dict[:project_dir]}/firebase_app_id_file.json")
46-
puts("Warning: firebase_app_id_file.json file does not exist. This may cause issues in upload-symbols. If this error is unexpected, try running flutterfire configure again.")
4746
exit(0)
4847
end
4948
end
@@ -57,9 +56,9 @@ end
5756
# Actually open and modify the project
5857
project = Xcodeproj::Project.open(project_path)
5958
project.targets.each do |target|
60-
if (target.name == "Runner")
59+
if (target.name == "Runner")
6160
# We need to make sure that we're not adding more than one run script to upload-symbols (or overwriting custom upload-symbols scripts).
62-
target.shell_script_build_phases().each { |phase|
61+
target.shell_script_build_phases().each { |phase|
6362
if (phase.shell_script.include? "FirebaseCrashlytics/upload-symbols")
6463
puts("Run script to upload symbols already exists.")
6564
exit(0)

0 commit comments

Comments
 (0)