open_app_file 4.0.2 copy "open_app_file: ^4.0.2" to clipboard
open_app_file: ^4.0.2 copied to clipboard

A plugin to open files the app has permission to access with default system-provided applications.

4.0.2 #

  • Added locate parameter for MacOS reveal option (credit @ujwalbasnet1)
  • More extensive documentation
  • Dependencies versions bump

4.0.1 #

  • A lot more straightforward Android library implementation
  • Extended example for testing Android permissions and different file locations

4.0.0 #

  • BREAKING CHANGE: parameter type renamed to mimeType.
  • BREAKING CHANGE: filePath parameter is now not nullable instead of null value check with assert.
  • BREAKING CHANGE: linuxDesktopName parameter removed, will always use xdg-open on Linux. If there's a reason to use anything else, there should be a way to detect xdg availability and perhaps it should be a part of the library.
  • BREAKING CHANGE: linuxByProcess parameter removed, will always use FFI to open files on Linux. The reasoning behind its existence is unclear, if there's a demand for the Process alternative, the use cases should be properly documented.
  • BREAKING CHANGE: web implementation changed in favor of creating a dynamic AnchorElement with provided file URL and trying to download the associated file by clicking on it.
  • Provided clearer explanations of mimeType and uti parameters.
  • Extended example to cover basic cases for different platforms.
  • Code cleanup and refactoring.

3.2.4 #

  • allowing all app-scoped paths (also external) on Android (credit @joymyr)
  • fixed .podspec file name (credit @Fernandomr88 and @ictsolved)
  • changed jcenter repo in favor of mavenCentral
  • renamed provider paths file on Android to reduce probability of collision with other libraries
  • migrated to v2 embedding on Android
  • migrated Android code to Kotlin, cleaned up and refactored
  • updated example

3.2.3 #

  • ffi version bump

3.2.2+4 #

  • fixing renaming and deprecation issues

3.2.2 #

  • removed REQUEST_INSTALL_PACKAGES permission on Android
  • removed READ_EXTERNAL_STORAGE permission on Android
  • added support of .ics file type (text/calendar MIME type)

3.2.1 #

  • Add command parser before create system call #144 (thanks to @mludovico)
  • Fix startActivity() might have NPE issue with filePath on Android (thanks to @AlexV525)
  • Add error type return when file path is nil on iOS

3.2.0 #

  • add csv/kml/gpx/torrent support on Android
  • remove android:requestLegacyExternalStorage
  • fix Deprecated API warning when build on Android
  • delete uti, DocumentInteraction will be retrieved automatically on iOS (thanks to @std-c)
  • fix returns wrong reponse on Windows

3.1.0 #

  • upgrade FFI 1.0.0 (thanks to @mit-mit)
  • add linuxByProcess parameter (thanks to @mx1up)
  • Migrate to Dart null safety system (thanks to @orevial)

3.0.3 #

  • upgrade compileSdkVersion

3.0.2 #

  • add storage compatibility mode for AndroidQ.
  • fix #106 #100 #74
  • fix multiple file providers. (thanks to @jawa0919)
  • Take file extension in lowercase for comparison.(thanks to @kluverua)
  • Fixed a typo in the error message for fileNotFound.(thanks to @sebas642)

3.0.1 #

  • fix web parameter error
  • Replace result value from String to OpenResult.

3.0.0 #

  • updated to the v2 Android Plugin APIs
  • Distinguish android errors (No APP found and others)
  • add web support
  • add pc support

2.1.1 #

  • rollback 2.0.3

2.1.0-pre.1 #

  • add web support(beta)
  • add pc support(beta)

2.0.3 #

  • change use FileProvider from Android M to Android N

2.0.2 #

  • catch No Activity found to handle Intent exception
  • Optimize request REQUEST_INSTALL_PACKAGES permission on Android O

2.0.1+2 #

  • fix android M FLAG_GRANT_READ_URI_PERMISSION

2.0.1+1 #

  • Fixed crash caused by third party plug-in request permissions

2.0.1 #

  • migrate to androidx

1.3.0 #

  • roll back support

1.2.3+1 #

  • request READ_EXTERNAL_STORAGE when the file is not in the app directory

1.2.3 #

  • Optimize permission request logic on android

1.2.2+2 #

  • fix crash when requestPermission

1.2.2+1 #

  • migrate to androidx

1.2.2 #

  • ask for permission when needed

1.2.1 #

  • fix somethings

1.2.0 #

  • Add custom parameters,"type" android,"uti" iOS

1.1.1 #

  • fix startActivity crash in android

1.1.0 #

  • fix ios open file

1.0.7 #

  • resolve conflict with other plugins about FileProvider and multi appcompat-v7 compile

1.0.6 #

  • resolve conflict with image_provider plugin

1.0.5 #

  • Just Support >=2.0.0-dev.28.0

1.0.4 #

  • Just Support Dart2

1.0.3 #

  • Just Support Dart2

1.0.2 #

  • Ios Support added and support android 7.0 or above
27
likes
150
pub points
95%
popularity

Publisher

unverified uploader

A plugin to open files the app has permission to access with default system-provided applications.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

ffi, flutter

More

Packages that depend on open_app_file