From 32fd2cbf73b1d75fb78a441f3508eb14bb436d77 Mon Sep 17 00:00:00 2001 From: stuartmorgan Date: Tue, 9 Jan 2024 14:25:57 -0800 Subject: [PATCH] Replace deprecated `exists` in podhelper.rb (#141169) The recently landed https://github.com/flutter/flutter/pull/140222 accidentally used the deprecated `exists?` instead of the non-deprecated `exist?` (which other code in this file is already, correctly, using). Fixes https://github.com/flutter/flutter/issues/141167 --- packages/flutter_tools/bin/podhelper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/flutter_tools/bin/podhelper.rb b/packages/flutter_tools/bin/podhelper.rb index a6ff8bfb4f..2ec1e82e42 100644 --- a/packages/flutter_tools/bin/podhelper.rb +++ b/packages/flutter_tools/bin/podhelper.rb @@ -327,7 +327,7 @@ end def flutter_parse_xcconfig_file(file) file_abs_path = File.expand_path(file) - if !File.exists? file_abs_path + if !File.exist? file_abs_path return []; end entries = Hash.new @@ -346,7 +346,7 @@ end def flutter_get_local_engine_dir(xcconfig_file) file_abs_path = File.expand_path(xcconfig_file) - if !File.exists? file_abs_path + if !File.exist? file_abs_path return nil end config = flutter_parse_xcconfig_file(xcconfig_file)