Skip to content

Commit 98685a0

Browse files
authored
Replace CocoaPods deprecated exists? with exist? (#147056)
Fixes flutter/flutter#147041.
1 parent 4f7b7c9 commit 98685a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/flutter_tools/bin/podhelper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,12 +324,12 @@ def flutter_install_plugin_pods(application_path = nil, relative_symlink_dir, pl
324324

325325
# If Swift Package Manager is enabled and the plugin has a Package.swift,
326326
# skip from installing as a pod.
327-
swift_package_exists = File.exists?(File.join(relative, platform_directory, plugin_name, "Package.swift"))
327+
swift_package_exists = File.exist?(File.join(relative, platform_directory, plugin_name, "Package.swift"))
328328
next if swift_package_manager_enabled && swift_package_exists
329329

330330
# If a plugin is Swift Package Manager compatible but not CocoaPods compatible, skip it.
331331
# The tool will print an error about it.
332-
next if swift_package_exists && !File.exists?(File.join(relative, platform_directory, plugin_name + ".podspec"))
332+
next if swift_package_exists && !File.exist?(File.join(relative, platform_directory, plugin_name + ".podspec"))
333333

334334
pod plugin_name, path: File.join(relative, platform_directory)
335335
end

0 commit comments

Comments
 (0)