Skip to content

v0.1.3

Choose a tag to compare

@syarihu syarihu released this 23 Jan 01:50
· 144 commits to main since this release
d3fb8d8

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.xxx inside string templates in Composable functions
  • Support Unicode characters in resource names (PR #5)
    • Resource names with Japanese or other Unicode characters (e.g., R.array.ほげほげ) are now correctly detected
  • 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.Example from being incorrectly excluded

resource-pruner-gradle-plugin

New features:

  • Add excludeResourceTypes option 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"))

Documentation

  • Add excludeResourceTypes option to README (PR #6)

Full Changelog: v0.1.2...v0.1.3