Sha256: 85777eb350ef7199825652aa73fafcc942addc5336f8a16af23750c409cae567

Contents?: true

Size: 597 Bytes

Versions: 9

Compression:

Stored size: 597 Bytes

Contents

require 'xcodeproject/node'

module XcodeProject
	class XCConfigurationList < Node
		attr_reader :default_configuration_name
		attr_reader :default_configuration_is_visible

		def initialize (root, uuid, data)
			super(root, uuid, data)

			@default_configuration_name = data['defaultConfigurationName']
			@default_configuration_is_visible = data['defaultConfigurationIsVisible']
		end

		def build_configuration (name)
			build_configurations.select {|obj| obj.name == name }.first
		end

		def build_configurations
			data['buildConfigurations'].map {|uuid| root.object!(uuid) }
		end
	end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
xcodeproject-0.3.10 lib/xcodeproject/xc_configuration_list.rb
xcodeproject-0.3.9 lib/xcodeproject/xc_configuration_list.rb
xcodeproject-0.3.8 lib/xcodeproject/xc_configuration_list.rb
xcodeproject-0.3.6 lib/xcodeproject/xc_configuration_list.rb
xcodeproject-0.3.5 lib/xcodeproject/xc_configuration_list.rb
xcodeproject-0.3.1 lib/xcodeproject/xc_configuration_list.rb
xcodeproject-0.3.0 lib/xcodeproject/xc_configuration_list.rb
xcodeproject-0.2.4 lib/xcodeproject/xc_configuration_list.rb
xcodeproject-0.2.3 lib/xcodeproject/xc_configuration_list.rb