You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_send_app_size_metrics.rb
+19-4Lines changed: 19 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -50,24 +50,39 @@ def self.description
50
50
end
51
51
52
52
defself.details
53
-
'Send iOS app size metrics to our metrics server'
53
+
<<~DETAILS
54
+
Send iOS app size metrics to our metrics server.
55
+
56
+
In order to get xcode generate the `app-thinning.plist` file (during `gym` and the export of the `.xcarchive`), you need to:
57
+
(1) Use either of `ad-hoc`, `enterprise` or `development` export method,
58
+
(2) Provide `thinning: '<thin-for-all-variants>'` as part of your `export_options` of `gym` (or in your `options.plist` file if you use raw `xcodebuild`)
59
+
See https://help.apple.com/xcode/mac/11.0/index.html#/devde46df08a
60
+
61
+
For builds exported with the `app-store` method, `xcodebuild` won't generate an `app-thinning.plist` file and you will only be able
62
+
to get the file size as a metric, but won't get the per-device, broken-down install and download sizes for each thinned variant.
63
+
64
+
See https://github.com/Automattic/apps-metrics for the API contract expected by the Metrics server you will send those metrics to.
65
+
66
+
Tip: If you provide a `file://` URL for the `api_base_url`, the action will write the payload on disk at the specified path
67
+
instead of sending the data to a endpoint over network. This can be very useful to inspect the data sent and debug without requiring a
0 commit comments