mirror of
https://github.com/ReVanced/revanced-library.git
synced 2026-01-11 22:06:18 +00:00
Compare commits
4 Commits
v1.0.0-dev
...
v1.0.1-dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f0b3eb7800 | ||
|
|
8ddc6e9d6f | ||
|
|
9db89f0aac | ||
|
|
dfea9492ed |
14
CHANGELOG.md
14
CHANGELOG.md
@@ -1,3 +1,17 @@
|
||||
## [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,4 +1,4 @@
|
||||
org.gradle.parallel = true
|
||||
org.gradle.caching = true
|
||||
kotlin.code.style = official
|
||||
version = 1.0.0-dev.1
|
||||
version = 1.0.1-dev.1
|
||||
|
||||
@@ -13,7 +13,12 @@ import java.util.zip.Deflater
|
||||
class ZipFile(file: File) : Closeable {
|
||||
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 val compressionLevel = 5
|
||||
|
||||
Reference in New Issue
Block a user