Skip to content

Commit

Permalink
Merge pull request #143 from arkivanov/zip-entry-name
Browse files Browse the repository at this point in the history
Add name for the zip entry in Android StateKeeper
  • Loading branch information
arkivanov authored Jan 27, 2024
2 parents b433410 + 218ed40 commit 055962d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ internal actual fun <T : Any> T.serialize(strategy: SerializationStrategy<T>): B
ByteArrayOutputStream().use { output ->
ZipOutputStream(output).use { zip ->
zip.setLevel(7)
zip.putNextEntry(ZipEntry(""))
zip.putNextEntry(ZipEntry("Entry"))

zip.buffered().use { bufferedOutput ->
@OptIn(ExperimentalSerializationApi::class)
Expand Down

0 comments on commit 055962d

Please sign in to comment.