Skip to content

1.0.0

Compare
Choose a tag to compare
@anggrayudi anggrayudi released this 19 Jan 19:09
· 61 commits to master since this release

Features

  • Added ZIP compression & decompression (feature #49):
    • List<DocumentFile>.compressToZip()
    • DocumentFile.decompressZip()
  • Added functions:
    • MediaStoreCompat.deleteEmptyMediaFiles()
    • MediaFile.presentsInSafDatabase
    • MediaFile.hasZeroLength
    • MediaFile.presentsInSafDatabase

Breaking Changes

  • Renamed extension function closeStream() to closeStreamQuietly() (issue #60)
  • FileDescription.mimeType now returns appropriate mime type. Using image/* or */* will return application/octet-stream
  • Deleted MediaFile.exists
  • MediaFile.isEmpty now returns true if the file does not exists or has zero length.
  • MediaFile.renameTo() now throws UnsupportedOperationException on Android 10+.

Fixes

  • Fixed issue #76
  • More carefully when substring file extension. Thanks to MimeType.hasExtension()