xcodeproj 1.2.0 → 1.3.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 +4 -4
- data/lib/xcodeproj/constants.rb +18 -17
- data/lib/xcodeproj/gem_version.rb +1 -1
- data/lib/xcodeproj/project.rb +1 -1
- data/lib/xcodeproj/project/object/target_dependency.rb +11 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0c5baea015a74f760845e1088a8248cea2a4e9a
|
4
|
+
data.tar.gz: f2304115edad58e7babba2267ce0155f83415552
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58bf0a3f1696676cea1bcd991207b57e954a6aa77a216aa35a58c4a56e86c1804189cc676d8add8c1e811710314c3cbb2f66635522c1bb25514c4515aa274284
|
7
|
+
data.tar.gz: 34f5300506484186ea25e7b6720dc1c84339579adefa28f380d6c25b6db02c4a458fd232be25058a7998777da5dae22acc5a5413b46f8bc4f43e0f6260d08bba
|
data/lib/xcodeproj/constants.rb
CHANGED
@@ -106,23 +106,24 @@ module Xcodeproj
|
|
106
106
|
# @return [Hash] The uniform type identifier of various product types.
|
107
107
|
#
|
108
108
|
PRODUCT_TYPE_UTI = {
|
109
|
-
:application
|
110
|
-
:framework
|
111
|
-
:dynamic_library
|
112
|
-
:static_library
|
113
|
-
:bundle
|
114
|
-
:octest_bundle
|
115
|
-
:unit_test_bundle
|
116
|
-
:ui_test_bundle
|
117
|
-
:app_extension
|
118
|
-
:command_line_tool
|
119
|
-
:watch_app
|
120
|
-
:watch2_app
|
121
|
-
:watch_extension
|
122
|
-
:watch2_extension
|
123
|
-
:tv_extension
|
124
|
-
:
|
125
|
-
:
|
109
|
+
:application => 'com.apple.product-type.application',
|
110
|
+
:framework => 'com.apple.product-type.framework',
|
111
|
+
:dynamic_library => 'com.apple.product-type.library.dynamic',
|
112
|
+
:static_library => 'com.apple.product-type.library.static',
|
113
|
+
:bundle => 'com.apple.product-type.bundle',
|
114
|
+
:octest_bundle => 'com.apple.product-type.bundle',
|
115
|
+
:unit_test_bundle => 'com.apple.product-type.bundle.unit-test',
|
116
|
+
:ui_test_bundle => 'com.apple.product-type.bundle.ui-testing',
|
117
|
+
:app_extension => 'com.apple.product-type.app-extension',
|
118
|
+
:command_line_tool => 'com.apple.product-type.tool',
|
119
|
+
:watch_app => 'com.apple.product-type.application.watchapp',
|
120
|
+
:watch2_app => 'com.apple.product-type.application.watchapp2',
|
121
|
+
:watch_extension => 'com.apple.product-type.watchkit-extension',
|
122
|
+
:watch2_extension => 'com.apple.product-type.watchkit2-extension',
|
123
|
+
:tv_extension => 'com.apple.product-type.tv-app-extension',
|
124
|
+
:messages_application => 'com.apple.product-type.application.messages',
|
125
|
+
:messages_extension => 'com.apple.product-type.app-extension.messages',
|
126
|
+
:sticker_pack => 'com.apple.product-type.app-extension.messages-sticker-pack',
|
126
127
|
}.freeze
|
127
128
|
|
128
129
|
# @return [Hash] The extensions or the various product UTIs.
|
data/lib/xcodeproj/project.rb
CHANGED
@@ -556,7 +556,7 @@ module Xcodeproj
|
|
556
556
|
def host_targets_for_embedded_target(embedded_target)
|
557
557
|
native_targets.select do |native_target|
|
558
558
|
((embedded_target.uuid != native_target.uuid) &&
|
559
|
-
(native_target.dependencies.map(&:
|
559
|
+
(native_target.dependencies.map(&:native_target_uuid).include? embedded_target.uuid))
|
560
560
|
end
|
561
561
|
end
|
562
562
|
|
@@ -39,6 +39,17 @@ module Xcodeproj
|
|
39
39
|
return target_proxy.remote_info if target_proxy
|
40
40
|
end
|
41
41
|
|
42
|
+
# @return [String] uuid of the target, if the dependency
|
43
|
+
# is a native target, otherwise the uuid of the
|
44
|
+
# target in the sub-project if the dependency is
|
45
|
+
# a target proxy
|
46
|
+
#
|
47
|
+
def native_target_uuid
|
48
|
+
return target.uuid if target
|
49
|
+
return target_proxy.remote_global_id_string if target_proxy
|
50
|
+
raise 'Expected target or target_proxy, from which to fetch a uuid'
|
51
|
+
end
|
52
|
+
|
42
53
|
# @note This override is necessary because Xcode allows for circular
|
43
54
|
# target dependencies.
|
44
55
|
#
|
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.
|
4
|
+
version: 1.3.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: 2016-
|
11
|
+
date: 2016-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
148
|
version: '0'
|
149
149
|
requirements: []
|
150
150
|
rubyforge_project:
|
151
|
-
rubygems_version: 2.
|
151
|
+
rubygems_version: 2.4.5.1
|
152
152
|
signing_key:
|
153
153
|
specification_version: 3
|
154
154
|
summary: Create and modify Xcode projects from Ruby.
|