Repository navigation
v0.1.3
What's Changed
resource-pruner-core
Bug fixes:
- Preserve resource references inside Kotlin string templates (PR #5)
- Expressions inside
${...}templates are now preserved while replacing regular string content - Enables detection of resource references like
R.string.xxxinside string templates in Composable functions
- Expressions inside
- Support Unicode characters in resource names (PR #5)
- Resource names with Japanese or other Unicode characters (e.g.,
R.array.ほげほげ) are now correctly detected
- Resource names with Japanese or other Unicode characters (e.g.,
- Improve framework style name detection in XmlUsageDetector (PR #5)
- Use more specific patterns instead of broad prefixes for framework style detection
- Prevents user-defined styles like
Theme.Examplefrom being incorrectly excluded
resource-pruner-gradle-plugin
New features:
- Add
excludeResourceTypesoption to preserve specific resource types (PR #6)- Allows excluding entire resource types (e.g.,
menu,raw) from pruning regardless of detected usage - Example:
excludeResourceTypes.set(listOf("menu", "raw"))
- Allows excluding entire resource types (e.g.,
Documentation
- Add
excludeResourceTypesoption to README (PR #6)
Full Changelog: v0.1.2...v0.1.3