Skip to content

Glockx/RUnusedAssetCleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RUnusedAssetCleaner

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.

Features

  • 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 Reference

Command Description
-d Delete Unused Image Assets From Project Permentantly.
-s (Enabled By Default) Save Search Result As JSON File To The Desktop.

Run Locally

Clone the project

git clone https://github.com/Glockx/RUnusedAssetCleaner

Go to the project directory

cd RUnusedAssetCleaner

Install depedencies:

Instruction (MacOS, Linux)

Install ripgrep

Open

AssetCleaner.xcworkspace

Build Project

Run or Archive on Xcode

Execution

- Copy Executable to the Project Folder

- ./AssetCleaner [Arguments...]

License

GPL3

About

Delete Unused Image Asset by R.swift

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages