mirror of
https://github.com/ReVanced/revanced-library.git
synced 2026-01-18 08:53:57 +00:00
Compare commits
8 Commits
v1.0.0-dev
...
v1.0.2-dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fc61954e5d | ||
|
|
5993f7e568 | ||
|
|
fda383ade5 | ||
|
|
5aab127d9b | ||
|
|
f0b3eb7800 | ||
|
|
8ddc6e9d6f | ||
|
|
9db89f0aac | ||
|
|
dfea9492ed |
28
CHANGELOG.md
28
CHANGELOG.md
@@ -1,3 +1,31 @@
|
|||||||
|
## [1.0.2-dev.1](https://github.com/ReVanced/revanced-library/compare/v1.0.1...v1.0.2-dev.1) (2023-09-25)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Only load the keystore once per instantiation ([5993f7e](https://github.com/ReVanced/revanced-library/commit/5993f7e568543c777bee51a140c34fa8953a178a))
|
||||||
|
|
||||||
|
## [1.0.1](https://github.com/ReVanced/revanced-library/compare/v1.0.0...v1.0.1) (2023-09-24)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Check if file exists before trying to open it ([8ddc6e9](https://github.com/ReVanced/revanced-library/commit/8ddc6e9d6f3c41c1528e0d43156d7d811dd6be40))
|
||||||
|
|
||||||
|
## [1.0.1-dev.1](https://github.com/ReVanced/revanced-library/compare/v1.0.0...v1.0.1-dev.1) (2023-09-24)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* Check if file exists before trying to open it ([8ddc6e9](https://github.com/ReVanced/revanced-library/commit/8ddc6e9d6f3c41c1528e0d43156d7d811dd6be40))
|
||||||
|
|
||||||
|
# 1.0.0 (2023-09-23)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* Add initial project structure ([833291d](https://github.com/ReVanced/revanced-library/commit/833291dc68568f11afbf00e443cc857313489424))
|
||||||
|
|
||||||
# 1.0.0-dev.1 (2023-09-23)
|
# 1.0.0-dev.1 (2023-09-23)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
org.gradle.parallel = true
|
org.gradle.parallel = true
|
||||||
org.gradle.caching = true
|
org.gradle.caching = true
|
||||||
kotlin.code.style = official
|
kotlin.code.style = official
|
||||||
version = 1.0.0-dev.1
|
version = 1.0.2-dev.1
|
||||||
|
|||||||
@@ -116,8 +116,9 @@ object ApkSigner {
|
|||||||
logger.fine("Creating keystore")
|
logger.fine("Creating keystore")
|
||||||
|
|
||||||
return KeyStore.getInstance("BKS", BouncyCastleProvider.PROVIDER_NAME).apply {
|
return KeyStore.getInstance("BKS", BouncyCastleProvider.PROVIDER_NAME).apply {
|
||||||
|
load(null)
|
||||||
|
|
||||||
entries.forEach { entry ->
|
entries.forEach { entry ->
|
||||||
load(null)
|
|
||||||
// Add all entries to the keystore.
|
// Add all entries to the keystore.
|
||||||
setKeyEntry(
|
setKeyEntry(
|
||||||
entry.alias,
|
entry.alias,
|
||||||
|
|||||||
@@ -13,7 +13,12 @@ import java.util.zip.Deflater
|
|||||||
class ZipFile(file: File) : Closeable {
|
class ZipFile(file: File) : Closeable {
|
||||||
private var entries: MutableList<ZipEntry> = mutableListOf()
|
private var entries: MutableList<ZipEntry> = mutableListOf()
|
||||||
|
|
||||||
private val filePointer: RandomAccessFile = RandomAccessFile(file, if (file.canWrite()) "rw" else "r")
|
// Open file for writing if it doesn't exist (because the intention is to write) or is writable.
|
||||||
|
private val filePointer: RandomAccessFile = RandomAccessFile(
|
||||||
|
file,
|
||||||
|
if (!file.exists() || file.canWrite()) "rw" else "r"
|
||||||
|
)
|
||||||
|
|
||||||
private var centralDirectoryNeedsRewrite = false
|
private var centralDirectoryNeedsRewrite = false
|
||||||
|
|
||||||
private val compressionLevel = 5
|
private val compressionLevel = 5
|
||||||
|
|||||||
Reference in New Issue
Block a user