Compare commits

..

4 Commits

Author SHA1 Message Date
semantic-release-bot
f0b3eb7800 chore(release): 1.0.1-dev.1 [skip ci]
## [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](8ddc6e9d6f))
2023-09-24 20:40:37 +00:00
oSumAtrIX
8ddc6e9d6f fix: Check if file exists before trying to open it 2023-09-24 22:36:37 +02:00
semantic-release-bot
9db89f0aac chore(release): 1.0.0 [skip ci]
# 1.0.0 (2023-09-23)

### Features

* Add initial project structure ([833291d](833291dc68))
2023-09-23 16:09:07 +00:00
oSumAtrIX
dfea9492ed chore: Merge branch dev to main (#1) 2023-09-23 18:07:25 +02:00
3 changed files with 21 additions and 2 deletions

View File

@@ -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)

View File

@@ -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

View File

@@ -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