embrace-io / embrace-apple-sdk

Embrace's Swift SDK built on OpenTelemetry
https://embrace.io/docs/ios/
Apache License 2.0
117 stars 11 forks source link

App size measurement #111

Closed ArielDemarco closed 4 weeks ago

ArielDemarco commented 1 month ago

Overview

This PR introduces a new app in Examples that helps measure the space the SDK occupies in an application.

Details

The app is as simple as possible (AppDelegate/SceneDelegate + ContentView) and consists of two targets, one that compiles only the previously components, and another that compiles depending on the local version of the Embrace SDK. Then, using Fastlane, two .ipa files are created and the size of both is compared to obtain the compressed and uncompressed size. The difference between the two gives an estimate of the disk space occupied by the SDK.

For more information on how it works, a specific README has been added to that example (Examples/AppSizeTester/README.md).

github-actions[bot] commented 1 month ago

Dependency Review

The following issues were found:

View full job summary

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 91.99%. Comparing base (b2da5ac) to head (72d9d39). Report is 2 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/embrace-io/embrace-apple-sdk/pull/111/graphs/tree.svg?width=650&height=150&src=pr&token=R3KMG2Ar52&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=embrace-io)](https://app.codecov.io/gh/embrace-io/embrace-apple-sdk/pull/111?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=embrace-io) ```diff @@ Coverage Diff @@ ## main #111 +/- ## ========================================== + Coverage 91.95% 91.99% +0.04% ========================================== Files 408 410 +2 Lines 26457 26486 +29 ========================================== + Hits 24329 24367 +38 + Misses 2128 2119 -9 ``` [see 3 files with indirect coverage changes](https://app.codecov.io/gh/embrace-io/embrace-apple-sdk/pull/111/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=embrace-io)