Check if your android resources are being unused.
Project description
Android Resources Checker
What
This program will inspect the resources of your app and help you understand which ones are not being used and could potentially be removed.
Main features:
- Identify the unused resources in your android project.
- Identify the unused resources in your android library (when you have a multi-repo setup)
- Listing of the unused resources (name, type and size)
- Deletion of the unused resources
Installing
This program requires Python, supporting from 3.8.x and 3.9.x
In order to install run:
pip install -U android-resources-checker
Using
Inspecting your app resources.
Imagining your app in the project subject-app
, you can trigger the resources inspection by running:
android-resources-checker --app /path/to/subject-app
Inspecting your library app resources.
In the case you have two projects in separate repos, where a client-app
depends on a lib-app
, you can check the unused
resources of the library app by running:
android-resources-checker \
--app /path/to/lib-app \
--client /path/to/client-app-1 \
--client /path/to/client-app-2
An example of a run could look like this:
Reports
The default report will be always be displayed in your stdout.
You can specify an optional directory where to write the reports in the form of CSV files. For that use the --reports-dir
option.
For example:
android-resources-checker \
--app /path/to/app \
--reports-dir /path/to/reports
License
Copyright (c) 2021 Dotanuki Labs, Fabio Carballo
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for android-resources-checker-0.0.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e7f348f7969e7c72e8308750d6e585b652c561fb628899c17fc2a2d8bf5403a |
|
MD5 | 0a56a89ea5bbd34d60fd6f6bfc2bb838 |
|
BLAKE2b-256 | f54053baa7885bd0542693038948c1f9e530a58b0276e19fa46972af7ac015e2 |
Hashes for android_resources_checker-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76ef92da362b64d29caa6fbe24705f7a68893a0932cdab83e30ac11ac65bf6bb |
|
MD5 | fb15a170f7a5b4fa8a4c18c7297c704b |
|
BLAKE2b-256 | ab6ccbcc7686622b3500f33e272dac8836b7cfb7d7ad2db2f5161aa4cadc47a7 |