p-hatan/ mirror

pub repository

mirror.p-hatan.com

path_provider

1.3.0

Flutter plugin for getting commonly used locations on the Android & iOS file systems, such as the temp and app data directories.

Download archive

Readme

path_provider

pub package

A Flutter plugin for finding commonly used locations on the filesystem. Supports iOS and Android.

Usage

To use this plugin, add path_provider as a dependency in your pubspec.yaml file.

Example

Directory tempDir = await getTemporaryDirectory();
String tempPath = tempDir.path;

Directory appDocDir = await getApplicationDocumentsDirectory();
String appDocPath = appDocDir.path;

Please see the example app of this plugin for a full example.

Changelog

1.3.0

  • Added iOS-only support for getLibraryDirectory.
  • Update integration tests and example test.
  • Update example app UI to use a ListView show the list of content.
  • Update .gitignore to include Xcode build output folder **/DerivedData/

1.2.2

  • Correct the integration test for Android's getApplicationSupportDirectory call.
  • Introduce setMockPathProviderPlatform for API for tests.
  • Adds missing unit and integration tests.

1.2.1

  • Fix fall through bug.

1.2.0

  • On Android, getApplicationSupportDirectory is now supported using getFilesDir.
  • getExternalStorageDirectory now returns null instead of throwing an exception if no external files directory is available.

1.1.2

  • getExternalStorageDirectory now uses getExternalFilesDir on Android.

1.1.1

  • Cast error codes as longs in iOS error strings to ensure compatibility between arm32 and arm64.

1.1.0

  • Added getApplicationSupportDirectory.
  • Updated documentation for getApplicationDocumentsDirectory to suggest using getApplicationSupportDirectory on iOS and getExternalStorageDirectory on Android.
  • Updated documentation for getTemporaryDirectory to suggest using it for caches of files that do not need to be backed up.
  • Updated integration tests and example to reflect the above changes.

1.0.0

  • Added integration tests.

0.5.0+1

  • Log a more detailed warning at build time about the previous AndroidX migration.

0.5.0

  • Breaking change. Migrate from the deprecated original Android Support Library to AndroidX. This shouldn't result in any functional changes, but it requires any Android apps using this plugin to also migrate if they're using the original support library.

0.4.1

  • Updated Gradle tooling to match Android Studio 3.1.2.

0.4.0

  • Breaking change. Set SDK constraints to match the Flutter beta release.

0.3.1

  • Simplified and upgraded Android project template to Android SDK 27.
  • Updated package description.

0.3.0

  • Breaking change. Upgraded to Gradle 4.1 and Android Studio Gradle plugin 3.0.1. Older Flutter projects need to upgrade their Gradle setup as well in order to use this version of the plugin. Instructions can be found here.

0.2.2

  • Add FLT prefix to iOS types

0.2.1+1

  • Updated README

0.2.1

  • Add function to determine external storage directory.

0.2.0

0.1.3

  • Upgrade Android SDK Build Tools to 25.0.3.

0.1.2

  • Add test.

0.1.1

  • Change to README.md.

0.1.0

  • Initial Open Source release.

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add path_provider
pubspec.yaml
name: path_provider
description: Flutter plugin for getting commonly used locations on the Android &
  iOS file systems, such as the temp and app data directories.
author: Flutter Team <flutter-dev@googlegroups.com>
homepage: https://github.com/flutter/plugins/tree/master/packages/path_provider
version: 1.3.0

flutter:
  plugin:
    androidPackage: io.flutter.plugins.pathprovider
    iosPrefix: FLT
    pluginClass: PathProviderPlugin

dependencies:
  flutter:
    sdk: flutter
  platform: ^2.0.0
  meta: ^1.0.5

dev_dependencies:
  flutter_test:
    sdk: flutter
  flutter_driver:
    sdk: flutter
  test: any
  uuid: "^1.0.0"

environment:
  sdk: ">=2.0.0-dev.28.0 <3.0.0"
  flutter: ">=0.1.4 <2.0.0"

Version history

VersionPublishedArchiveSHA-256
0.1.02017-05-03T13:02:53.217875ZDownloada6dd5ca349f5cb748b9fa435cc986bf3c0976704bdf22877f69899f12d371e4f
0.1.12017-05-04T09:24:22.677549ZDownload6e9d01a619d25d21118ac365f2203363e49f0da2a0cd52d5636873a318d56be8
0.1.22017-05-08T12:13:22.304174ZDownloadb5639d4e6509bbe562c836fd8d6e090be4c1c2e7235a6e5efb675c625c416582
0.1.32017-05-09T18:24:35.828590ZDownloade72e51b18244210299a68b31baf754aed474b171a0df88f8b9bf30a3f6d443f9
0.2.02017-05-10T12:16:51.439776ZDownload47354984291e40deba5fe9e92af9fd87a30c440e1296596fff7af11277847777
0.2.1+12017-05-17T07:36:57.487143ZDownloade442ada154cb04fe56602f6962be9b69a7ec403417e337cacee6c97642472931
0.2.22017-12-04T08:35:31.856646ZDownload744b92f4fbaf5fdd80affa7918b0abeffc6a984f0ad0262d77d344e19d466d49
0.3.02017-12-20T13:56:45.483110ZDownload9236407128e905307b7776961b8b2cb303e3af523c792b33e9bc9150276ce731
0.3.12018-01-12T15:08:13.477461ZDownloadfe8250b50db8b4e6f8f462c9359a301eef8c500248e3b1fb64c5a222efc651ee
0.4.02018-03-09T16:11:31.709842ZDownload7abb12c0caad6c6118229808389d7c849c6c07851243c092a48ea97ffc1b8701
0.4.12018-06-01T19:13:23.778477ZDownloadb1938bf07601fcb72c94cdfcbcb6044221bf6ffb1b36e810a87abb66c20c0edb
0.5.02019-01-24T23:22:06.221453ZDownload63c1a6da06550ed9a2d736d378e6fc4756a4ee5e1691fd08c45e25b46087ab0d
0.5.0+12019-02-08T02:02:22.695281ZDownloadc100f37076f107d7eb260ad1779bdc266e9689b43615d813f840a0a01940aa81
1.0.02019-05-03T22:16:42.031749ZDownload8c0ff4b1533cc478ad7bf546a016e8618bbc21ec04c3103c71b2c665e0f4e300
1.1.02019-05-08T23:19:01.896878ZDownload651ba33339d2519b27e7a488358fe2f322dea8fac60f994e24f2ccbda4bc960e
1.1.22019-07-08T15:42:20.450029ZDownload22ddd638dd1fb7421072d6101f8ba2290311c53584bf4d58413cff682d51ea11
1.2.02019-07-24T15:34:14.078653ZDownload2dc54a647fcace8c75e9d58cbc648f0c49fa1f160e7c574209e91817c4155580
1.2.22019-09-04T23:39:16.589060ZDownloade5146d39855e2d97272c2ea0cc142ae5e4a11c58c350975a3c99be8ee167a8e9
1.3.02019-09-05T21:50:01.993167ZDownload94c743f47860dbc0a7b9a08bf647da571f1ced7c02442fc75fd776dcd66db59d
1.3.12019-10-16T22:48:13.700610ZDownload6ace780d2eebc0ffa77c611012d2f91f6f6277bc68916fb9e1eacd7e03b7709b
1.4.02019-10-21T16:37:20.669594ZDownload267c49ffcccfc312ef65eff8fea7f3741e760f8b109dac5a3db8a07856affce0
1.4.22019-11-13T19:00:50.203923ZDownload29aae7fdc5f3d849068e057feed415f05a876a3523ebf5f8d174e5abf39b07fe
1.4.42019-11-20T16:37:54.245102ZDownloadd760ed42dce962562957c56e6033d6bbc70cd2faca8c7040656aedf856bec34b
1.4.52019-11-25T23:17:35.620824ZDownload7e75d8ed4dff1a420e4339cdac4fb07c38311dc67460b3d31ec84a6691ed2b06
1.5.02019-12-07T01:09:12.867733ZDownload088c9b67f3f8821c9560f8f387be8894973e5abada9b2b6d92cee62f163350dd
1.5.12019-12-10T04:45:14.831499ZDownloadcb68b302831f5365bd021bdac6af8eb6be64544d36cf94243095391c7d6b9eae
1.6.02020-01-29T17:34:53.730087ZDownloadc6cf9a11e389c2f7502050ea48f9c5e5630210e0ec668feeff3dc354366c952b
1.6.12020-02-20T23:54:13.508480ZDownload7f141b48e3131bfda0f6343475f0521ebb50becf81dc56eec3dec0cd9eef8766
1.6.42020-03-02T20:16:35.064834ZDownload11628c3b38f3fb95640adc05f358e17264f3976dd33e692443c3254ec45a4103
1.6.52020-03-03T17:39:42.362410ZDownloadb2cf36ac1b26e7ecbea5286e0c451434af47b81a0c33b4ab65cdccb93d221380
1.6.72020-04-21T05:07:02.281768ZDownloadb0715a1dddd326f449d6c328ade0a19c458edae7e13e2fc5791aa1242b3e3dd9
1.6.82020-05-12T03:48:53.387182ZDownloadbd4913044a3bccfa981618c66bf5251b080059efc15a28051b2d4a7940cc7d41
1.6.92020-05-22T00:02:30.806312ZDownload2587a4ee67916009d0ae9d13cdd6c7dfab8cf52eea3b211bc15d2f12d11f0c37
1.6.102020-06-02T19:51:19.881222ZDownload6536e4b0deb2f117b85fda3c8d906d0e352834d2354549ac57a37c723ec17edf
1.6.112020-06-17T17:28:32.251220ZDownloadd5aeaf96ca92dc95deeef64d17d01d2e86b847f499e05324ee1a5eaa77d48064
1.6.142020-08-22T05:10:00.485436ZDownload7b83037397771f3f6d520dccb0da86a5220ba279603afd87662d06482b569ea4
1.6.162020-09-18T19:06:34.437303ZDownload965977f53f125c74af96e8373046871374ce34dd0c50f0dafb5ac64be6f4f436
1.6.172020-09-22T10:55:50.856946ZDownload5d718047666eb3e573c46b313495db83684e1cc433524bbaa699af3f7a027ba4
1.6.182020-09-23T07:57:48.564595ZDownload1a1ff1f713ab115f8b11c74564aa8d24448359834a5f42eca485b14798688b86
1.6.212020-10-14T21:15:37.330354ZDownload181aa64f8a6c05f58dad7f16f0a5cf9cc8a10045d4abfa4d7b68e94b8cfb0a32
1.6.222020-10-24T18:42:56.783078ZDownload447c78b0d6d56052f04f5533df7451640f6ca81d566ef943177c3ed499681b93
1.6.242020-11-03T22:54:48.187879ZDownload12b6834c6a78ec9a82adf278194a2c8524fce74bb14434f5043bab5e35bdb86f
1.6.272021-01-08T01:55:45.917008ZDownloada7e09f3a1db83be011fb0b1cc5f2f6e3d2c93c797cc54359f784c560a922897b
1.6.282021-03-17T13:51:13.741217ZDownload90ea926097957ffbcb5381fdd7de76f6d5326fcd4689f07d8d4ee42b4040fa85
2.0.0-nullsafety2021-02-05T01:11:46.436856ZDownloadca4af5316c322255694d30dbff7da2cfbdc1004eb4182e391f14e3a6bc2089b4
2.0.0-nullsafety.12021-02-16T17:17:35.922701ZDownload4cf0f28036eef558eb484f6065acc5b41d412827b003c0b6908e7e8931f29693
2.0.02021-02-22T21:19:29.451974ZDownload5e9a353e785b5ab37456ae4b4b342edcc6e882518738b5b698a205144ca62a50
2.0.12021-03-02T20:28:23.408683ZDownloadaa1b3572707c240d72569ce01756728cf0c8dca0cc381253d8ca2858c13edfe4
2.0.22021-05-25T15:26:25.463768ZDownloadcfdc261c62a7273be7e051b19d27e503927a40919932f790681042a038f3605d
2.0.32021-09-02T14:09:09.272732ZDownload101e72444682f6ed3886a5b6af5434e4946c25de0d0a254f81e99b7f15578bba
2.0.42021-09-15T21:30:09.112507ZDownload7a6929151858214b36140fb847090292d027818e91da7141a2402cbf037b491e
2.0.52021-09-17T21:32:41.211274ZDownloadb6db8bde5b616225d76875c0235b63db77febcf207fbdc2108af2e825d31b6b0
2.0.62021-10-28T01:55:13.262147ZDownload47a60af97e55da04d1732091ee3b93c775ab72578f8704312471b09aefb13d2d
2.0.72021-11-14T14:54:26.981517ZDownloaddf05e975c3e0d9d4112c62ab40a022abf8c56d67deb25356a5ebb3d1311017f3
2.0.82021-12-09T12:46:35.353035ZDownloaddb1cf6c3f906f50d52c18400be575f75ed620f8717f9b6d11263edd95080dfc6
2.0.92022-02-10T17:41:32.515002ZDownloade92dee4d38a9044605cb3fb253e9b46eb9375dfcad4515d0379b44ac90797568
2.0.102022-05-10T19:37:24.250616ZDownload3f6e0d697dc557ed6589107c8c13eda5ad488285917788379bbf392e3e30ea37
2.0.112022-06-06T20:03:59.110193ZDownload050e8e85e4b7fecdf2bb3682c1c64c4887a183720c802d323de8a5fd76d372dd
2.0.122023-01-25T02:03:56.235148ZDownloaddcea5feb97d8abf90cab9e9030b497fb7c3cbf26b7a1fe9e3ef7dcb0a1ddec95
2.0.132023-02-22T20:34:42.777614ZDownload04890b994ee89bfa80bf3080bfec40d5a92c5c7a785ebb02c13084a099d2b6f9
2.0.142023-03-21T12:36:32.797761ZDownloadc7edf82217d4b2952b2129a61d3ad60f1075b9299e629e149a8d2e39c2e6aad4
2.0.152023-05-08T20:15:31.038902ZDownload3087813781ab814e4157b172f1a11c46be20179fcc9bea043e0fba36bc0acaa2
2.1.02023-08-08T00:37:26.161804ZDownload909b84830485dbcd0308edf6f7368bc8fd76afa26a270420f34cabea2a6467a0
2.1.12023-08-30T14:54:25.271808ZDownloada1aa8aaa2542a6bc57e381f132af822420216c80d4781f7aa085ca3229208aaa
2.1.22024-01-09T02:36:01.671925ZDownloadb27217933eeeba8ff24845c34003b003b2b22151de3c908d0e679e8fe1aa078b
2.1.32024-04-11T17:32:10.648413ZDownloadc9e7d3a4cd1410877472158bee69963a4579f78b68c65a2b7d40d1a7a88bb161
2.1.42024-07-30T18:41:24.090488ZDownloadfec0d61223fba3154d87759e3cc27fe2c8dc498f6386c6d6fc80d1afdd1bf378
2.1.52024-10-29T19:51:40.846031ZDownload50c5dd5b6e1aaf6fb3a78b33f6aa3afca52bf903a8a5298f53101fdaee55bbcd
2.1.62026-06-15T13:51:07.158561ZDownloada7f4874f987173da295a61c181b8ee71dab59b332a486b391babf26a1b884825

Dependencies

flutter { "sdk": "flutter" }

meta "^1.0.5"

platform "^2.0.0"