Skip to content

Commit

Permalink
fix(SmaliPatching): remove CRLF and trailing newlines
Browse files Browse the repository at this point in the history
rushiiMachine committed Jan 11, 2025
1 parent 3edbc03 commit 441a84e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -47,6 +47,8 @@ class SmaliPatchStep : Step(), IDexProvider, KoinComponent {

val lines = zip.openEntry(patchFile)!!.read()
.decodeToString()
.replace("\r\n", "\n") // Replace CRLF endings with LF endings to be sure here
.trimEnd { it == '\n' } // Remove trailing new lines to work with diff output properly
.split('\n')

try {

0 comments on commit 441a84e

Please sign in to comment.