|
5 | 5 | SENTRY_PROJECT_SLUG_JETPACK = 'jetpack-ios'
|
6 | 6 | APPCENTER_OWNER_NAME = 'automattic'
|
7 | 7 | APPCENTER_OWNER_TYPE = 'organization'
|
| 8 | +APP_THINNING_EXPORT_OPTIONS = { thinning: '<thin-for-all-variants>' } |
8 | 9 |
|
9 | 10 | # Lanes related to Building and Testing the code
|
10 | 11 | #
|
|
198 | 199 | derived_data_path: DERIVED_DATA_PATH,
|
199 | 200 | export_team_id: get_required_env('INT_EXPORT_TEAM_ID'),
|
200 | 201 | export_method: 'enterprise',
|
201 |
| - export_options: { method: 'enterprise' } |
| 202 | + export_options: { method: 'enterprise', **APP_THINNING_EXPORT_OPTIONS } |
202 | 203 | )
|
203 | 204 |
|
204 | 205 | appcenter_upload(
|
|
217 | 218 | project_slug: SENTRY_PROJECT_SLUG_WORDPRESS,
|
218 | 219 | dsym_path: lane_context[SharedValues::DSYM_OUTPUT_PATH]
|
219 | 220 | )
|
| 221 | + |
| 222 | + ios_send_app_size_metrics( |
| 223 | + api_url: File.join('file://localhost/', BUILD_PRODUCTS_PATH, 'wordpress-app-size-metrics.json'), |
| 224 | + api_token: ENV['APPMETRICS_API_TOKEN'], |
| 225 | + use_gzip_content_encoding: false, |
| 226 | + app_name: 'WordPress', |
| 227 | + app_version: ios_get_build_version, |
| 228 | + build_type: 'Release', |
| 229 | + source: 'Beta' |
| 230 | + ) |
220 | 231 | end
|
221 | 232 |
|
222 | 233 | # Builds the WordPress app for an Installable Build ("WordPress Alpha" scheme), and uploads it to App Center
|
|
247 | 258 | derived_data_path: DERIVED_DATA_PATH,
|
248 | 259 | export_team_id: ENV['INT_EXPORT_TEAM_ID'],
|
249 | 260 | export_method: 'enterprise',
|
250 |
| - export_options: { method: 'enterprise' } |
| 261 | + export_options: { method: 'enterprise', **APP_THINNING_EXPORT_OPTIONS } |
251 | 262 | )
|
252 | 263 |
|
253 | 264 | appcenter_upload(
|
|
268 | 279 | dsym_path: lane_context[SharedValues::DSYM_OUTPUT_PATH]
|
269 | 280 | )
|
270 | 281 |
|
| 282 | + ios_send_app_size_metrics( |
| 283 | + api_url: File.join('file://localhost/', BUILD_PRODUCTS_PATH, 'wordpress-app-size-metrics.json'), |
| 284 | + api_token: ENV['APPMETRICS_API_TOKEN'], |
| 285 | + use_gzip_content_encoding: false, |
| 286 | + app_name: 'WordPress', |
| 287 | + app_version: build_number, |
| 288 | + build_type: 'Release-Alpha', |
| 289 | + source: 'PR Installable Build' |
| 290 | + ) |
| 291 | + |
271 | 292 | post_installable_build_pr_comment(app_name: 'WordPress', build_number: build_number, url_slug: 'WPiOS-One-Offs')
|
272 | 293 | end
|
273 | 294 |
|
|
300 | 321 | derived_data_path: DERIVED_DATA_PATH,
|
301 | 322 | export_team_id: ENV['INT_EXPORT_TEAM_ID'],
|
302 | 323 | export_method: 'enterprise',
|
303 |
| - export_options: { method: 'enterprise' } |
| 324 | + export_options: { method: 'enterprise', **APP_THINNING_EXPORT_OPTIONS } |
304 | 325 | )
|
305 | 326 |
|
306 | 327 | appcenter_upload(
|
|
321 | 342 | dsym_path: lane_context[SharedValues::DSYM_OUTPUT_PATH]
|
322 | 343 | )
|
323 | 344 |
|
| 345 | + ios_send_app_size_metrics( |
| 346 | + api_url: File.join('file://localhost/', BUILD_PRODUCTS_PATH, 'jetpack-app-size-metrics.json'), |
| 347 | + api_token: ENV['APPMETRICS_API_TOKEN'], |
| 348 | + use_gzip_content_encoding: false, |
| 349 | + app_name: 'Jetpack', |
| 350 | + app_version: build_number, |
| 351 | + build_type: 'Release-Alpha', |
| 352 | + source: 'PR Installable Build' |
| 353 | + ) |
| 354 | + |
324 | 355 | post_installable_build_pr_comment(app_name: 'Jetpack', build_number: build_number, url_slug: 'jetpack-installable-builds')
|
325 | 356 | end
|
326 | 357 |
|
|
0 commit comments