xcodeproj 1.8.2 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf4b320347ecf2c903ac8f9d6332b54fff22c235eed6965ae757ccd570b49f10
4
- data.tar.gz: 8395e067fc32058cb86d752ea6d25fd8275cf9a720568790df4068f156d285fa
3
+ metadata.gz: d75afee284a642e23fb795b6b34a6c4e486126a2843aefc1bec368f64a3a913d
4
+ data.tar.gz: be3b241febabcee98279667700d8e852394bd85ae611ae64de5fa197b2e2d6c2
5
5
  SHA512:
6
- metadata.gz: c59157fade59b0365026e8281b75edb7cdfe3bdfd06ab4e56f2f561ec83cecf09fe10632d33456548ee955455120d920c11a90c157dcd35e442decb310084e79
7
- data.tar.gz: 075dddb7c418949c0a400ed7576db622ed74aae47e1a953fe739524d4df5d718c831d911b82c80f999b3978cf43a8b4e395f184fe939918d58f42a0118f19ecb
6
+ metadata.gz: f71583b1d4b0478bfb4fc99f9a6e17e6016b17e8c7454c2d5b794709f534eda1eee860e3cbf8cbe979291b497f9540e3049c5c58fc0bd71364511f52f110559c
7
+ data.tar.gz: 90900a1315731d9b92affef9d749a135c75834e8a3d01d1efca3c955899cc6ad0e550843dafbe2043e0789dd5bf72ecb0e526972dc0337dac7896c14230518d6
@@ -4,7 +4,7 @@ module Xcodeproj
4
4
  module Constants
5
5
  # @return [String] The last known iOS SDK (stable).
6
6
  #
7
- LAST_KNOWN_IOS_SDK = '12.0'
7
+ LAST_KNOWN_IOS_SDK = '12.2'
8
8
 
9
9
  # @return [String] The last known OS X SDK (stable).
10
10
  #
@@ -12,11 +12,11 @@ module Xcodeproj
12
12
 
13
13
  # @return [String] The last known tvOS SDK (stable).
14
14
  #
15
- LAST_KNOWN_TVOS_SDK = '12.0'
15
+ LAST_KNOWN_TVOS_SDK = '12.2'
16
16
 
17
17
  # @return [String] The last known watchOS SDK (stable).
18
18
  #
19
- LAST_KNOWN_WATCHOS_SDK = '5.0'
19
+ LAST_KNOWN_WATCHOS_SDK = '5.2'
20
20
 
21
21
  # @return [String] The last known archive version to Xcodeproj.
22
22
  #
@@ -24,7 +24,7 @@ module Xcodeproj
24
24
 
25
25
  # @return [String] The last known Swift version (stable).
26
26
  #
27
- LAST_KNOWN_SWIFT_VERSION = '4.0'
27
+ LAST_KNOWN_SWIFT_VERSION = '5.0'
28
28
 
29
29
  # @return [String] The default object version for Xcodeproj.
30
30
  #
@@ -36,11 +36,11 @@ module Xcodeproj
36
36
 
37
37
  # @return [String] The last known object version to Xcodeproj.
38
38
  #
39
- LAST_UPGRADE_CHECK = '0930'
39
+ LAST_UPGRADE_CHECK = '1020'
40
40
 
41
41
  # @return [String] The last known object version to Xcodeproj.
42
42
  #
43
- LAST_SWIFT_UPGRADE_CHECK = '0930'
43
+ LAST_SWIFT_UPGRADE_CHECK = '1020'
44
44
 
45
45
  # @return [String] The version of `.xcscheme` files supported by Xcodeproj
46
46
  #
@@ -386,7 +386,7 @@ module Xcodeproj
386
386
  'GCC_WARN_UNUSED_VARIABLE' => 'YES',
387
387
  'MTL_FAST_MATH' => 'YES',
388
388
  'PRODUCT_NAME' => '$(TARGET_NAME)',
389
- 'SWIFT_VERSION' => '4.2',
389
+ 'SWIFT_VERSION' => '5.0',
390
390
  },
391
391
  :release => {
392
392
  'DEBUG_INFORMATION_FORMAT' => 'dwarf-with-dsym',
@@ -1,5 +1,5 @@
1
1
  module Xcodeproj
2
2
  # The version of the xcodeproj gem.
3
3
  #
4
- VERSION = '1.8.2'.freeze unless defined? Xcodeproj::VERSION
4
+ VERSION = '1.9.0'.freeze unless defined? Xcodeproj::VERSION
5
5
  end
@@ -34,7 +34,7 @@ module Xcodeproj
34
34
 
35
35
  # @return [String] the development region of the project.
36
36
  #
37
- attribute :development_region, String, 'English'
37
+ attribute :development_region, String, 'en'
38
38
 
39
39
  # @return [String] whether the project has scanned for encodings.
40
40
  #
@@ -46,6 +46,18 @@ module Xcodeproj
46
46
  fixup[object, attr]
47
47
  end
48
48
  end
49
+
50
+ if (project_attributes = target_project.root_object.attributes) && project_attributes['TargetAttributes']
51
+ project_attributes['TargetAttributes'] = Hash[project_attributes['TargetAttributes'].map do |target_uuid, attributes|
52
+ if test_target_id = attributes['TestTargetID']
53
+ attributes = attributes.merge('TestTargetID' => all_objects_by_uuid[test_target_id].uuid)
54
+ end
55
+ if target_object = all_objects_by_uuid[target_uuid]
56
+ target_uuid = target_object.uuid
57
+ end
58
+ [target_uuid, attributes]
59
+ end]
60
+ end
49
61
  end
50
62
 
51
63
  def generate_all_paths_by_objects(projects)
@@ -97,15 +97,17 @@ module Xcodeproj
97
97
  #
98
98
  def <<(path_or_reference)
99
99
  return unless @document && @document.respond_to?(:root)
100
- case
101
- when path_or_reference.is_a?(String)
100
+
101
+ case path_or_reference
102
+ when String
102
103
  project_file_reference = Xcodeproj::Workspace::FileReference.new(path_or_reference)
103
- when path_or_reference.is_a?(Xcodeproj::Workspace::FileReference)
104
+ when Xcodeproj::Workspace::FileReference
104
105
  project_file_reference = path_or_reference
105
106
  projpath = nil
106
107
  else
107
- raise ArgumentError, 'Input to the << operator must be a file path or FileReference'
108
+ raise ArgumentError, "Input to the << operator must be a file path or FileReference, got #{path_or_reference.inspect}"
108
109
  end
110
+
109
111
  @document.root.add_element(project_file_reference.to_node)
110
112
  load_schemes_from_project File.expand_path(projpath || project_file_reference.path)
111
113
  end
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.8.2
4
+ version: 1.9.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-03-27 00:00:00.000000000 Z
11
+ date: 2019-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: atomos