Class: Pod::Installer

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-catalyst-support/pod/installer.rb

Instance Method Summary collapse

Instance Method Details

#configure_catalystObject


7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/cocoapods-catalyst-support/pod/installer.rb', line 7

def configure_catalyst
  catalyst_pods_to_remove = $catalyst_configuration.ios_dependencies
  if !catalyst_pods_to_remove.empty? 
    remove_dependencies catalyst_pods_to_remove, OSPlatform.macos, OSPlatform.ios
  end

  ios_pods_to_remove = $catalyst_configuration.mac_dependencies
  if !ios_pods_to_remove.empty? 
    remove_dependencies ios_pods_to_remove, OSPlatform.ios, OSPlatform.macos
  end

  unless ios_pods_to_remove.empty? && catalyst_pods_to_remove.empty?
    puts "Catalyst => Done! Your Catalyst dependencies are ready to go".green
  else
    puts "Catalyst => Nothing to configure"
  end
end