Diff
checker
Texte
Texte
Images
Documents
Excel
Dossiers
Legal
Enterprise
Application de bureau
Prix
Se connecter
Télécharger Diffchecker Desktop
Comparer le texte
Trouver la différence entre deux fichiers texte
Outils
Historique
Éditeur live
Cacher identiques
Sans retour à la ligne
Vue
Divisé
Unifié
Niveau de précision
Intelligent
Mot
Caractère
Coloration syntaxique
Choisir la syntaxe
Ignorer
Transformer le texte
Aller au premier écart
Modifier l'entrée
Diffchecker Desktop
La façon la plus sécurisée d'utiliser Diffchecker. Obtenez l'application Diffchecker Desktop : vos diffs ne quittent jamais votre ordinateur !
Obtenir Desktop
podhelper.rb diff
Créé
il y a 3 ans
Le diff n'expire jamais
Effacer
Exporter
Partager
Expliquer
86 suppressions
Lignes
Total
Supprimé
Caractères
Total
Supprimé
Pour continuer à utiliser cette fonctionnalité, passez à
Diff
checker
Pro
Voir les prix
157 lignes
Copier tout
68 ajouts
Lignes
Total
Ajouté
Caractères
Total
Ajouté
Pour continuer à utiliser cette fonctionnalité, passez à
Diff
checker
Pro
Voir les prix
137 lignes
Copier tout
Copier
Copié
Copier
Copié
#
2.8.1
#
3.3.7
# Copyright 2014 The Flutter Authors. All rights reserved.
# Copyright 2014 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# found in the LICENSE file.
require 'json'
require 'json'
# Install pods needed to embed Flutter application, Flutter engine, and plugins
# Install pods needed to embed Flutter application, Flutter engine, and plugins
# from the host application Podfile.
# from the host application Podfile.
#
#
# @example
# @example
# target 'MyApp' do
# target 'MyApp' do
# install_all_flutter_pods 'my_flutter'
# install_all_flutter_pods 'my_flutter'
# end
# end
# @param [String] flutter_application_path Path of the root directory of the Flutter module.
# @param [String] flutter_application_path Path of the root directory of the Flutter module.
# Optional, defaults to two levels up from the directory of this script.
# Optional, defaults to two levels up from the directory of this script.
# MyApp/my_flutter/.ios/Flutter/../..
# MyApp/my_flutter/.ios/Flutter/../..
def install_all_flutter_pods(flutter_application_path = nil)
def install_all_flutter_pods(flutter_application_path = nil)
Copier
Copié
Copier
Copié
# defined_in_file is a Pathname to the Podfile set by CocoaPods.
pod_contents = File.read(defined_in_file)
unless pod_contents.include? 'flutter_post_install'
puts <<~POSTINSTALL
Add `flutter_post_install(installer)` to your Podfile `post_install` block to build Flutter plugins:
post_install do |installer|
flutter_post_install(installer)
end
POSTINSTALL
raise 'Missing `flutter_post_install(installer)` in Podfile `post_install` block'
end
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)
flutter_application_path ||= File.join('..', '..')
flutter_application_path ||= File.join('..', '..')
Copier
Copié
Copier
Copié
install_flutter_engine_pod
install_flutter_engine_pod
(flutter_application_path)
install_flutter_plugin_pods(flutter_application_path)
install_flutter_plugin_pods(flutter_application_path)
install_flutter_application_pod(flutter_application_path)
install_flutter_application_pod(flutter_application_path)
end
end
# Install Flutter engine pod.
# Install Flutter engine pod.
#
#
# @example
# @example
# target 'MyApp' do
# target 'MyApp' do
# install_flutter_engine_pod
# install_flutter_engine_pod
# end
# end
Copier
Copié
Copier
Copié
def install_flutter_engine_pod
def install_flutter_engine_pod
(flutter_application_path = nil)
current_directory = File.expand_path('..', __FILE__)
flutter_application_path ||= File.join('..', '..')
engine_dir = File.expand_path('engine', current_directory)
ios_application_path = File.join(flutter_application_path, '.ios')
framework_name = 'Flutter.xcframework'
copied_engine = File.expand_path(framework_name, engine_dir)
if !File.exist?(copied_engine)
# Copy the debug engine to have something to link against if the xcode backend script has not run yet.
# CocoaPods will not embed the framework on pod install (before any build phases can generate) if the dylib does not exist.
release_framework_dir = File.join(flutter_root, 'bin', 'cache', 'artifacts', 'engine', 'ios-release')
unless Dir.exist?(release_framework_dir)
# iOS artifacts have not been downloaded.
raise "#{release_framework_dir} must exist. Make sure \"flutter precache --ios\" has been run at least once"
end
FileUtils.cp_r(File.join(release_framework_dir, framework_name), engine_dir)
end
# Keep pod path relative so it can be checked into Podfile.lock.
# Process will be run from project directory.
engine_pathname = Pathname.new engine_dir
# defined_in_file is set by CocoaPods and is a Pathname to the Podfile.
project_directory_pathname = defined_in_file.dirname
relative = engine_pathname.relative_path_from project_directory_pathname
Copier
Copié
Copier
Copié
pod
'
Flutter
', :path => relative.to_s, :inhibit_warnings => true
# flutter_install_ios_engine_
pod
is in
Flutter
root podhelper.rb
flutter_install_ios_engine_pod(ios_application_path)
end
end
# Install Flutter plugin pods.
# Install Flutter plugin pods.
#
#
# @example
# @example
# target 'MyApp' do
# target 'MyApp' do
# install_flutter_plugin_pods 'my_flutter'
# install_flutter_plugin_pods 'my_flutter'
# end
# end
# @param [String] flutter_application_path Path of the root directory of the Flutter module.
# @param [String] flutter_application_path Path of the root directory of the Flutter module.
# Optional, defaults to two levels up from the directory of this script.
# Optional, defaults to two levels up from the directory of this script.
# MyApp/my_flutter/.ios/Flutter/../..
# MyApp/my_flutter/.ios/Flutter/../..
def install_flutter_plugin_pods(flutter_application_path)
def install_flutter_plugin_pods(flutter_application_path)
flutter_application_path ||= File.join('..', '..')
flutter_application_path ||= File.join('..', '..')
Copier
Copié
Copier
Copié
ios_application_path = File.join(flutter_application_path, '.ios')
# flutter_install_plugin_pods is in Flutter root podhelper.rb
flutter_install_plugin_pods(ios_application_path, '.symlinks', 'ios')
# Keep pod path relative so it can be checked into Podfile.lock.
# Keep pod path relative so it can be checked into Podfile.lock.
Copier
Copié
Copier
Copié
# Process will be run from project directory.
relative =
flutter_
relative_path_from
_podfile(ios_application
_path
)
ios_project_directory_pathname = Pathname.new File.expand_path(File.join('..', '..'), __FILE__)
# defined_in_file is set by CocoaPods and is a Pathname to the Podfile.
project_directory_pathname = defined_in_file.dirname
relative =
ios_project_directory_pathname.
relative_path_from
project_directory
_path
name
pod 'FlutterPluginRegistrant', :path => File.join(relative, 'Flutter', 'FlutterPluginRegistrant'), :inhibit_warnings => true
pod 'FlutterPluginRegistrant', :path => File.join(relative, 'Flutter', 'FlutterPluginRegistrant'), :inhibit_warnings => true
Copier
Copié
Copier
Copié
symlinks_dir = File.join(relative, '.symlinks', 'plugins')
FileUtils.mkdir_p(symlinks_dir)
plugins_file = File.expand_path('.flutter-plugins-dependencies', flutter_application_path)
plugin_pods = flutter_parse_dependencies_file_for_ios_plugin(plugins_file)
plugin_pods.each do |plugin_hash|
plugin_name = plugin_hash['name']
plugin_path = plugin_hash['path']
if (plugin_name && plugin_path)
symlink = File.join(symlinks_dir, plugin_name)
FileUtils.rm_f(symlink)
File.symlink(plugin_path, symlink)
pod plugin_name, :path => File.join(symlink, 'ios'), :inhibit_warnings => true
end
end
end
end
# Install Flutter application pod.
# Install Flutter application pod.
#
#
# @example
# @example
# target 'MyApp' do
# target 'MyApp' do
# install_flutter_application_pod '../flutter_settings_repository'
# install_flutter_application_pod '../flutter_settings_repository'
# end
# end
# @param [String] flutter_application_path Path of the root directory of the Flutter module.
# @param [String] flutter_application_path Path of the root directory of the Flutter module.
# Optional, defaults to two levels up from the directory of this script.
# Optional, defaults to two levels up from the directory of this script.
# MyApp/my_flutter/.ios/Flutter/../..
# MyApp/my_flutter/.ios/Flutter/../..
def install_flutter_application_pod(flutter_application_path)
def install_flutter_application_pod(flutter_application_path)
Copier
Copié
Copier
Copié
current_directory_pathname = Pathname.new File.expand_path('..', __FILE__)
flutter_application
_path
||
= File.join(
'..', '..')
app_framework_dir = File.expand_path('App.framework', current_directory_pathname.to
_path
)
app_framework_dylib
= File.join(
app_framework_dir, 'App')
if !File.exist?(app_framework_dylib)
# Fake an App.framework to have something to link against if the xcode backend script has not run yet.
# CocoaPods will not embed the framework on pod install (before any build phases can run) if the dylib does not exist.
# Create a dummy dylib.
FileUtils.mkdir_p(app_framework_dir)
`echo "static const int Moo = 88;" | xcrun clang -x c -dynamiclib -o "#{app_framework_dylib}" -`
end
Copier
Copié
Copier
Copié
# Keep pod and
script
phase paths relative so they can be checked into source control.
export_
script
_
directory
= File.join(flutter_application_path, '.ios', 'Flutter')
# Process will be run from project
directory
.
Copier
Copié
Copier
Copié
#
defined_in_file is set by CocoaPods and is a Pathname to the Podfile.
#
Keep script phase paths relative so they can be checked into source control.
project_directory_pathname = defined_in_file.dirname
relative =
flutter_
relative_path_from
_podfile(export_script
_directory
)
relative =
current_directory_pathname.
relative_path_from
project
_directory
_pathname
pod 'talabat', :path => relative.to_s, :inhibit_warnings => true
flutter_export_environment_path = File.join('${SRCROOT}', relative, 'flutter_export_environment.sh');
flutter_export_environment_path = File.join('${SRCROOT}', relative, 'flutter_export_environment.sh');
Copier
Copié
Copier
Copié
script_phase :name => 'Run Flutter Build
talabat
Script',
# Compile App.framework and move it and Flutter.framework to "BUILT_PRODUCTS_DIR"
script_phase :name => 'Run Flutter Build
my_flutter
Script',
:script => "set -e\nset -u\nsource \"#{flutter_export_environment_path}\"\nexport VERBOSE_SCRIPT_LOGGING=1 && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/xcode_backend.sh build",
:script => "set -e\nset -u\nsource \"#{flutter_export_environment_path}\"\nexport VERBOSE_SCRIPT_LOGGING=1 && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/xcode_backend.sh build",
:execution_position => :before_compile
:execution_position => :before_compile
Copier
Copié
Copier
Copié
end
# .flutter-plugins-dependencies format documented at
# https://flutter.dev/go/plugins-list-migration
def flutter_parse_dependencies_file_for_ios_plugin(file)
file_path = File.expand_path(file)
return [] unless File.exists? file_path
dependencies_file = File.read(file)
dependencies_hash = JSON.parse(dependencies_file)
Copier
Copié
Copier
Copié
# dependencies_hash.dig('plugins', 'ios') not available until Ruby 2.3
# Embed App.framework AND Flutter.framework.
return [] unless dependencies_hash.has_key?('plugins')
script_phase :name => 'Embed Flutter Build my_flutter Script',
return [] unless dependencies_hash['plugins'].has_key?('ios')
:script => "set -e\nset -u\nsource \"#{flutter_export_environment_path}\"\nexport VERBOSE_SCRIPT_LOGGING=1 && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/xcode_backend.sh embed_and_thin",
dependencies_hash['plugins']['ios'] || []
:execution_position => :after_compile
end
end
def flutter_root
def flutter_root
generated_xcode_build_settings_path = File.expand_path(File.join('..', '..', 'Flutter', 'Generated.xcconfig'), __FILE__)
generated_xcode_build_settings_path = File.expand_path(File.join('..', '..', 'Flutter', 'Generated.xcconfig'), __FILE__)
unless File.exist?(generated_xcode_build_settings_path)
unless File.exist?(generated_xcode_build_settings_path)
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
end
end
File.foreach(generated_xcode_build_settings_path) do |line|
File.foreach(generated_xcode_build_settings_path) do |line|
matches = line.match(/FLUTTER_ROOT\=(.*)/)
matches = line.match(/FLUTTER_ROOT\=(.*)/)
return matches[1].strip if matches
return matches[1].strip if matches
end
end
# This should never happen...
# This should never happen...
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get"
end
end
Copier
Copié
Copier
Copié
# Run the post-install script to set build settings on Flutter plugins.
#
# @example
# post_install do |installer|
# flutter_post_install(installer)
# end
# @param [Pod::Installer] installer Passed to the `post_install` block.
# @param [boolean] skip Do not change any build configurations. Set to suppress
# "Missing `flutter_post_install" exception.
def flutter_post_install(installer, skip: false)
return if skip
installer.pods_project.targets.each do |target|
target.build_configurations.each do |build_configuration|
# flutter_additional_ios_build_settings is in Flutter root podhelper.rb
flutter_additional_ios_build_settings(target)
end
end
end
Différences enregistrées
Texte d'origine
Ouvrir un fichier
# 2.8.1 # Copyright 2014 The Flutter Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. require 'json' # Install pods needed to embed Flutter application, Flutter engine, and plugins # from the host application Podfile. # # @example # target 'MyApp' do # install_all_flutter_pods 'my_flutter' # end # @param [String] flutter_application_path Path of the root directory of the Flutter module. # Optional, defaults to two levels up from the directory of this script. # MyApp/my_flutter/.ios/Flutter/../.. def install_all_flutter_pods(flutter_application_path = nil) flutter_application_path ||= File.join('..', '..') install_flutter_engine_pod install_flutter_plugin_pods(flutter_application_path) install_flutter_application_pod(flutter_application_path) end # Install Flutter engine pod. # # @example # target 'MyApp' do # install_flutter_engine_pod # end def install_flutter_engine_pod current_directory = File.expand_path('..', __FILE__) engine_dir = File.expand_path('engine', current_directory) framework_name = 'Flutter.xcframework' copied_engine = File.expand_path(framework_name, engine_dir) if !File.exist?(copied_engine) # Copy the debug engine to have something to link against if the xcode backend script has not run yet. # CocoaPods will not embed the framework on pod install (before any build phases can generate) if the dylib does not exist. release_framework_dir = File.join(flutter_root, 'bin', 'cache', 'artifacts', 'engine', 'ios-release') unless Dir.exist?(release_framework_dir) # iOS artifacts have not been downloaded. raise "#{release_framework_dir} must exist. Make sure \"flutter precache --ios\" has been run at least once" end FileUtils.cp_r(File.join(release_framework_dir, framework_name), engine_dir) end # Keep pod path relative so it can be checked into Podfile.lock. # Process will be run from project directory. engine_pathname = Pathname.new engine_dir # defined_in_file is set by CocoaPods and is a Pathname to the Podfile. project_directory_pathname = defined_in_file.dirname relative = engine_pathname.relative_path_from project_directory_pathname pod 'Flutter', :path => relative.to_s, :inhibit_warnings => true end # Install Flutter plugin pods. # # @example # target 'MyApp' do # install_flutter_plugin_pods 'my_flutter' # end # @param [String] flutter_application_path Path of the root directory of the Flutter module. # Optional, defaults to two levels up from the directory of this script. # MyApp/my_flutter/.ios/Flutter/../.. def install_flutter_plugin_pods(flutter_application_path) flutter_application_path ||= File.join('..', '..') # Keep pod path relative so it can be checked into Podfile.lock. # Process will be run from project directory. ios_project_directory_pathname = Pathname.new File.expand_path(File.join('..', '..'), __FILE__) # defined_in_file is set by CocoaPods and is a Pathname to the Podfile. project_directory_pathname = defined_in_file.dirname relative = ios_project_directory_pathname.relative_path_from project_directory_pathname pod 'FlutterPluginRegistrant', :path => File.join(relative, 'Flutter', 'FlutterPluginRegistrant'), :inhibit_warnings => true symlinks_dir = File.join(relative, '.symlinks', 'plugins') FileUtils.mkdir_p(symlinks_dir) plugins_file = File.expand_path('.flutter-plugins-dependencies', flutter_application_path) plugin_pods = flutter_parse_dependencies_file_for_ios_plugin(plugins_file) plugin_pods.each do |plugin_hash| plugin_name = plugin_hash['name'] plugin_path = plugin_hash['path'] if (plugin_name && plugin_path) symlink = File.join(symlinks_dir, plugin_name) FileUtils.rm_f(symlink) File.symlink(plugin_path, symlink) pod plugin_name, :path => File.join(symlink, 'ios'), :inhibit_warnings => true end end end # Install Flutter application pod. # # @example # target 'MyApp' do # install_flutter_application_pod '../flutter_settings_repository' # end # @param [String] flutter_application_path Path of the root directory of the Flutter module. # Optional, defaults to two levels up from the directory of this script. # MyApp/my_flutter/.ios/Flutter/../.. def install_flutter_application_pod(flutter_application_path) current_directory_pathname = Pathname.new File.expand_path('..', __FILE__) app_framework_dir = File.expand_path('App.framework', current_directory_pathname.to_path) app_framework_dylib = File.join(app_framework_dir, 'App') if !File.exist?(app_framework_dylib) # Fake an App.framework to have something to link against if the xcode backend script has not run yet. # CocoaPods will not embed the framework on pod install (before any build phases can run) if the dylib does not exist. # Create a dummy dylib. FileUtils.mkdir_p(app_framework_dir) `echo "static const int Moo = 88;" | xcrun clang -x c -dynamiclib -o "#{app_framework_dylib}" -` end # Keep pod and script phase paths relative so they can be checked into source control. # Process will be run from project directory. # defined_in_file is set by CocoaPods and is a Pathname to the Podfile. project_directory_pathname = defined_in_file.dirname relative = current_directory_pathname.relative_path_from project_directory_pathname pod 'talabat', :path => relative.to_s, :inhibit_warnings => true flutter_export_environment_path = File.join('${SRCROOT}', relative, 'flutter_export_environment.sh'); script_phase :name => 'Run Flutter Build talabat Script', :script => "set -e\nset -u\nsource \"#{flutter_export_environment_path}\"\nexport VERBOSE_SCRIPT_LOGGING=1 && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/xcode_backend.sh build", :execution_position => :before_compile end # .flutter-plugins-dependencies format documented at # https://flutter.dev/go/plugins-list-migration def flutter_parse_dependencies_file_for_ios_plugin(file) file_path = File.expand_path(file) return [] unless File.exists? file_path dependencies_file = File.read(file) dependencies_hash = JSON.parse(dependencies_file) # dependencies_hash.dig('plugins', 'ios') not available until Ruby 2.3 return [] unless dependencies_hash.has_key?('plugins') return [] unless dependencies_hash['plugins'].has_key?('ios') dependencies_hash['plugins']['ios'] || [] end def flutter_root generated_xcode_build_settings_path = File.expand_path(File.join('..', '..', 'Flutter', 'Generated.xcconfig'), __FILE__) unless File.exist?(generated_xcode_build_settings_path) raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" end File.foreach(generated_xcode_build_settings_path) do |line| matches = line.match(/FLUTTER_ROOT\=(.*)/) return matches[1].strip if matches end # This should never happen... raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" end
Texte modifié
Ouvrir un fichier
# 3.3.7 # Copyright 2014 The Flutter Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. require 'json' # Install pods needed to embed Flutter application, Flutter engine, and plugins # from the host application Podfile. # # @example # target 'MyApp' do # install_all_flutter_pods 'my_flutter' # end # @param [String] flutter_application_path Path of the root directory of the Flutter module. # Optional, defaults to two levels up from the directory of this script. # MyApp/my_flutter/.ios/Flutter/../.. def install_all_flutter_pods(flutter_application_path = nil) # defined_in_file is a Pathname to the Podfile set by CocoaPods. pod_contents = File.read(defined_in_file) unless pod_contents.include? 'flutter_post_install' puts <<~POSTINSTALL Add `flutter_post_install(installer)` to your Podfile `post_install` block to build Flutter plugins: post_install do |installer| flutter_post_install(installer) end POSTINSTALL raise 'Missing `flutter_post_install(installer)` in Podfile `post_install` block' end require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) flutter_application_path ||= File.join('..', '..') install_flutter_engine_pod(flutter_application_path) install_flutter_plugin_pods(flutter_application_path) install_flutter_application_pod(flutter_application_path) end # Install Flutter engine pod. # # @example # target 'MyApp' do # install_flutter_engine_pod # end def install_flutter_engine_pod(flutter_application_path = nil) flutter_application_path ||= File.join('..', '..') ios_application_path = File.join(flutter_application_path, '.ios') # flutter_install_ios_engine_pod is in Flutter root podhelper.rb flutter_install_ios_engine_pod(ios_application_path) end # Install Flutter plugin pods. # # @example # target 'MyApp' do # install_flutter_plugin_pods 'my_flutter' # end # @param [String] flutter_application_path Path of the root directory of the Flutter module. # Optional, defaults to two levels up from the directory of this script. # MyApp/my_flutter/.ios/Flutter/../.. def install_flutter_plugin_pods(flutter_application_path) flutter_application_path ||= File.join('..', '..') ios_application_path = File.join(flutter_application_path, '.ios') # flutter_install_plugin_pods is in Flutter root podhelper.rb flutter_install_plugin_pods(ios_application_path, '.symlinks', 'ios') # Keep pod path relative so it can be checked into Podfile.lock. relative = flutter_relative_path_from_podfile(ios_application_path) pod 'FlutterPluginRegistrant', :path => File.join(relative, 'Flutter', 'FlutterPluginRegistrant'), :inhibit_warnings => true end # Install Flutter application pod. # # @example # target 'MyApp' do # install_flutter_application_pod '../flutter_settings_repository' # end # @param [String] flutter_application_path Path of the root directory of the Flutter module. # Optional, defaults to two levels up from the directory of this script. # MyApp/my_flutter/.ios/Flutter/../.. def install_flutter_application_pod(flutter_application_path) flutter_application_path ||= File.join('..', '..') export_script_directory = File.join(flutter_application_path, '.ios', 'Flutter') # Keep script phase paths relative so they can be checked into source control. relative = flutter_relative_path_from_podfile(export_script_directory) flutter_export_environment_path = File.join('${SRCROOT}', relative, 'flutter_export_environment.sh'); # Compile App.framework and move it and Flutter.framework to "BUILT_PRODUCTS_DIR" script_phase :name => 'Run Flutter Build my_flutter Script', :script => "set -e\nset -u\nsource \"#{flutter_export_environment_path}\"\nexport VERBOSE_SCRIPT_LOGGING=1 && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/xcode_backend.sh build", :execution_position => :before_compile # Embed App.framework AND Flutter.framework. script_phase :name => 'Embed Flutter Build my_flutter Script', :script => "set -e\nset -u\nsource \"#{flutter_export_environment_path}\"\nexport VERBOSE_SCRIPT_LOGGING=1 && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/xcode_backend.sh embed_and_thin", :execution_position => :after_compile end def flutter_root generated_xcode_build_settings_path = File.expand_path(File.join('..', '..', 'Flutter', 'Generated.xcconfig'), __FILE__) unless File.exist?(generated_xcode_build_settings_path) raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first" end File.foreach(generated_xcode_build_settings_path) do |line| matches = line.match(/FLUTTER_ROOT\=(.*)/) return matches[1].strip if matches end # This should never happen... raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Generated.xcconfig, then run flutter pub get" end # Run the post-install script to set build settings on Flutter plugins. # # @example # post_install do |installer| # flutter_post_install(installer) # end # @param [Pod::Installer] installer Passed to the `post_install` block. # @param [boolean] skip Do not change any build configurations. Set to suppress # "Missing `flutter_post_install" exception. def flutter_post_install(installer, skip: false) return if skip installer.pods_project.targets.each do |target| target.build_configurations.each do |build_configuration| # flutter_additional_ios_build_settings is in Flutter root podhelper.rb flutter_additional_ios_build_settings(target) end end end
Trouver la différence