xcodeproj 1.10.0 → 1.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3c97e1a1e73c9358014593b72f840b6f82f0560c525aee2a98f11a482bac7887
4
- data.tar.gz: 35f3b030a485fadcb4d65a5f949805d29ef94f66815b72578485a74993a01135
3
+ metadata.gz: 86066ac311d73f81d66b43b44741446f53537c38d9954f8623cdb4e51e1a8743
4
+ data.tar.gz: 58cd72db90acc368f9444960cee63f56b3e96fc659f133952b3205655846a74c
5
5
  SHA512:
6
- metadata.gz: d782cfd8c7f9b80303a100d277969c69738a037d8d86388292c5fd84a443686100f7a18681d68752fa1abae946714ef4dd413e957de14ae6488f2fa0c6bd3de6
7
- data.tar.gz: 12ec3dbcee3d913fc1b92bef15a6f65a1ff90866bd92295eb674574de9db3b234e79cba17fc8d8f6c4d4ddb1188d46894f0483be25e25fa217c6cbc750890b5d
6
+ metadata.gz: 91b9005240446ca9dd35a96839c84806196aff7823c1ef1ba0bf8b1ba14bf559ea93bf657cb862ae21020955604b6ba7c3d8766b79a8e296568e6b74f461586d
7
+ data.tar.gz: ca366977644fd705b0824a9e36d4a367ac3d36062d4ab6056a8b9a394486a23c8c1d694b7da4dc6a2752e685d18571b7d3d9c5026ac0ad3a2d9e4b9cf3aba394
@@ -55,13 +55,13 @@ module Xcodeproj
55
55
  # The other linker flags value.
56
56
  #
57
57
  def self.split(flags)
58
- flags.strip.shellsplit.map do |string|
58
+ flags.strip.shellsplit.flat_map do |string|
59
59
  if string =~ /\A-l.+/
60
60
  ['-l', string[2..-1]]
61
61
  else
62
62
  string
63
63
  end
64
- end.flatten
64
+ end
65
65
  end
66
66
  end
67
67
  end
@@ -150,6 +150,7 @@ module Xcodeproj
150
150
  :command_line_tool => 'com.apple.product-type.tool',
151
151
  :watch_app => 'com.apple.product-type.application.watchapp',
152
152
  :watch2_app => 'com.apple.product-type.application.watchapp2',
153
+ :watch2_app_container => 'com.apple.product-type.application.watchapp2-container',
153
154
  :watch_extension => 'com.apple.product-type.watchkit-extension',
154
155
  :watch2_extension => 'com.apple.product-type.watchkit2-extension',
155
156
  :tv_extension => 'com.apple.product-type.tv-app-extension',
@@ -162,17 +163,18 @@ module Xcodeproj
162
163
  # @return [Hash] The extensions or the various product UTIs.
163
164
  #
164
165
  PRODUCT_UTI_EXTENSIONS = {
165
- :application => 'app',
166
- :framework => 'framework',
167
- :dynamic_library => 'dylib',
168
- :static_library => 'a',
169
- :bundle => 'bundle',
170
- :octest_bundle => 'octest',
171
- :unit_test_bundle => 'xctest',
172
- :ui_test_bundle => 'xctest',
173
- :app_extension => 'appex',
174
- :watch2_extension => 'appex',
175
- :watch2_app => 'app',
166
+ :application => 'app',
167
+ :framework => 'framework',
168
+ :dynamic_library => 'dylib',
169
+ :static_library => 'a',
170
+ :bundle => 'bundle',
171
+ :octest_bundle => 'octest',
172
+ :unit_test_bundle => 'xctest',
173
+ :ui_test_bundle => 'xctest',
174
+ :app_extension => 'appex',
175
+ :watch2_extension => 'appex',
176
+ :watch2_app => 'app',
177
+ :watch2_app_container => 'app',
176
178
  }.freeze
177
179
 
178
180
  # @return [Hash] The common build settings grouped by platform, and build
@@ -1,5 +1,5 @@
1
1
  module Xcodeproj
2
2
  # The version of the xcodeproj gem.
3
3
  #
4
- VERSION = '1.10.0'.freeze unless defined? Xcodeproj::VERSION
4
+ VERSION = '1.11.0'.freeze unless defined? Xcodeproj::VERSION
5
5
  end
@@ -589,7 +589,7 @@ module Xcodeproj
589
589
  #
590
590
  def embedded_targets_in_native_target(native_target)
591
591
  native_targets.select do |target|
592
- host_targets_for_embedded_target(target).map(&:uuid).include? native_target.uuid
592
+ host_targets_for_embedded_target(target).any? { |host| host.uuid == native_target.uuid }
593
593
  end
594
594
  end
595
595
 
@@ -139,7 +139,7 @@ module Xcodeproj
139
139
  inherited = config_value || default
140
140
 
141
141
  return build_setting_value.gsub(Regexp.union(Constants::INHERITED_KEYWORDS), inherited) if build_setting_value.is_a? String
142
- build_setting_value.map { |value| Constants::INHERITED_KEYWORDS.include?(value) ? inherited : value }.flatten
142
+ build_setting_value.flat_map { |value| Constants::INHERITED_KEYWORDS.include?(value) ? inherited : value }
143
143
  end
144
144
 
145
145
  def resolve_variable_substitution(key, value, root_target)
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  require 'xcodeproj/project/object/helpers/groupable_helper'
2
3
 
3
4
  module Xcodeproj
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module Xcodeproj
2
3
  class Project
3
4
  module Object
@@ -60,7 +60,7 @@ module Xcodeproj
60
60
  if target_val.is_a? String
61
61
  target_val.gsub(Regexp.union(Constants::INHERITED_KEYWORDS), proj_val)
62
62
  else
63
- target_val.map { |value| Constants::INHERITED_KEYWORDS.include?(value) ? proj_val : value }.flatten
63
+ target_val.flat_map { |value| Constants::INHERITED_KEYWORDS.include?(value) ? proj_val : value }
64
64
  end
65
65
  else
66
66
  target_val || proj_val
@@ -26,6 +26,10 @@ module Xcodeproj
26
26
  #
27
27
  attribute :name, String
28
28
 
29
+ # @return [String] the platform filter for this target dependency.
30
+ #
31
+ attribute :platform_filter, String
32
+
29
33
  public
30
34
 
31
35
  # @!group AbstractObject Hooks
@@ -224,8 +224,9 @@ module Xcodeproj
224
224
  cl.build_configurations << release_conf
225
225
  cl.build_configurations << debug_conf
226
226
 
227
+ existing_configurations = cl.build_configurations.map(&:name)
227
228
  project.build_configurations.each do |configuration|
228
- next if cl.build_configurations.map(&:name).include?(configuration.name)
229
+ next if existing_configurations.include?(configuration.name)
229
230
 
230
231
  new_config = project.new(XCBuildConfiguration)
231
232
  new_config.name = configuration.name
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcodeproj
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.0
4
+ version: 1.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eloy Duran
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-12 00:00:00.000000000 Z
11
+ date: 2019-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: atomos
@@ -183,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
183
  - !ruby/object:Gem::Version
184
184
  version: '0'
185
185
  requirements: []
186
- rubygems_version: 3.0.1
186
+ rubygems_version: 3.0.4
187
187
  signing_key:
188
188
  specification_version: 3
189
189
  summary: Create and modify Xcode projects from Ruby.