readytoship 0.4.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. readytoship-0.4.0/LICENSE +202 -0
  2. readytoship-0.4.0/NOTICE +20 -0
  3. readytoship-0.4.0/PKG-INFO +69 -0
  4. readytoship-0.4.0/README.md +133 -0
  5. readytoship-0.4.0/docs/pypi.md +35 -0
  6. readytoship-0.4.0/pyproject.toml +72 -0
  7. readytoship-0.4.0/setup.cfg +4 -0
  8. readytoship-0.4.0/src/readytoship/__init__.py +3 -0
  9. readytoship-0.4.0/src/readytoship/__main__.py +5 -0
  10. readytoship-0.4.0/src/readytoship/advice/__init__.py +87 -0
  11. readytoship-0.4.0/src/readytoship/android/__init__.py +14 -0
  12. readytoship-0.4.0/src/readytoship/android/checks/__init__.py +27 -0
  13. readytoship-0.4.0/src/readytoship/android/checks/edge_to_edge.py +149 -0
  14. readytoship-0.4.0/src/readytoship/android/checks/foreground_services.py +247 -0
  15. readytoship-0.4.0/src/readytoship/android/checks/large_screen.py +144 -0
  16. readytoship-0.4.0/src/readytoship/android/checks/page_size.py +180 -0
  17. readytoship-0.4.0/src/readytoship/android/checks/play_permissions.py +104 -0
  18. readytoship-0.4.0/src/readytoship/android/checks/target_api.py +120 -0
  19. readytoship-0.4.0/src/readytoship/android/formats/__init__.py +2 -0
  20. readytoship-0.4.0/src/readytoship/android/formats/_guard.py +41 -0
  21. readytoship-0.4.0/src/readytoship/android/formats/arsc.py +140 -0
  22. readytoship-0.4.0/src/readytoship/android/formats/axml.py +214 -0
  23. readytoship-0.4.0/src/readytoship/android/formats/bundle.py +195 -0
  24. readytoship-0.4.0/src/readytoship/android/formats/elf.py +84 -0
  25. readytoship-0.4.0/src/readytoship/android/formats/protobuf.py +96 -0
  26. readytoship-0.4.0/src/readytoship/android/load.py +233 -0
  27. readytoship-0.4.0/src/readytoship/android/manifest.py +215 -0
  28. readytoship-0.4.0/src/readytoship/android/model.py +172 -0
  29. readytoship-0.4.0/src/readytoship/cli.py +240 -0
  30. readytoship-0.4.0/src/readytoship/core/__init__.py +36 -0
  31. readytoship-0.4.0/src/readytoship/core/artifact.py +48 -0
  32. readytoship-0.4.0/src/readytoship/core/check.py +58 -0
  33. readytoship-0.4.0/src/readytoship/core/engine.py +112 -0
  34. readytoship-0.4.0/src/readytoship/core/finding.py +71 -0
  35. readytoship-0.4.0/src/readytoship/core/frozen.py +22 -0
  36. readytoship-0.4.0/src/readytoship/core/platform.py +32 -0
  37. readytoship-0.4.0/src/readytoship/core/rulebook.py +109 -0
  38. readytoship-0.4.0/src/readytoship/ios/__init__.py +14 -0
  39. readytoship-0.4.0/src/readytoship/ios/checks/__init__.py +33 -0
  40. readytoship-0.4.0/src/readytoship/ios/checks/ipad_multitasking.py +102 -0
  41. readytoship-0.4.0/src/readytoship/ios/checks/liquid_glass.py +74 -0
  42. readytoship-0.4.0/src/readytoship/ios/checks/privacy_manifest.py +141 -0
  43. readytoship-0.4.0/src/readytoship/ios/checks/privacy_reasons.py +213 -0
  44. readytoship-0.4.0/src/readytoship/ios/checks/sdk_manifests.py +85 -0
  45. readytoship-0.4.0/src/readytoship/ios/checks/upload_settings.py +152 -0
  46. readytoship-0.4.0/src/readytoship/ios/checks/usage_descriptions.py +278 -0
  47. readytoship-0.4.0/src/readytoship/ios/checks/xcode_sdk.py +145 -0
  48. readytoship-0.4.0/src/readytoship/ios/formats/__init__.py +1 -0
  49. readytoship-0.4.0/src/readytoship/ios/formats/macho.py +118 -0
  50. readytoship-0.4.0/src/readytoship/ios/load.py +243 -0
  51. readytoship-0.4.0/src/readytoship/ios/model.py +168 -0
  52. readytoship-0.4.0/src/readytoship/ios/privacy.py +113 -0
  53. readytoship-0.4.0/src/readytoship/knowledge/__init__.py +0 -0
  54. readytoship-0.4.0/src/readytoship/knowledge/fixes.toml +77 -0
  55. readytoship-0.4.0/src/readytoship/knowledge/frameworks.toml +25 -0
  56. readytoship-0.4.0/src/readytoship/knowledge/rules.toml +275 -0
  57. readytoship-0.4.0/src/readytoship/py.typed +0 -0
  58. readytoship-0.4.0/src/readytoship/report/__init__.py +2 -0
  59. readytoship-0.4.0/src/readytoship/report/baseline.py +69 -0
  60. readytoship-0.4.0/src/readytoship/report/data.py +57 -0
  61. readytoship-0.4.0/src/readytoship/report/policy.py +17 -0
  62. readytoship-0.4.0/src/readytoship/report/sarif.py +97 -0
  63. readytoship-0.4.0/src/readytoship/report/text.py +125 -0
  64. readytoship-0.4.0/src/readytoship.egg-info/PKG-INFO +69 -0
  65. readytoship-0.4.0/src/readytoship.egg-info/SOURCES.txt +76 -0
  66. readytoship-0.4.0/src/readytoship.egg-info/dependency_links.txt +1 -0
  67. readytoship-0.4.0/src/readytoship.egg-info/entry_points.txt +2 -0
  68. readytoship-0.4.0/src/readytoship.egg-info/requires.txt +5 -0
  69. readytoship-0.4.0/src/readytoship.egg-info/top_level.txt +1 -0
  70. readytoship-0.4.0/tests/test_android.py +505 -0
  71. readytoship-0.4.0/tests/test_architecture.py +136 -0
  72. readytoship-0.4.0/tests/test_cli.py +111 -0
  73. readytoship-0.4.0/tests/test_core.py +143 -0
  74. readytoship-0.4.0/tests/test_docs.py +88 -0
  75. readytoship-0.4.0/tests/test_ios.py +447 -0
  76. readytoship-0.4.0/tests/test_report_and_advice.py +168 -0
  77. readytoship-0.4.0/tests/test_robustness.py +257 -0
  78. readytoship-0.4.0/tests/test_watch_rules.py +88 -0
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,20 @@
1
+ readytoship
2
+ Copyright 2026 Mayuresh Raut
3
+
4
+ readytoship was created by Mayuresh Raut.
5
+ Original source: https://github.com/msr2604/readytoship
6
+
7
+ This product is licensed under the Apache License, Version 2.0 (see LICENSE).
8
+
9
+ Under section 4(d) of that license, any redistribution of this work or of a work derived
10
+ from it must carry a readable copy of the attribution notices in this NOTICE file. Please
11
+ keep this file, and the credit above, in copies, forks and derived products.
12
+
13
+ The rule data in src/readytoship/knowledge/ records facts published by Google and Apple
14
+ (deadlines, API levels, reason codes, SDK names) with a link to each source. Those sources
15
+ remain the authority; readytoship is not affiliated with or endorsed by Google or Apple.
16
+ "Android", "Google Play", "Apple", "App Store", "iOS" and "Xcode" are trademarks of their
17
+ owners.
18
+
19
+ If you use readytoship in research, please cite it as described in CITATION.cff
20
+ ("Cite this repository" on GitHub).
@@ -0,0 +1,69 @@
1
+ Metadata-Version: 2.4
2
+ Name: readytoship
3
+ Version: 0.4.0
4
+ Summary: Find what the app stores will refuse in your Android or iOS build, before you upload it.
5
+ Author: Mayuresh Raut
6
+ Maintainer: Mayuresh Raut
7
+ License-Expression: Apache-2.0
8
+ Project-URL: Homepage, https://github.com/msr2604/readytoship
9
+ Project-URL: Documentation, https://github.com/msr2604/readytoship/tree/main/docs
10
+ Project-URL: Source, https://github.com/msr2604/readytoship
11
+ Project-URL: Issues, https://github.com/msr2604/readytoship/issues
12
+ Project-URL: Changelog, https://github.com/msr2604/readytoship/blob/main/CHANGELOG.md
13
+ Keywords: android,ios,app store,google play,apk,aab,ipa,static analysis,privacy manifest,16kb page size,sarif,ci
14
+ Classifier: Development Status :: 4 - Beta
15
+ Classifier: Environment :: Console
16
+ Classifier: Intended Audience :: Developers
17
+ Classifier: Operating System :: OS Independent
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Programming Language :: Python :: 3.14
22
+ Classifier: Topic :: Software Development :: Quality Assurance
23
+ Classifier: Topic :: Software Development :: Testing
24
+ Classifier: Typing :: Typed
25
+ Requires-Python: >=3.12
26
+ Description-Content-Type: text/markdown
27
+ License-File: LICENSE
28
+ License-File: NOTICE
29
+ Provides-Extra: dev
30
+ Requires-Dist: pytest>=8; extra == "dev"
31
+ Requires-Dist: ruff==0.17.6; extra == "dev"
32
+ Requires-Dist: mypy==2.4.1; extra == "dev"
33
+ Dynamic: license-file
34
+
35
+ # readytoship
36
+
37
+ readytoship checks a built Android or iOS app (`.apk`, `.aab`, `.ipa` or `.app`) against the
38
+ current rules of Google Play and the App Store, and reports what the store will refuse or what
39
+ will behave differently, with the rule's source and how to fix it.
40
+
41
+ ```bash
42
+ pipx install readytoship
43
+ readytoship check app-release.aab
44
+ readytoship check MyApp.ipa
45
+ ```
46
+
47
+ ```text
48
+ $ readytoship check Mattermost-unsigned.ipa --only liquid-glass
49
+ com.mattermost.rnbeta 2.46.2 (Mattermost-unsigned.ipa) — rules as of 2026-11-30
50
+ Frameworks found: React Native
51
+ Result: breaks 1.
52
+
53
+ [BREAKS] liquid-glass: Works without UIDesignRequiresCompatibility
54
+ - (breaks) UIDesignRequiresCompatibility keeps the old look only until you build with the iOS 27 SDK.
55
+ Apple ignores the key in apps built with the iOS 27 SDK or later.
56
+ Fix: Update custom bars, tab bars, sheets and colours for the new design, test them, then
57
+ remove UIDesignRequiresCompatibility from Info.plist.
58
+ ```
59
+
60
+ readytoship reads the build itself, so native, Flutter, React Native and Kotlin Multiplatform
61
+ apps are checked the same way, with no SDK, Xcode or device. Output is text, JSON or SARIF.
62
+
63
+ - [Documentation](https://github.com/msr2604/readytoship/tree/main/docs)
64
+ - [Checks](https://github.com/msr2604/readytoship/blob/main/docs/checks/index.md) and
65
+ [deadlines](https://github.com/msr2604/readytoship/blob/main/docs/deadlines.md)
66
+ - [Continuous integration](https://github.com/msr2604/readytoship/blob/main/docs/ci.md)
67
+ - [Changelog](https://github.com/msr2604/readytoship/blob/main/CHANGELOG.md)
68
+
69
+ Licensed under the Apache License 2.0.
@@ -0,0 +1,133 @@
1
+ # readytoship
2
+
3
+ [![PyPI][pypi-badge]][pypi] [![CI][ci-badge]][ci] [![Python][python-badge]][python] [![License][license-badge]](LICENSE)
4
+
5
+ readytoship checks a built Android or iOS app (`.apk`, `.aab`, `.ipa` or `.app`) against the
6
+ current rules of Google Play and the App Store. It reports what the store will refuse and what
7
+ will behave differently under new rules, with the official source for each rule and how to fix
8
+ the problem.
9
+
10
+ It reads the build itself, so native, Flutter, React Native and Kotlin Multiplatform apps are
11
+ checked the same way. It needs no SDK, Xcode or device, never runs the app and never connects to
12
+ the network.
13
+
14
+ ## Found in real apps
15
+
16
+ These are public builds of well-known open-source apps, checked on 2026-11-30. The Android
17
+ builds come from F-Droid and the iOS build from the project's GitHub releases; store builds of
18
+ the same apps can differ.
19
+
20
+ Element 1.6.62 targets an API level that Google Play no longer accepts for updates, and one
21
+ screen is locked to portrait:
22
+
23
+ ![readytoship report for Element 1.6.62](docs/images/element.svg)
24
+
25
+ DuckDuckGo 5.303.0 has 23 screens locked to portrait. They rely on an opt-out property that
26
+ stops working when the app targets API 37:
27
+
28
+ ![readytoship report for DuckDuckGo 5.303.0, trimmed](docs/images/duckduckgo.svg)
29
+
30
+ Mattermost 2.46.2 keeps the pre-Liquid Glass design with a key that Apple ignores once the app
31
+ is built with the iOS 27 SDK:
32
+
33
+ ![readytoship report for Mattermost 2.46.2](docs/images/mattermost.svg)
34
+
35
+ ## How it works
36
+
37
+ ```mermaid
38
+ flowchart LR
39
+ build["Your build<br/>.apk, .aab, .ipa, .app"] --> read["Read manifest, binaries,<br/>resources, Info.plist"]
40
+ read --> checks["Checks, one per rule"]
41
+ rules[("Store rules<br/>with sources and dates")] --> checks
42
+ checks --> report["Findings with fixes:<br/>text, JSON or SARIF"]
43
+ ```
44
+
45
+ The [checks](docs/checks/index.md) cover:
46
+
47
+ - Android: target API levels, 16 KB memory pages, large screens, edge-to-edge, foreground
48
+ service types, and permissions Google Play restricts.
49
+ - iOS: Xcode and SDK versions, privacy manifests, purpose strings, Apple's list of SDKs that
50
+ need manifests, and the design and multitasking changes in iOS 26 and 27.
51
+
52
+ Each rule records its source and the date it was last checked; the
53
+ [deadlines](docs/deadlines.md) page lists them by date.
54
+
55
+ ## Installation
56
+
57
+ ```bash
58
+ pipx install readytoship
59
+ ```
60
+
61
+ readytoship needs Python 3.12 or newer and has no other dependencies. For uv, pip and other
62
+ options, see [Installation](docs/installation.md).
63
+
64
+ ## Quick start
65
+
66
+ ```bash
67
+ readytoship check app-release.aab
68
+ readytoship check MyApp.ipa
69
+ readytoship explain 16kb-pages
70
+ ```
71
+
72
+ Each finding has a level: `blocker` (refused now), `due` (refused from a known date), `breaks`
73
+ (behaves differently; test it) or `note`. [Getting started](docs/getting-started.md) walks
74
+ through a full report.
75
+
76
+ ## Continuous integration
77
+
78
+ readytoship exits with `1` when a finding is a blocker, so the CI job fails. On GitHub, its
79
+ action runs it in one step and writes a SARIF report for code scanning:
80
+
81
+ ```yaml
82
+ - uses: msr2604/readytoship@v0.4.0
83
+ with:
84
+ app: app-release.aab
85
+ - name: Upload findings
86
+ if: always() && hashFiles('readytoship.sarif') != ''
87
+ uses: github/codeql-action/upload-sarif@v4
88
+ with:
89
+ sarif_file: readytoship.sarif
90
+ ```
91
+
92
+ [Continuous integration](docs/ci.md) has a complete workflow, other CI systems, and baselines
93
+ for adopting readytoship on an existing app.
94
+
95
+ ## Documentation
96
+
97
+ - [Getting started](docs/getting-started.md)
98
+ - [Checks](docs/checks/index.md) and [deadlines](docs/deadlines.md)
99
+ - [Command line](docs/usage.md) and [exit codes](docs/usage.md#exit-codes)
100
+ - [Output formats](docs/output-formats.md)
101
+ - [Continuous integration](docs/ci.md)
102
+ - [Versioning](docs/versioning.md)
103
+ - [FAQ](docs/faq.md)
104
+ - [Architecture](docs/architecture.md) and [Python API](docs/python-api.md)
105
+
106
+ ## Limitations
107
+
108
+ - A clean report doesn't mean the app will be approved. App review also covers behaviour,
109
+ content and metadata.
110
+ - readytoship finds API use from the symbols in the binaries. Code that reaches an API another
111
+ way can be missed. Each check's page lists its limitations.
112
+ - Apple doesn't publish how its upload checks work. When accepted App Store apps break a rule
113
+ Apple documents, readytoship reports that rule as a note.
114
+
115
+ ## Contributing
116
+
117
+ Reports of wrong findings and of rule changes are especially welcome. See
118
+ [CONTRIBUTING.md](CONTRIBUTING.md) to set up, add a check or update a rule. To report a
119
+ security problem, see [SECURITY.md](SECURITY.md).
120
+
121
+ ## License
122
+
123
+ readytoship is licensed under the [Apache License 2.0](LICENSE). See [NOTICE](NOTICE) for
124
+ attribution. "Android" and "Google Play" are trademarks of Google LLC; "Apple", "App Store",
125
+ "iOS" and "Xcode" are trademarks of Apple Inc. readytoship is not affiliated with either.
126
+
127
+ [pypi-badge]: https://img.shields.io/pypi/v/readytoship?color=blue
128
+ [pypi]: https://pypi.org/project/readytoship/
129
+ [ci-badge]: https://github.com/msr2604/readytoship/actions/workflows/ci.yml/badge.svg?branch=main
130
+ [ci]: https://github.com/msr2604/readytoship/actions/workflows/ci.yml
131
+ [python-badge]: https://img.shields.io/badge/python-3.12%20%7C%203.13%20%7C%203.14-blue
132
+ [python]: https://www.python.org
133
+ [license-badge]: https://img.shields.io/badge/license-Apache--2.0-blue
@@ -0,0 +1,35 @@
1
+ # readytoship
2
+
3
+ readytoship checks a built Android or iOS app (`.apk`, `.aab`, `.ipa` or `.app`) against the
4
+ current rules of Google Play and the App Store, and reports what the store will refuse or what
5
+ will behave differently, with the rule's source and how to fix it.
6
+
7
+ ```bash
8
+ pipx install readytoship
9
+ readytoship check app-release.aab
10
+ readytoship check MyApp.ipa
11
+ ```
12
+
13
+ ```text
14
+ $ readytoship check Mattermost-unsigned.ipa --only liquid-glass
15
+ com.mattermost.rnbeta 2.46.2 (Mattermost-unsigned.ipa) — rules as of 2026-11-30
16
+ Frameworks found: React Native
17
+ Result: breaks 1.
18
+
19
+ [BREAKS] liquid-glass: Works without UIDesignRequiresCompatibility
20
+ - (breaks) UIDesignRequiresCompatibility keeps the old look only until you build with the iOS 27 SDK.
21
+ Apple ignores the key in apps built with the iOS 27 SDK or later.
22
+ Fix: Update custom bars, tab bars, sheets and colours for the new design, test them, then
23
+ remove UIDesignRequiresCompatibility from Info.plist.
24
+ ```
25
+
26
+ readytoship reads the build itself, so native, Flutter, React Native and Kotlin Multiplatform
27
+ apps are checked the same way, with no SDK, Xcode or device. Output is text, JSON or SARIF.
28
+
29
+ - [Documentation](https://github.com/msr2604/readytoship/tree/main/docs)
30
+ - [Checks](https://github.com/msr2604/readytoship/blob/main/docs/checks/index.md) and
31
+ [deadlines](https://github.com/msr2604/readytoship/blob/main/docs/deadlines.md)
32
+ - [Continuous integration](https://github.com/msr2604/readytoship/blob/main/docs/ci.md)
33
+ - [Changelog](https://github.com/msr2604/readytoship/blob/main/CHANGELOG.md)
34
+
35
+ Licensed under the Apache License 2.0.
@@ -0,0 +1,72 @@
1
+ [build-system]
2
+ requires = ["setuptools>=77"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "readytoship"
7
+ dynamic = ["version"]
8
+ description = "Find what the app stores will refuse in your Android or iOS build, before you upload it."
9
+ readme = "docs/pypi.md" # PyPI can't render the README's diagrams or relative links
10
+ license = "Apache-2.0"
11
+ license-files = ["LICENSE", "NOTICE"]
12
+ authors = [{ name = "Mayuresh Raut" }]
13
+ maintainers = [{ name = "Mayuresh Raut" }]
14
+ requires-python = ">=3.12"
15
+ dependencies = [] # standard library only
16
+ keywords = ["android", "ios", "app store", "google play", "apk", "aab", "ipa", "static analysis",
17
+ "privacy manifest", "16kb page size", "sarif", "ci"]
18
+ classifiers = [
19
+ "Development Status :: 4 - Beta",
20
+ "Environment :: Console",
21
+ "Intended Audience :: Developers",
22
+ "Operating System :: OS Independent",
23
+ "Programming Language :: Python :: 3",
24
+ "Programming Language :: Python :: 3.12",
25
+ "Programming Language :: Python :: 3.13",
26
+ "Programming Language :: Python :: 3.14",
27
+ "Topic :: Software Development :: Quality Assurance",
28
+ "Topic :: Software Development :: Testing",
29
+ "Typing :: Typed",
30
+ ]
31
+
32
+ [project.urls]
33
+ Homepage = "https://github.com/msr2604/readytoship"
34
+ Documentation = "https://github.com/msr2604/readytoship/tree/main/docs"
35
+ Source = "https://github.com/msr2604/readytoship"
36
+ Issues = "https://github.com/msr2604/readytoship/issues"
37
+ Changelog = "https://github.com/msr2604/readytoship/blob/main/CHANGELOG.md"
38
+
39
+ [project.optional-dependencies]
40
+ dev = ["pytest>=8", "ruff==0.17.6", "mypy==2.4.1"] # pinned: new lint rules should land in a PR, not break CI
41
+
42
+ [project.scripts]
43
+ readytoship = "readytoship.cli:main"
44
+
45
+ [tool.setuptools.packages.find]
46
+ where = ["src"]
47
+
48
+ [tool.setuptools.package-data]
49
+ readytoship = ["knowledge/*.toml", "py.typed"]
50
+
51
+ [tool.setuptools.dynamic]
52
+ version = { attr = "readytoship.__version__" }
53
+
54
+ [tool.pytest.ini_options]
55
+ testpaths = ["tests"]
56
+ pythonpath = ["src", "tests", "scripts"]
57
+ addopts = "-q --strict-markers"
58
+
59
+ [tool.ruff]
60
+ line-length = 100
61
+ src = ["src", "tests", "scripts"]
62
+
63
+ [tool.ruff.lint]
64
+ select = ["E", "F", "I", "B", "UP", "SIM"]
65
+
66
+ [tool.ruff.lint.per-file-ignores]
67
+ # Each check's documentation quotes real report output, whose lines are longer than code lines.
68
+ "src/readytoship/*/checks/*.py" = ["E501"]
69
+
70
+ [tool.mypy]
71
+ strict = true
72
+ mypy_path = "src:scripts"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,3 @@
1
+ """Lists what in a mobile app breaks under the app stores' current platform rules."""
2
+
3
+ __version__ = "0.4.0"
@@ -0,0 +1,5 @@
1
+ import sys
2
+
3
+ from readytoship.cli import main
4
+
5
+ sys.exit(main())
@@ -0,0 +1,87 @@
1
+ """Advice: recognises the framework an app was built with and attaches known, sourced fixes.
2
+
3
+ Works on core.Facts and core.Finding only, so it serves every platform without importing any.
4
+ """
5
+
6
+ from __future__ import annotations
7
+
8
+ import tomllib
9
+ from collections.abc import Callable
10
+ from dataclasses import dataclass
11
+ from fnmatch import fnmatchcase
12
+ from importlib import resources
13
+ from typing import Any
14
+
15
+ from readytoship.core import Facts, Finding, Platform
16
+
17
+
18
+ def _knowledge(name: str) -> dict[str, Any]:
19
+ text = resources.files("readytoship.knowledge").joinpath(name).read_text(encoding="utf-8")
20
+ return tomllib.loads(text)
21
+
22
+
23
+ def frameworks(platform: Platform, facts: Facts, data: dict[str, Any] | None = None) -> list[str]:
24
+ """Frameworks the app is built with, most specific first."""
25
+ data = data or _knowledge("frameworks.toml")
26
+ found: set[str] = set()
27
+ if platform is Platform.ANDROID:
28
+ markers = data.get("android", {}).get("native_libraries", {})
29
+ found |= {markers[n] for n in facts.native_libraries if n in markers}
30
+ else:
31
+ markers = data.get("ios", {}).get("frameworks", {})
32
+ found |= {markers[n] for n in facts.frameworks if n in markers}
33
+ order: list[str] = data.get("order", [])
34
+ return sorted(found, key=lambda f: order.index(f) if f in order else len(order))
35
+
36
+
37
+ @dataclass(frozen=True)
38
+ class Fix:
39
+ check: str
40
+ owner: str
41
+ text: str
42
+ source: str
43
+ subject_glob: str = "*"
44
+ framework: str = ""
45
+ evidence: str = ""
46
+ inferred: bool = False
47
+
48
+ def matches(self, finding: Finding, built_with: frozenset[str]) -> bool:
49
+ return (
50
+ finding.check == self.check
51
+ and _glob(finding.subject, self.subject_glob)
52
+ and (not self.framework or self.framework in built_with)
53
+ and (not self.evidence or any(self.evidence in e.detail for e in finding.evidence))
54
+ )
55
+
56
+
57
+ def load_fixes(data: dict[str, Any] | None = None) -> tuple[Fix, ...]:
58
+ data = data or _knowledge("fixes.toml")
59
+ return tuple(Fix(**entry) for entry in data.get("fix", []))
60
+
61
+
62
+ def advisor(
63
+ built_with: list[str], fixes: tuple[Fix, ...] | None = None
64
+ ) -> Callable[[Finding], Finding]:
65
+ """An enricher that names the owner and the specific fix of findings it recognises."""
66
+ known = load_fixes() if fixes is None else fixes
67
+ frameworks_set = frozenset(built_with)
68
+
69
+ def enrich(finding: Finding) -> Finding:
70
+ if finding.level == 0:
71
+ return finding
72
+ for fix in known:
73
+ if fix.matches(finding, frameworks_set):
74
+ note = " (inferred from the source)" if fix.inferred else ""
75
+ return finding.with_(owner=fix.owner, fix=f"{fix.text}{note} See {fix.source}")
76
+ return finding if finding.owner else finding.with_(owner="app")
77
+
78
+ return enrich
79
+
80
+
81
+ def _glob(subject: str, pattern: str) -> bool:
82
+ """fnmatch with {a,b} alternatives."""
83
+ if "{" in pattern and "}" in pattern:
84
+ head, rest = pattern.split("{", 1)
85
+ options, tail = rest.split("}", 1)
86
+ return any(_glob(subject, head + option + tail) for option in options.split(","))
87
+ return fnmatchcase(subject, pattern)
@@ -0,0 +1,14 @@
1
+ """Android: reads APKs and App Bundles and checks them against Google Play and Android rules."""
2
+
3
+ from readytoship.android.checks import CHECKS
4
+ from readytoship.android.load import load
5
+ from readytoship.core import Platform, PlatformSupport
6
+
7
+ SUPPORT = PlatformSupport(
8
+ platform=Platform.ANDROID,
9
+ suffixes=frozenset({".apk", ".aab"}),
10
+ load=load,
11
+ checks=CHECKS,
12
+ )
13
+
14
+ __all__ = ["SUPPORT"]