Skip to content

[FIX] Remove unused resources#4821

Draft
jesmrec wants to merge 1 commit intomasterfrom
fix/remove_unused_resources
Draft

[FIX] Remove unused resources#4821
jesmrec wants to merge 1 commit intomasterfrom
fix/remove_unused_resources

Conversation

@jesmrec
Copy link
Copy Markdown
Collaborator

@jesmrec jesmrec commented Apr 13, 2026

Related Issues

App:

  • Add changelog files for the fixed issues in folder changelog/unreleased. More info here
  • Add feature to Release Notes in ReleaseNotesViewModel.kt creating a new ReleaseNote() with String resources (if required)

QA

@jesmrec jesmrec force-pushed the fix/remove_unused_resources branch 2 times, most recently from e124a23 to e9d3f66 Compare April 14, 2026 06:46
@jesmrec jesmrec force-pushed the fix/remove_unused_resources branch from e9d3f66 to acf2a3a Compare April 14, 2026 15:07
@jesmrec
Copy link
Copy Markdown
Collaborator Author

jesmrec commented Apr 14, 2026

The following script will check all strings*.xml files and remove those ones that are not in the list

#!/usr/bin/env bash

NAMES_FILE="strings_to_delete.txt"

find . -type f -path "*/res/values*/strings*.xml" | while IFS= read -r file; do
  echo "Processing: $file"

  while IFS= read -r name; do
    gsed -i \
      -e "/<string[^>]*name=\"$name\"[^>]*>.*<\/string>/d" \
      -e "/<string[^>]*name=\"$name\"[^>]*>/,/<\/string>/d" \
      "$file"
  done < "$NAMES_FILE"
done

echo "Done."

List:

strings_to_delete.txt.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant