An Experimental Library To Find Or Clear Unused Image Assets Used By R.Swift 🛃
Be aware: This is a experimental project yet, not fully tested. Using the library is your own responsibility.
-
Find Unused Image Asset Recursively with ripgrep
-
ripgrep will respect gitignore rules and automatically skip hidden files/directories and binary files,
-
Save Search Result As JSON File To The Desktop (Enabled By Default),
-
Delete Unused Image Assets,
-
Show Total Size Of The Unused Assets.
Command | Description |
---|---|
-d |
Delete Unused Image Assets From Project Permentantly. |
-s (Enabled By Default) |
Save Search Result As JSON File To The Desktop. |
Clone the project
git clone https://github.com/Glockx/RUnusedAssetCleaner
Go to the project directory
cd RUnusedAssetCleaner
Install depedencies:
Install ripgrep
Open
AssetCleaner.xcworkspace
Build Project
Run or Archive on Xcode
Execution
- Copy Executable to the Project Folder
- ./AssetCleaner [Arguments...]