commit
094d0cd03b
|
@ -1,3 +1,7 @@
|
||||||
|
## 1.3.1
|
||||||
|
|
||||||
|
**Bug fix:** Fixes an issue on Android, where other activity would try to call `FilePicker`'s result object when it shouldn't.
|
||||||
|
|
||||||
## 1.3.0
|
## 1.3.0
|
||||||
|
|
||||||
**Breaking changes**
|
**Breaking changes**
|
||||||
|
@ -63,7 +67,7 @@
|
||||||
* Replaces commons dependency with FilePath class on Android, to handle path resolution on different SDK.
|
* Replaces commons dependency with FilePath class on Android, to handle path resolution on different SDK.
|
||||||
|
|
||||||
## 0.1.5
|
## 0.1.5
|
||||||
* Minor correction on README file.
|
* Minor correction in the README file.
|
||||||
|
|
||||||
## 0.1.4
|
## 0.1.4
|
||||||
* Changed Meta minimum version due to versioning conflict with flutter_localization.
|
* Changed Meta minimum version due to versioning conflict with flutter_localization.
|
||||||
|
|
|
@ -10,7 +10,7 @@ A package that allows you to use a native file explorer to pick single or multip
|
||||||
First, add *file_picker* as a dependency in [your pubspec.yaml file](https://flutter.io/platform-plugins/).
|
First, add *file_picker* as a dependency in [your pubspec.yaml file](https://flutter.io/platform-plugins/).
|
||||||
|
|
||||||
```
|
```
|
||||||
file_picker: ^1.3.0
|
file_picker: ^1.3.1
|
||||||
```
|
```
|
||||||
### Android
|
### Android
|
||||||
Add `<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>` to your app `AndroidManifest.xml` file. This is required due to file caching when a path is required from a remote file (eg. Google Drive).
|
Add `<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>` to your app `AndroidManifest.xml` file. This is required due to file caching when a path is required from a remote file (eg. Google Drive).
|
||||||
|
|
|
@ -81,8 +81,9 @@ public class FilePickerPlugin implements MethodCallHandler {
|
||||||
} else if(requestCode == REQUEST_CODE && resultCode == Activity.RESULT_CANCELED) {
|
} else if(requestCode == REQUEST_CODE && resultCode == Activity.RESULT_CANCELED) {
|
||||||
result.success(null);
|
result.success(null);
|
||||||
return true;
|
return true;
|
||||||
|
} else if (requestCode == REQUEST_CODE) {
|
||||||
|
result.error(TAG, "Unknown activity error, please fill an issue." ,null);
|
||||||
}
|
}
|
||||||
result.error(TAG, "Unknown activity error, please fill an issue." ,null);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -2,7 +2,7 @@ name: file_picker
|
||||||
description: A package that allows you to use a native file explorer to pick single or multiple absolute file paths, with extensions filtering support.
|
description: A package that allows you to use a native file explorer to pick single or multiple absolute file paths, with extensions filtering support.
|
||||||
author: Miguel Ruivo <miguelpruivo@outlook.com>
|
author: Miguel Ruivo <miguelpruivo@outlook.com>
|
||||||
homepage: https://github.com/miguelpruivo/plugins_flutter_file_picker
|
homepage: https://github.com/miguelpruivo/plugins_flutter_file_picker
|
||||||
version: 1.3.0
|
version: 1.3.1
|
||||||
|
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
Loading…
Reference in New Issue