diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c9eefad0..d213d93dc 100644 --- a/CHANGELOG.md +++ b/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) diff --git a/lib/xcodeproj/constants.rb b/lib/xcodeproj/constants.rb index 9b6733c42..92a5ef3e8 100644 --- a/lib/xcodeproj/constants.rb +++ b/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. diff --git a/spec/project/object/native_target_spec.rb b/spec/project/object/native_target_spec.rb index dc4c5335c..2663180e6 100644 --- a/spec/project/object/native_target_spec.rb +++ b/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