Class: PodAlexandria::UserOptions
- Inherits:
-
Object
- Object
- PodAlexandria::UserOptions
- Defined in:
- lib/cocoapods-alexandria/helper/user_options.rb
Instance Attribute Summary collapse
-
#disable_bitcode ⇒ Object
readonly
Returns the value of attribute disable_bitcode.
-
#do_not_embed_dependencies_in_targets ⇒ Object
readonly
Returns the value of attribute do_not_embed_dependencies_in_targets.
-
#environment_configs ⇒ Object
readonly
Returns the value of attribute environment_configs.
-
#force_bitcode ⇒ Object
readonly
Returns the value of attribute force_bitcode.
-
#minimum_ios_version ⇒ Object
readonly
Returns the value of attribute minimum_ios_version.
-
#xcodegen_dependencies_file ⇒ Object
readonly
Returns the value of attribute xcodegen_dependencies_file.
Instance Method Summary collapse
- #allow_embed_dependencies_for(target) ⇒ Object
- #environment_configs_for(target) ⇒ Object
-
#initialize(installer_context, user_options) ⇒ UserOptions
constructor
A new instance of UserOptions.
Constructor Details
#initialize(installer_context, user_options) ⇒ UserOptions
Returns a new instance of UserOptions.
10 11 12 13 14 15 16 17 |
# File 'lib/cocoapods-alexandria/helper/user_options.rb', line 10 def initialize(installer_context, ) @environment_configs = .fetch('environment_configs', default_configurations(installer_context)) @disable_bitcode = .fetch('disable_bitcode', true) @force_bitcode = .fetch('force_bitcode', false) @minimum_ios_version = Gem::Version.new(.fetch('minimum_ios_version', '11.0')) @xcodegen_dependencies_file = .fetch('xcodegen_dependencies_file', 'projectDependencies.yml') @do_not_embed_dependencies_in_targets = .fetch('do_not_embed_dependencies_in_targets', []) end |
Instance Attribute Details
#disable_bitcode ⇒ Object (readonly)
Returns the value of attribute disable_bitcode.
4 5 6 |
# File 'lib/cocoapods-alexandria/helper/user_options.rb', line 4 def disable_bitcode @disable_bitcode end |
#do_not_embed_dependencies_in_targets ⇒ Object (readonly)
Returns the value of attribute do_not_embed_dependencies_in_targets.
8 9 10 |
# File 'lib/cocoapods-alexandria/helper/user_options.rb', line 8 def @do_not_embed_dependencies_in_targets end |
#environment_configs ⇒ Object (readonly)
Returns the value of attribute environment_configs.
3 4 5 |
# File 'lib/cocoapods-alexandria/helper/user_options.rb', line 3 def environment_configs @environment_configs end |
#force_bitcode ⇒ Object (readonly)
Returns the value of attribute force_bitcode.
5 6 7 |
# File 'lib/cocoapods-alexandria/helper/user_options.rb', line 5 def force_bitcode @force_bitcode end |
#minimum_ios_version ⇒ Object (readonly)
Returns the value of attribute minimum_ios_version.
6 7 8 |
# File 'lib/cocoapods-alexandria/helper/user_options.rb', line 6 def minimum_ios_version @minimum_ios_version end |
#xcodegen_dependencies_file ⇒ Object (readonly)
Returns the value of attribute xcodegen_dependencies_file.
7 8 9 |
# File 'lib/cocoapods-alexandria/helper/user_options.rb', line 7 def xcodegen_dependencies_file @xcodegen_dependencies_file end |
Instance Method Details
#allow_embed_dependencies_for(target) ⇒ Object
23 24 25 |
# File 'lib/cocoapods-alexandria/helper/user_options.rb', line 23 def (target) !.include?(normalize_target(target)) end |
#environment_configs_for(target) ⇒ Object
19 20 21 |
# File 'lib/cocoapods-alexandria/helper/user_options.rb', line 19 def environment_configs_for(target) environment_configs[normalize_target(target)] end |