Skip to content

Releases: anggrayudi/SimpleStorage

1.3.0

11 Apr 09:44
Compare
Choose a tag to compare

Features

  • Added file & folder pickers support for API 19

1.2.2

23 Mar 06:59
Compare
Choose a tag to compare

Breaking Changes

  • Downgrade to Kotlin 1.5 to support DexGuard 8

1.2.1

21 Mar 11:56
Compare
Choose a tag to compare

Fixes

1.2.0

19 Mar 19:05
Compare
Choose a tag to compare

Features

  • Increase target SDK to 31

1.1.0

24 Jan 20:05
Compare
Choose a tag to compare

Features

  • Added extension functions:
    • DocumentFile.findParent() to overcome DocumentFile.parentFile drawbacks.
    • DocumentFile.childOf()
    • List<MediaFile>.compressToZip()
    • MediaFile.decompressZip()

Breaking Changes

  • ZipCompressionCallback and ZipDecompressionCallback now requires generic data type, i.e. DocumentFile or MediaFile
  • Added ProGuard rules to keep fields in DocumentFile. See storage/consumer-rules.pro

Fixes

  • Fixed issue #79
  • Fixed the sample code

1.0.0

19 Jan 19:09
Compare
Choose a tag to compare

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

0.14.0

15 Dec 04:47
Compare
Choose a tag to compare

Features

  • Added initial path for folder picker (#62)

Fixes

  • Fix issue #67

0.13.0

18 Sep 13:11
Compare
Choose a tag to compare

Features

  • Request storage access for specific folder with SimpleStorageHelper.requestStorageAccess(expectedBasePath) on API 30+
  • Create media based on full path with MediaStoreCompat.createMedia()

Breaking Changes

  • Storage runtime permission no longer prompts on API 29+

Fixes

0.12.0

08 Aug 16:13
Compare
Choose a tag to compare

Features

  • Multiple files picker (#43).
  • File receiver. Call SimpleStorage.checkIfFileReceived() in onCreate() and onNewIntent(), then FileReceiverCallback will be triggered if any files received via Intent.ACTION_SEND or Intent.ACTION_SEND_MULTIPLE.
  • Lazy init callbacks in SimpleStorageHelper.

0.11.1

22 Jul 09:34
Compare
Choose a tag to compare

Fixes

  • Selecting the root path of external storage on Android 10 (folder picker) now grants access automatically.
  • Better wording for requesting root path access.