Revert to included libzip
This commit is contained in:
parent
35eaae73a8
commit
ea0ed2066c
2 changed files with 6 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue