Revert to included libzip

This commit is contained in:
zt64 2022-03-13 13:24:50 -04:00
parent 35eaae73a8
commit ea0ed2066c
2 changed files with 6 additions and 4 deletions

View file

@ -58,11 +58,11 @@ kotlin {
}
dependencies {
// implementation(fileTree("./libs"))
implementation(fileTree("./libs"))
// core dependencies
implementation("androidx.appcompat:appcompat:1.4.1")
implementation("androidx.core:core-ktx:1.7.0")
implementation("com.github.aliucord:libzip:1.0.1")
implementation("androidx.core:core-splashscreen:1.0.0-beta01")
// compose dependencies

View file

@ -18,8 +18,6 @@ import java.security.cert.Certificate
import java.security.cert.X509Certificate
import java.util.*
private class KeySet(val publicKey: X509Certificate, val privateKey: PrivateKey)
object Signer {
private val password = "password".toCharArray()
@ -79,6 +77,7 @@ object Signer {
fun signApk(apkFile: File) {
val outputApk = aliucordDir.resolve("Aliucord-Signed.apk")
ApkSigner.Builder(listOf(signerConfig))
.setV1SigningEnabled(false)
.setV2SigningEnabled(true)
@ -88,6 +87,9 @@ object Signer {
.setOutputApk(outputApk)
.build()
.sign()
outputApk.renameTo(apkFile)
}
private class KeySet(val publicKey: X509Certificate, val privateKey: PrivateKey)
}