android_file_picker 1.1.0
android_file_picker: ^1.1.0 copied to clipboard
Android implementation of the file_picker plugin, supporting file picking, saving, and Storage Access Framework (SAF) URI grants.
1.1.0 #
- Implemented
PlatformFile.lengthSync(), returning the length Android already reports for a picked file synchronously.
1.0.4 #
-
Restored the module local
buildscriptclasspath (AGP 8.5.2, Kotlin Gradle Plugin 1.8.22) that #2154 removed. It fixedUnresolved reference compileSdk/namespace/minSdkon project configurations using AGP 9 withandroid.newDsl=falseand custom root level Gradle configuration, reported and confirmed fixed against a real affected project in #2170.This is a temporary workaround, not a permanent fix. Pinning an older AGP via a module's own
buildscriptclasspath while the consuming app applies a newer one through thepluginsblock is generally discouraged, and #2154 removed it for exactly that reason. Restoring it papers over a gap in Flutter's own AGP 9newDslmigration, which is still in progress (flutter/flutter#180137): the interim compatibility shim that letsandroid.newDsl=falseprojects use AGP 9 does not appear to reliably reach plugin modules that don't declare their own classpath, at least for some custom root level Gradle setups. Remove this block again once that migration lands upstream andandroid.newDsl=falseis no longer needed.
1.0.3 #
- Tightened the
file_picker_platform_interfacelower bound to^3.2.0. This package'spickFile()/pickFiles()signatures referenceDarwinOptions, added in that version, so resolving against an older one would fail to compile.
1.0.2 #
- Removed the stale
buildscriptclasspath from the Android module, which pinned AGP 8.5.2 and Kotlin Gradle Plugin 1.8.22 in a module that supports AGP 9 and Kotlin 2.3. #2154 - Fixed
allowedExtensionsfilters being discarded entirely and falling back to showing all files when only some of the requested extensions had no mime type known to Android (e.g.pfx,p12). Now the extensions that do resolve to a mime type are still used to filter, and*/*is only used when none of them resolve.
1.0.1 #
- Improved package description, added example, and added missing API documentation.
1.0.0 #
- Initial release of Android implementation package for
file_picker. - Removed the Apache Tika dependency (~300 KB) used for MIME type detection in
saveFile(). MIME types are now resolved from the file name extension viaMimeTypeMap, withURLConnection.guessContentTypeFromStreamas a content-sniffing fallback when no extension is available. #2101