scripts/gha/integration_testing/xcode_tool.rb
# This only involves patching a plist file, which should be moved to the
# Python tool.
This only involves patching a plist file, which should be moved to the
Python tool.
This only involves patching a plist file which should be moved to the Python tool .
def enable_remote_notification
  puts 'Adding remote-notification to UIBackgroundModes...'
  info_plist_path = "#@xcode_project_dir/Info.plist"
  info_plist =  Xcodeproj::Plist.read_from_path(info_plist_path)
  url_types = {'UIBackgroundModes' => ['remote-notification']}
  Xcodeproj::Plist.write_to_path(info_plist.merge(url_types), info_plist_path)
  puts 'Finished adding remote-notification.'
end
def enable_remote_notification puts 'Adding remote-notification to UIBackgroundModes...' info_plist_path = "#@xcode_project_dir/Info.plist" info_plist = Xcodeproj :: Plist . read_from_path ( info_plist_path ) url_types = { 'UIBackgroundModes' => [ 'remote-notification' ] } Xcodeproj :: Plist . write_to_path ( info_plist . merge ( url_types ) , info_plist_path ) puts 'Finished adding remote-notification.' end
This only involves patching a plist file, which should be moved to the
Python tool.
This only involves patching a plist file which should be moved to the Python tool .