gradle-unused-resources-remover-plugin icon indicating copy to clipboard operation
gradle-unused-resources-remover-plugin copied to clipboard

Unicode sequence replaced by unicode character

Open fmatosqg opened this issue 3 years ago • 1 comments

Overview

In files that are modified by this plugin, some lines are undesirably changed as well.

In my project, the following string <string name="more_app_version" tools:ignore="PluralsCandidate">&#169; %1$d xxxxxx v%2$s%3$s</string>

was replaced (not removed) by the following string

<string name="more_app_version" tools:ignore="PluralsCandidate">© %1$d xxxxxx v%2$s%3$s</string>

Description

To reproduce:

Create a strings.xml file that

  • contains at least 1 unused resource and
  • at least 1 string resource that is still used and contains a unicode sequence.

Verify behavior

  • expected: remove unused resource
  • actual behavior: unused resource is removed AND used resource is modified

fmatosqg avatar Nov 25 '21 00:11 fmatosqg

the android studio provider remove unused res button,why didn't use it?

king-ma1993 avatar Apr 27 '22 06:04 king-ma1993