Permalink
Browse files

Merge pull request #400 from benasher44/basher_add_messages_applicati…

…on_type

Added messages application product type
  • Loading branch information...
2 parents 2f8cc93 + 386ea77 commit 4d2304afb8af45441ae1dfbe7b391fd1a5bdc61e @segiddins segiddins committed on GitHub Aug 3, 2016
Showing with 25 additions and 17 deletions.
  1. +4 −0 CHANGELOG.md
  2. +18 −17 lib/xcodeproj/constants.rb
  3. +3 −0 spec/project/object/native_target_spec.rb
View
4 CHANGELOG.md
@@ -4,6 +4,10 @@
##### Enhancements
+* Add new Messages application product types to constants.
+ [Ben Asher](https://github.com/benasher44)
+ [#400](https://github.com/CocoaPods/Xcodeproj/pull/400)
+
* Add support for identify the host of an embedded target,
when the embedded target belongs to a sub-project
[Ben Asher](https://github.com/benasher44)
View
35 lib/xcodeproj/constants.rb
@@ -106,23 +106,24 @@ module Constants
# @return [Hash] The uniform type identifier of various product types.
#
PRODUCT_TYPE_UTI = {
- :application => 'com.apple.product-type.application',
- :framework => 'com.apple.product-type.framework',
- :dynamic_library => 'com.apple.product-type.library.dynamic',
- :static_library => 'com.apple.product-type.library.static',
- :bundle => 'com.apple.product-type.bundle',
- :octest_bundle => 'com.apple.product-type.bundle',
- :unit_test_bundle => 'com.apple.product-type.bundle.unit-test',
- :ui_test_bundle => 'com.apple.product-type.bundle.ui-testing',
- :app_extension => 'com.apple.product-type.app-extension',
- :command_line_tool => 'com.apple.product-type.tool',
- :watch_app => 'com.apple.product-type.application.watchapp',
- :watch2_app => 'com.apple.product-type.application.watchapp2',
- :watch_extension => 'com.apple.product-type.watchkit-extension',
- :watch2_extension => 'com.apple.product-type.watchkit2-extension',
- :tv_extension => 'com.apple.product-type.tv-app-extension',
- :messages_extension => 'com.apple.product-type.app-extension.messages',
- :sticker_pack => 'com.apple.product-type.app-extension.messages-sticker-pack',
+ :application => 'com.apple.product-type.application',
+ :framework => 'com.apple.product-type.framework',
+ :dynamic_library => 'com.apple.product-type.library.dynamic',
+ :static_library => 'com.apple.product-type.library.static',
+ :bundle => 'com.apple.product-type.bundle',
+ :octest_bundle => 'com.apple.product-type.bundle',
+ :unit_test_bundle => 'com.apple.product-type.bundle.unit-test',
+ :ui_test_bundle => 'com.apple.product-type.bundle.ui-testing',
+ :app_extension => 'com.apple.product-type.app-extension',
+ :command_line_tool => 'com.apple.product-type.tool',
+ :watch_app => 'com.apple.product-type.application.watchapp',
+ :watch2_app => 'com.apple.product-type.application.watchapp2',
+ :watch_extension => 'com.apple.product-type.watchkit-extension',
+ :watch2_extension => 'com.apple.product-type.watchkit2-extension',
+ :tv_extension => 'com.apple.product-type.tv-app-extension',
+ :messages_application => 'com.apple.product-type.application.messages',
+ :messages_extension => 'com.apple.product-type.app-extension.messages',
+ :sticker_pack => 'com.apple.product-type.app-extension.messages-sticker-pack',
}.freeze
# @return [Hash] The extensions or the various product UTIs.
View
3 spec/project/object/native_target_spec.rb
@@ -605,6 +605,9 @@ module ProjectSpecs
it 'returns false for non-extension target types' do
@target.stubs(:symbol_type => :application)
@target.should.not.be.extension_target_type
+
+ @target.stubs(:symbol_type => :messages_application)
+ @target.should.not.be.extension_target_type
end
end

0 comments on commit 4d2304a

Please sign in to comment.