refactor: fix spelling mistake & add private attribute to field

This commit is contained in:
oSumAtrIX 2022-07-19 00:48:01 +02:00
parent a942a57364
commit 9add2f9e82
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -2,11 +2,10 @@ package app.revanced.utils.signing.align
import app.revanced.utils.signing.align.zip.ZipFile
import java.io.File
import java.util.*
internal object ZipAligner {
const val DEFAULT_ALIGNMENT = 4
const val LIBRARY_ALIGNEMNT = 4096
private const val DEFAULT_ALIGNMENT = 4
private const val LIBRARY_ALIGNMENT = 4096
fun align(input: File, output: File) {
val inputZip = ZipFile(input)
@ -16,7 +15,7 @@ internal object ZipAligner {
val data = inputZip.getDataForEntry(entry)
if (entry.compression == 0.toUShort()) {
val alignment = if (entry.fileName.endsWith(".so")) LIBRARY_ALIGNEMNT else DEFAULT_ALIGNMENT
val alignment = if (entry.fileName.endsWith(".so")) LIBRARY_ALIGNMENT else DEFAULT_ALIGNMENT
outputZip.addEntryAligned(entry, data, alignment)
} else {