storeready 0.2.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.
- storeready-0.2.0/LICENSE +202 -0
- storeready-0.2.0/NOTICE +20 -0
- storeready-0.2.0/PKG-INFO +67 -0
- storeready-0.2.0/README.md +127 -0
- storeready-0.2.0/docs/pypi.md +33 -0
- storeready-0.2.0/pyproject.toml +72 -0
- storeready-0.2.0/setup.cfg +4 -0
- storeready-0.2.0/src/storeready/__init__.py +3 -0
- storeready-0.2.0/src/storeready/__main__.py +5 -0
- storeready-0.2.0/src/storeready/advice/__init__.py +87 -0
- storeready-0.2.0/src/storeready/android/__init__.py +14 -0
- storeready-0.2.0/src/storeready/android/checks/__init__.py +10 -0
- storeready-0.2.0/src/storeready/android/checks/edge_to_edge.py +148 -0
- storeready-0.2.0/src/storeready/android/checks/large_screen.py +137 -0
- storeready-0.2.0/src/storeready/android/checks/page_size.py +180 -0
- storeready-0.2.0/src/storeready/android/checks/target_api.py +119 -0
- storeready-0.2.0/src/storeready/android/formats/__init__.py +2 -0
- storeready-0.2.0/src/storeready/android/formats/_guard.py +41 -0
- storeready-0.2.0/src/storeready/android/formats/arsc.py +140 -0
- storeready-0.2.0/src/storeready/android/formats/axml.py +210 -0
- storeready-0.2.0/src/storeready/android/formats/bundle.py +191 -0
- storeready-0.2.0/src/storeready/android/formats/elf.py +84 -0
- storeready-0.2.0/src/storeready/android/formats/protobuf.py +92 -0
- storeready-0.2.0/src/storeready/android/load.py +195 -0
- storeready-0.2.0/src/storeready/android/manifest.py +159 -0
- storeready-0.2.0/src/storeready/android/model.py +124 -0
- storeready-0.2.0/src/storeready/cli.py +240 -0
- storeready-0.2.0/src/storeready/core/__init__.py +36 -0
- storeready-0.2.0/src/storeready/core/artifact.py +48 -0
- storeready-0.2.0/src/storeready/core/check.py +58 -0
- storeready-0.2.0/src/storeready/core/engine.py +115 -0
- storeready-0.2.0/src/storeready/core/finding.py +71 -0
- storeready-0.2.0/src/storeready/core/frozen.py +22 -0
- storeready-0.2.0/src/storeready/core/platform.py +38 -0
- storeready-0.2.0/src/storeready/core/rulebook.py +109 -0
- storeready-0.2.0/src/storeready/ios/__init__.py +14 -0
- storeready-0.2.0/src/storeready/ios/checks/__init__.py +33 -0
- storeready-0.2.0/src/storeready/ios/checks/ipad_multitasking.py +75 -0
- storeready-0.2.0/src/storeready/ios/checks/liquid_glass.py +75 -0
- storeready-0.2.0/src/storeready/ios/checks/privacy_manifest.py +126 -0
- storeready-0.2.0/src/storeready/ios/checks/privacy_reasons.py +213 -0
- storeready-0.2.0/src/storeready/ios/checks/sdk_manifests.py +85 -0
- storeready-0.2.0/src/storeready/ios/checks/upload_settings.py +152 -0
- storeready-0.2.0/src/storeready/ios/checks/usage_descriptions.py +233 -0
- storeready-0.2.0/src/storeready/ios/checks/xcode_sdk.py +121 -0
- storeready-0.2.0/src/storeready/ios/formats/__init__.py +1 -0
- storeready-0.2.0/src/storeready/ios/formats/macho.py +118 -0
- storeready-0.2.0/src/storeready/ios/load.py +216 -0
- storeready-0.2.0/src/storeready/ios/model.py +151 -0
- storeready-0.2.0/src/storeready/ios/privacy.py +113 -0
- storeready-0.2.0/src/storeready/knowledge/__init__.py +0 -0
- storeready-0.2.0/src/storeready/knowledge/fixes.toml +75 -0
- storeready-0.2.0/src/storeready/knowledge/frameworks.toml +25 -0
- storeready-0.2.0/src/storeready/knowledge/rules.toml +130 -0
- storeready-0.2.0/src/storeready/py.typed +0 -0
- storeready-0.2.0/src/storeready/report/__init__.py +2 -0
- storeready-0.2.0/src/storeready/report/baseline.py +67 -0
- storeready-0.2.0/src/storeready/report/data.py +57 -0
- storeready-0.2.0/src/storeready/report/policy.py +17 -0
- storeready-0.2.0/src/storeready/report/sarif.py +97 -0
- storeready-0.2.0/src/storeready/report/text.py +118 -0
- storeready-0.2.0/src/storeready.egg-info/PKG-INFO +67 -0
- storeready-0.2.0/src/storeready.egg-info/SOURCES.txt +73 -0
- storeready-0.2.0/src/storeready.egg-info/dependency_links.txt +1 -0
- storeready-0.2.0/src/storeready.egg-info/entry_points.txt +2 -0
- storeready-0.2.0/src/storeready.egg-info/requires.txt +5 -0
- storeready-0.2.0/src/storeready.egg-info/top_level.txt +1 -0
- storeready-0.2.0/tests/test_android.py +308 -0
- storeready-0.2.0/tests/test_architecture.py +136 -0
- storeready-0.2.0/tests/test_cli.py +95 -0
- storeready-0.2.0/tests/test_core.py +143 -0
- storeready-0.2.0/tests/test_docs.py +75 -0
- storeready-0.2.0/tests/test_ios.py +414 -0
- storeready-0.2.0/tests/test_report_and_advice.py +168 -0
- storeready-0.2.0/tests/test_robustness.py +149 -0
storeready-0.2.0/LICENSE
ADDED
|
@@ -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.
|
storeready-0.2.0/NOTICE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
storeready
|
|
2
|
+
Copyright 2026 Mayuresh Raut
|
|
3
|
+
|
|
4
|
+
storeready was created by Mayuresh Raut.
|
|
5
|
+
Original source: https://github.com/msr2604/storeready
|
|
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/storeready/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; storeready 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 storeready in research, please cite it as described in CITATION.cff
|
|
20
|
+
("Cite this repository" on GitHub).
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: storeready
|
|
3
|
+
Version: 0.2.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/storeready
|
|
9
|
+
Project-URL: Documentation, https://github.com/msr2604/storeready/tree/main/docs
|
|
10
|
+
Project-URL: Source, https://github.com/msr2604/storeready
|
|
11
|
+
Project-URL: Issues, https://github.com/msr2604/storeready/issues
|
|
12
|
+
Project-URL: Changelog, https://github.com/msr2604/storeready/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
|
+
# storeready
|
|
36
|
+
|
|
37
|
+
storeready 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 storeready
|
|
43
|
+
storeready check app-release.aab
|
|
44
|
+
storeready check MyApp.ipa
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
```text
|
|
48
|
+
com.mattermost.rnbeta 2.46.2 (Mattermost.ipa) — rules as of 2026-11-30
|
|
49
|
+
Frameworks found: React Native
|
|
50
|
+
Result: breaks 1, note 8.
|
|
51
|
+
|
|
52
|
+
[BREAKS] liquid-glass: Works without UIDesignRequiresCompatibility
|
|
53
|
+
- (breaks) UIDesignRequiresCompatibility keeps the old look only until you build with the iOS 27 SDK.
|
|
54
|
+
Apple ignores the key in apps built with the iOS 27 SDK or later.
|
|
55
|
+
Fix: Update custom bars, tab bars, sheets and colours for the new design, test them, then remove UIDesignRequiresCompatibility from Info.plist.
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
storeready reads the build itself, so native, Flutter, React Native and Kotlin Multiplatform
|
|
59
|
+
apps are checked the same way, with no SDK, Xcode or device. Output is text, JSON or SARIF.
|
|
60
|
+
|
|
61
|
+
- [Documentation](https://github.com/msr2604/storeready/tree/main/docs)
|
|
62
|
+
- [Checks](https://github.com/msr2604/storeready/blob/main/docs/checks/index.md) and
|
|
63
|
+
[deadlines](https://github.com/msr2604/storeready/blob/main/docs/deadlines.md)
|
|
64
|
+
- [Continuous integration](https://github.com/msr2604/storeready/blob/main/docs/ci.md)
|
|
65
|
+
- [Changelog](https://github.com/msr2604/storeready/blob/main/CHANGELOG.md)
|
|
66
|
+
|
|
67
|
+
Licensed under the Apache License 2.0.
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# storeready
|
|
2
|
+
|
|
3
|
+
[![PyPI][pypi-badge]][pypi] [![CI][ci-badge]][ci] [![Python][python-badge]][python] [![License][license-badge]](LICENSE)
|
|
4
|
+
|
|
5
|
+
storeready 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
|
+

|
|
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
|
+

|
|
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
|
+

|
|
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["12 checks"]
|
|
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 target API levels, 16 KB memory pages, large screens,
|
|
46
|
+
edge-to-edge, Xcode and SDK versions, privacy manifests, purpose strings, required SDK manifests
|
|
47
|
+
and the design and multitasking changes in iOS 26 and 27. Each rule records its source and the
|
|
48
|
+
date it was last checked; the [deadlines](docs/deadlines.md) page lists them by date.
|
|
49
|
+
|
|
50
|
+
## Installation
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
pipx install storeready
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
storeready needs Python 3.12 or newer and has no other dependencies. For uv, pip and other
|
|
57
|
+
options, see [Installation](docs/installation.md).
|
|
58
|
+
|
|
59
|
+
## Quick start
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
storeready check app-release.aab
|
|
63
|
+
storeready check MyApp.ipa
|
|
64
|
+
storeready explain 16kb-pages
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Each finding has a level: `blocker` (refused now), `due` (refused from a known date), `breaks`
|
|
68
|
+
(behaves differently; test it) or `note`. [Getting started](docs/getting-started.md) walks
|
|
69
|
+
through a full report.
|
|
70
|
+
|
|
71
|
+
## Continuous integration
|
|
72
|
+
|
|
73
|
+
storeready exits with `1` when a finding is a blocker, so the CI job fails. Upload the SARIF
|
|
74
|
+
report to see findings in GitHub code scanning:
|
|
75
|
+
|
|
76
|
+
```yaml
|
|
77
|
+
- name: Check
|
|
78
|
+
run: storeready check app-release.aab --format sarif > storeready.sarif
|
|
79
|
+
- name: Upload findings
|
|
80
|
+
if: always()
|
|
81
|
+
uses: github/codeql-action/upload-sarif@v3
|
|
82
|
+
with:
|
|
83
|
+
sarif_file: storeready.sarif
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
[Continuous integration](docs/ci.md) has a complete workflow, other CI systems, and baselines
|
|
87
|
+
for adopting storeready on an existing app.
|
|
88
|
+
|
|
89
|
+
## Documentation
|
|
90
|
+
|
|
91
|
+
- [Getting started](docs/getting-started.md)
|
|
92
|
+
- [Checks](docs/checks/index.md) and [deadlines](docs/deadlines.md)
|
|
93
|
+
- [Command line](docs/usage.md) and [exit codes](docs/usage.md#exit-codes)
|
|
94
|
+
- [Output formats](docs/output-formats.md)
|
|
95
|
+
- [Continuous integration](docs/ci.md)
|
|
96
|
+
- [Versioning](docs/versioning.md)
|
|
97
|
+
- [FAQ](docs/faq.md)
|
|
98
|
+
- [Architecture](docs/architecture.md) and [Python API](docs/python-api.md)
|
|
99
|
+
|
|
100
|
+
## Limitations
|
|
101
|
+
|
|
102
|
+
- A clean report doesn't mean the app will be approved. App review also covers behaviour,
|
|
103
|
+
content and metadata.
|
|
104
|
+
- storeready finds API use from the symbols in the binaries. Code that reaches an API another
|
|
105
|
+
way can be missed. Each check's page lists its limitations.
|
|
106
|
+
- Apple doesn't publish how its upload checks work. When accepted App Store apps break a rule
|
|
107
|
+
Apple documents, storeready reports that rule as a note.
|
|
108
|
+
|
|
109
|
+
## Contributing
|
|
110
|
+
|
|
111
|
+
Reports of wrong findings and of rule changes are especially welcome. See
|
|
112
|
+
[CONTRIBUTING.md](CONTRIBUTING.md) to set up, add a check or update a rule. To report a
|
|
113
|
+
security problem, see [SECURITY.md](SECURITY.md).
|
|
114
|
+
|
|
115
|
+
## License
|
|
116
|
+
|
|
117
|
+
storeready is licensed under the [Apache License 2.0](LICENSE). See [NOTICE](NOTICE) for
|
|
118
|
+
attribution. "Android" and "Google Play" are trademarks of Google LLC; "Apple", "App Store",
|
|
119
|
+
"iOS" and "Xcode" are trademarks of Apple Inc. storeready is not affiliated with either.
|
|
120
|
+
|
|
121
|
+
[pypi-badge]: https://img.shields.io/pypi/v/storeready
|
|
122
|
+
[pypi]: https://pypi.org/project/storeready/
|
|
123
|
+
[ci-badge]: https://github.com/msr2604/storeready/actions/workflows/ci.yml/badge.svg?branch=main
|
|
124
|
+
[ci]: https://github.com/msr2604/storeready/actions/workflows/ci.yml
|
|
125
|
+
[python-badge]: https://img.shields.io/badge/python-3.12%20%7C%203.13%20%7C%203.14-blue
|
|
126
|
+
[python]: https://www.python.org
|
|
127
|
+
[license-badge]: https://img.shields.io/badge/license-Apache--2.0-blue
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# storeready
|
|
2
|
+
|
|
3
|
+
storeready 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 storeready
|
|
9
|
+
storeready check app-release.aab
|
|
10
|
+
storeready check MyApp.ipa
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
```text
|
|
14
|
+
com.mattermost.rnbeta 2.46.2 (Mattermost.ipa) — rules as of 2026-11-30
|
|
15
|
+
Frameworks found: React Native
|
|
16
|
+
Result: breaks 1, note 8.
|
|
17
|
+
|
|
18
|
+
[BREAKS] liquid-glass: Works without UIDesignRequiresCompatibility
|
|
19
|
+
- (breaks) UIDesignRequiresCompatibility keeps the old look only until you build with the iOS 27 SDK.
|
|
20
|
+
Apple ignores the key in apps built with the iOS 27 SDK or later.
|
|
21
|
+
Fix: Update custom bars, tab bars, sheets and colours for the new design, test them, then remove UIDesignRequiresCompatibility from Info.plist.
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
storeready reads the build itself, so native, Flutter, React Native and Kotlin Multiplatform
|
|
25
|
+
apps are checked the same way, with no SDK, Xcode or device. Output is text, JSON or SARIF.
|
|
26
|
+
|
|
27
|
+
- [Documentation](https://github.com/msr2604/storeready/tree/main/docs)
|
|
28
|
+
- [Checks](https://github.com/msr2604/storeready/blob/main/docs/checks/index.md) and
|
|
29
|
+
[deadlines](https://github.com/msr2604/storeready/blob/main/docs/deadlines.md)
|
|
30
|
+
- [Continuous integration](https://github.com/msr2604/storeready/blob/main/docs/ci.md)
|
|
31
|
+
- [Changelog](https://github.com/msr2604/storeready/blob/main/CHANGELOG.md)
|
|
32
|
+
|
|
33
|
+
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 = "storeready"
|
|
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/storeready"
|
|
34
|
+
Documentation = "https://github.com/msr2604/storeready/tree/main/docs"
|
|
35
|
+
Source = "https://github.com/msr2604/storeready"
|
|
36
|
+
Issues = "https://github.com/msr2604/storeready/issues"
|
|
37
|
+
Changelog = "https://github.com/msr2604/storeready/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
|
+
storeready = "storeready.cli:main"
|
|
44
|
+
|
|
45
|
+
[tool.setuptools.packages.find]
|
|
46
|
+
where = ["src"]
|
|
47
|
+
|
|
48
|
+
[tool.setuptools.package-data]
|
|
49
|
+
storeready = ["knowledge/*.toml", "py.typed"]
|
|
50
|
+
|
|
51
|
+
[tool.setuptools.dynamic]
|
|
52
|
+
version = { attr = "storeready.__version__" }
|
|
53
|
+
|
|
54
|
+
[tool.pytest.ini_options]
|
|
55
|
+
testpaths = ["tests"]
|
|
56
|
+
pythonpath = ["src", "tests"]
|
|
57
|
+
addopts = "-q --strict-markers"
|
|
58
|
+
|
|
59
|
+
[tool.ruff]
|
|
60
|
+
line-length = 100
|
|
61
|
+
src = ["src", "tests"]
|
|
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/storeready/*/checks/*.py" = ["E501"]
|
|
69
|
+
|
|
70
|
+
[tool.mypy]
|
|
71
|
+
strict = true
|
|
72
|
+
mypy_path = "src"
|
|
@@ -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 storeready.core import Facts, Finding, Platform
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
def _knowledge(name: str) -> dict[str, Any]:
|
|
19
|
+
text = resources.files("storeready.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 storeready.android.checks import CHECKS
|
|
4
|
+
from storeready.android.load import load
|
|
5
|
+
from storeready.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"]
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"""Android checks: one module per store rule, each implementing core.Check[AndroidApp]."""
|
|
2
|
+
|
|
3
|
+
from storeready.android.checks.edge_to_edge import EdgeToEdge
|
|
4
|
+
from storeready.android.checks.large_screen import LargeScreen
|
|
5
|
+
from storeready.android.checks.page_size import PageSize
|
|
6
|
+
from storeready.android.checks.target_api import TargetApi
|
|
7
|
+
|
|
8
|
+
CHECKS = (TargetApi(), PageSize(), LargeScreen(), EdgeToEdge())
|
|
9
|
+
|
|
10
|
+
__all__ = ["CHECKS", "EdgeToEdge", "LargeScreen", "PageSize", "TargetApi"]
|