{"id":13994413,"url":"https://github.com/capyvara/fastlane-plugin-store_sizer","last_synced_at":"2025-03-27T03:31:21.026Z","repository":{"id":56845912,"uuid":"95154801","full_name":"capyvara/fastlane-plugin-store_sizer","owner":"capyvara","description":"Fastlane plugin that estimates download and install sizes for your app","archived":false,"fork":false,"pushed_at":"2017-12-17T16:33:28.000Z","size":41,"stargazers_count":23,"open_issues_count":6,"forks_count":6,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-24T09:07:03.199Z","etag":null,"topics":["encryption","fastlane","size","thinning"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/capyvara.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-22T20:41:34.000Z","updated_at":"2023-09-25T16:09:46.000Z","dependencies_parsed_at":"2022-09-17T22:21:40.019Z","dependency_job_id":null,"html_url":"https://github.com/capyvara/fastlane-plugin-store_sizer","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capyvara%2Ffastlane-plugin-store_sizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capyvara%2Ffastlane-plugin-store_sizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capyvara%2Ffastlane-plugin-store_sizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capyvara%2Ffastlane-plugin-store_sizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/capyvara","download_url":"https://codeload.github.com/capyvara/fastlane-plugin-store_sizer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245778713,"owners_count":20670682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["encryption","fastlane","size","thinning"],"created_at":"2024-08-09T14:02:51.634Z","updated_at":"2025-03-27T03:31:20.566Z","avatar_url":"https://github.com/capyvara.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# store_sizer plugin\n\n[![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-store_sizer)\n[![Gem](https://img.shields.io/gem/v/fastlane-plugin-store_sizer.svg?style=flat)](https://rubygems.org/gems/fastlane-plugin-store_sizer)\n[![Build Status](https://img.shields.io/circleci/project/capyvara/fastlane-plugin-store_sizer/master.svg?style=flat)](https://circleci.com/gh/capyvara/fastlane-plugin-store_sizer)\n\n## Getting Started\n\nThis project is a [_fastlane_](https://github.com/fastlane/fastlane) plugin. To get started with `fastlane-plugin-store_sizer`, add it to your project by running:\n\n```bash\nfastlane add_plugin store_sizer\n```\n\n## About store_sizer\n\nEstimates download and install sizes for your app, optionally checks and raise an error if the size exceeds given thresholds.\n\nSome apps, specially games, struggle to keep their download sizes below the **100Mb** limit, due to carrier network download limits on iOS, however the way people usually get around it is to send the build to iTunesConnect and later check the sizes reported by Apple.\n\nIt works by **simulating the Apple encryption** of the app executable (random bytes are written to the TEXT segments of the executable file), plus some artificially added files, followed by an ad-hoc export of the archive with the exportOptionsPlist thinning set to _thin-for-all-variants_\n\nAlso check for Apple's [executable size constaints](https://developer.apple.com/library/content/documentation/LanguagesUtilities/Conceptual/iTunesConnect_Guide/Chapters/SubmittingTheApp.html)\n\nRequires the Xcode _.xcarchive_, currently only **iOS** is supported.\n\n### Actions\n#### `store_size_xcarchive`\nSimulates encryption and returns a hash containing the reported size for all variants plus some info about the executable.\n\nParameters:\n- `archive_path`: path to your .xcarchive\n\n#### `store_size_xcarchive_check`\nChecks executable size constraints and max download size, raise an error if exceeded.\n\nParameters:\n- `report`: hash reported by the `store_size_xcarchive` action\n- `ignore_universal`: should the universal variant be ignored? true per default (only devices \u003c= iOS 8 uses the universal variant)\n- `max_wifi_size`: overrides default 100Mb size check, pass 0 to disable wi-fi download size check\n\n## Example\n\nCheck out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin.\n\nUnfortunately an example _.xcarchive_ can't be supplied since it will require distributing a signed executable, you will need to use your own.\n\nTry it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test archive_path:YourArchive.xcarchive`.\n\n## Run tests for this plugin\n\nTo run both the tests, and code style validation, run\n\n```\nrake\n```\n\nTo automatically fix many of the styling issues, use\n```\nrubocop -a\n```\n\n## Issues and Feedback\n\nFor any other issues and feedback about this plugin, please submit it to this repository.\n\n## Troubleshooting\n\nIf you have trouble using plugins, check out the [Plugins Troubleshooting](https://docs.fastlane.tools/plugins/plugins-troubleshooting/) guide.\n\n## Using _fastlane_ Plugins\n\nFor more information about how the `fastlane` plugin system works, check out the [Plugins documentation](https://docs.fastlane.tools/plugins/create-plugin/).\n\n## About _fastlane_\n\n_fastlane_ is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out [fastlane.tools](https://fastlane.tools).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapyvara%2Ffastlane-plugin-store_sizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcapyvara%2Ffastlane-plugin-store_sizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapyvara%2Ffastlane-plugin-store_sizer/lists"}