Commit 4ab73504 authored by Boris Bügling's avatar Boris Bügling Committed by GitHub

Merge pull request #5571 from CocoaPods/app-extension-api-only-for-messages-extensions

Set 'Allow app extension API only' for Messages extensions
parents de403cdd 3fc70930
...@@ -24,6 +24,11 @@ To install release candidates run `[sudo] gem install cocoapods --pre` ...@@ -24,6 +24,11 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[Mark Schall](https://github.com/maschall) [Mark Schall](https://github.com/maschall)
[#5568](https://github.com/CocoaPods/CocoaPods/pull/5568) [#5568](https://github.com/CocoaPods/CocoaPods/pull/5568)
* Set 'Allow app extension API only' for Messages extensions.
[Boris Bügling](https://github.com/neonichu)
[#5558](https://github.com/CocoaPods/CocoaPods/issues/5558)
##### Bug Fixes ##### Bug Fixes
* Fix local pod platform conflict error message. * Fix local pod platform conflict error message.
......
...@@ -185,7 +185,7 @@ module Pod ...@@ -185,7 +185,7 @@ module Pod
frameworks_group = project.frameworks_group frameworks_group = project.frameworks_group
aggregate_targets.each do |aggregate_target| aggregate_targets.each do |aggregate_target|
is_app_extension = !(aggregate_target.user_targets.map(&:symbol_type) & is_app_extension = !(aggregate_target.user_targets.map(&:symbol_type) &
[:app_extension, :watch_extension, :watch2_extension, :tv_extension]).empty? [:app_extension, :watch_extension, :watch2_extension, :tv_extension, :messages_extension]).empty?
is_app_extension ||= aggregate_target.user_targets.any? { |ut| ut.common_resolved_build_setting('APPLICATION_EXTENSION_API_ONLY') == 'YES' } is_app_extension ||= aggregate_target.user_targets.any? { |ut| ut.common_resolved_build_setting('APPLICATION_EXTENSION_API_ONLY') == 'YES' }
aggregate_target.pod_targets.each do |pod_target| aggregate_target.pod_targets.each do |pod_target|
......
...@@ -209,6 +209,10 @@ module Pod ...@@ -209,6 +209,10 @@ module Pod
test_extension_target(:tv_extension) test_extension_target(:tv_extension)
end end
it 'configures APPLICATION_EXTENSION_API_ONLY for Messages extension targets' do
test_extension_target(:messages_extension)
end
it 'configures APPLICATION_EXTENSION_API_ONLY for targets where the user target has it set' do it 'configures APPLICATION_EXTENSION_API_ONLY for targets where the user target has it set' do
mock_user_target = mock('UserTarget', :symbol_type => :application) mock_user_target = mock('UserTarget', :symbol_type => :application)
mock_user_target.expects(:common_resolved_build_setting).with('APPLICATION_EXTENSION_API_ONLY').returns('YES') mock_user_target.expects(:common_resolved_build_setting).with('APPLICATION_EXTENSION_API_ONLY').returns('YES')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment