fix(SmaliPatching): remove CRLF and trailing newlines
This commit is contained in:
parent
3edbc03f3a
commit
441a84ef66
1 changed files with 2 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue