Class: PodBuilder::XcodeBuildSettings
- Inherits:
-
Object
- Object
- PodBuilder::XcodeBuildSettings
- Defined in:
- lib/pod_builder/rome/post_install.rb
Instance Attribute Summary collapse
-
#build_destination ⇒ Object
readonly
Returns the value of attribute build_destination.
-
#configuration ⇒ Object
readonly
Returns the value of attribute configuration.
-
#platform_name ⇒ Object
readonly
Returns the value of attribute platform_name.
Instance Method Summary collapse
-
#initialize(platform_name, configuration) ⇒ XcodeBuildSettings
constructor
A new instance of XcodeBuildSettings.
Constructor Details
#initialize(platform_name, configuration) ⇒ XcodeBuildSettings
Returns a new instance of XcodeBuildSettings.
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/pod_builder/rome/post_install.rb', line 11 def initialize(platform_name, configuration) @platform_name = platform_name @configuration = configuration case platform_name when "iphoneos" then @build_destination = "generic/platform=iOS" when "iphonesimulator" then @build_destination = "generic/platform=iOS Simulator" when "catalyst" then @build_destination = "platform=macOS,arch=x86_64,variant=Mac Catalyst" when "macos" then @build_destination = "generic/platform=OS X" when "tvos" then @build_destination = "generic/platform=tvOS" when "tvossimulator" then @build_destination = "generic/platform=tvOS Simulator" when "watchos" then @build_destination = "generic/platform=watchOS" when "watchossimulator" then @build_destination = "generic/platform=watchOS Simulator" else raise "\n\nUnknown platform '#{platform_name}'\n".red end end |
Instance Attribute Details
#build_destination ⇒ Object (readonly)
Returns the value of attribute build_destination.
8 9 10 |
# File 'lib/pod_builder/rome/post_install.rb', line 8 def build_destination @build_destination end |
#configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
9 10 11 |
# File 'lib/pod_builder/rome/post_install.rb', line 9 def configuration @configuration end |
#platform_name ⇒ Object (readonly)
Returns the value of attribute platform_name.
7 8 9 |
# File 'lib/pod_builder/rome/post_install.rb', line 7 def platform_name @platform_name end |