Skip to content

Commit dac33d2

Browse files
authored
Merge pull request #768 from igor-makarov/clippy
Add support for App Clips
2 parents 4e44c02 + 04d392e commit dac33d2

File tree

2 files changed

+40
-36
lines changed

2 files changed

+40
-36
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
##### Enhancements
66

7-
* None.
7+
* Add `:application_on_demand_install_capable` product type to support App Clips.
8+
[Igor Makarov](https://github.com/igor-makarov)
9+
[#768](https://github.com/CocoaPods/Xcodeproj/pull/768)
810

911
##### Bug Fixes
1012

lib/xcodeproj/constants.rb

Lines changed: 37 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -140,46 +140,48 @@ module Constants
140140
# @return [Hash] The uniform type identifier of various product types.
141141
#
142142
PRODUCT_TYPE_UTI = {
143-
:application => 'com.apple.product-type.application',
144-
:framework => 'com.apple.product-type.framework',
145-
:dynamic_library => 'com.apple.product-type.library.dynamic',
146-
:static_library => 'com.apple.product-type.library.static',
147-
:bundle => 'com.apple.product-type.bundle',
148-
:octest_bundle => 'com.apple.product-type.bundle',
149-
:unit_test_bundle => 'com.apple.product-type.bundle.unit-test',
150-
:ui_test_bundle => 'com.apple.product-type.bundle.ui-testing',
151-
:app_extension => 'com.apple.product-type.app-extension',
152-
:command_line_tool => 'com.apple.product-type.tool',
153-
:watch_app => 'com.apple.product-type.application.watchapp',
154-
:watch2_app => 'com.apple.product-type.application.watchapp2',
155-
:watch2_app_container => 'com.apple.product-type.application.watchapp2-container',
156-
:watch_extension => 'com.apple.product-type.watchkit-extension',
157-
:watch2_extension => 'com.apple.product-type.watchkit2-extension',
158-
:tv_extension => 'com.apple.product-type.tv-app-extension',
159-
:messages_application => 'com.apple.product-type.application.messages',
160-
:messages_extension => 'com.apple.product-type.app-extension.messages',
161-
:sticker_pack => 'com.apple.product-type.app-extension.messages-sticker-pack',
162-
:xpc_service => 'com.apple.product-type.xpc-service',
143+
:application => 'com.apple.product-type.application',
144+
:application_on_demand_install_capable => 'com.apple.product-type.application.on-demand-install-capable',
145+
:framework => 'com.apple.product-type.framework',
146+
:dynamic_library => 'com.apple.product-type.library.dynamic',
147+
:static_library => 'com.apple.product-type.library.static',
148+
:bundle => 'com.apple.product-type.bundle',
149+
:octest_bundle => 'com.apple.product-type.bundle',
150+
:unit_test_bundle => 'com.apple.product-type.bundle.unit-test',
151+
:ui_test_bundle => 'com.apple.product-type.bundle.ui-testing',
152+
:app_extension => 'com.apple.product-type.app-extension',
153+
:command_line_tool => 'com.apple.product-type.tool',
154+
:watch_app => 'com.apple.product-type.application.watchapp',
155+
:watch2_app => 'com.apple.product-type.application.watchapp2',
156+
:watch2_app_container => 'com.apple.product-type.application.watchapp2-container',
157+
:watch_extension => 'com.apple.product-type.watchkit-extension',
158+
:watch2_extension => 'com.apple.product-type.watchkit2-extension',
159+
:tv_extension => 'com.apple.product-type.tv-app-extension',
160+
:messages_application => 'com.apple.product-type.application.messages',
161+
:messages_extension => 'com.apple.product-type.app-extension.messages',
162+
:sticker_pack => 'com.apple.product-type.app-extension.messages-sticker-pack',
163+
:xpc_service => 'com.apple.product-type.xpc-service',
163164
}.freeze
164165

165166
# @return [Hash] The extensions or the various product UTIs.
166167
#
167168
PRODUCT_UTI_EXTENSIONS = {
168-
:application => 'app',
169-
:framework => 'framework',
170-
:dynamic_library => 'dylib',
171-
:static_library => 'a',
172-
:bundle => 'bundle',
173-
:octest_bundle => 'octest',
174-
:unit_test_bundle => 'xctest',
175-
:ui_test_bundle => 'xctest',
176-
:app_extension => 'appex',
177-
:messages_application => 'app',
178-
:messages_extension => 'appex',
179-
:sticker_pack => 'appex',
180-
:watch2_extension => 'appex',
181-
:watch2_app => 'app',
182-
:watch2_app_container => 'app',
169+
:application => 'app',
170+
:application_on_demand_install_capable => 'app',
171+
:framework => 'framework',
172+
:dynamic_library => 'dylib',
173+
:static_library => 'a',
174+
:bundle => 'bundle',
175+
:octest_bundle => 'octest',
176+
:unit_test_bundle => 'xctest',
177+
:ui_test_bundle => 'xctest',
178+
:app_extension => 'appex',
179+
:messages_application => 'app',
180+
:messages_extension => 'appex',
181+
:sticker_pack => 'appex',
182+
:watch2_extension => 'appex',
183+
:watch2_app => 'app',
184+
:watch2_app_container => 'app',
183185
}.freeze
184186

185187
# @return [Hash] The common build settings grouped by platform, and build

0 commit comments

Comments
 (0)