Skip to content

Releases: mfdeveloper/cordova-plugin-file

[Android] Added new method FileUtils.copy()

15 Aug 12:01
Compare
Choose a tag to compare
  • New method FileUtils.copy() in substitution of method copyTo. This method use dependency comons-io:comons-io in replace of use raw methods with directly access of InputStream and OutputSteam.

PS: Some devices with Android 9+ got Permission denied error with the FileUtils.copyTo() method. Because this, the new method copy() was created.

  • Refactor errors return to JS, in FileUtils.threadHelper(). Now, a json is returned with more information about the error/exception

  • Added JUnit integration test using Roboletric, to check if a file is copied successfully

  • Refactor the method FileUtils.initialize() to allow use the FileUtils class without cordova. This is great for unit tests.

[Android] Added new method FileUtils.copy()

08 Aug 11:55
Compare
Choose a tag to compare
6.0.5-dev

[Android] Added new 'FileUtils.copy()' method

[Android] Added new method FileUtils.copy()

08 Aug 11:27
Compare
Choose a tag to compare
  • New method FileUtils.copy() in substitution of method copyTo. This method use dependency comons-io:comons-io in replace of use raw methods with directly access of InputStream and OutputSteam.

PS: Some devices with Android 9+ got Permission denied error with the FileUtils.copyTo() method. Because this, the new method copy() was created.

  • Refactor errors return to JS, in FileUtils.threadHelper(). Now, a json is returned with more information about the error/exception

  • Added JUnit integration test using Roboletric, to check if a file is copied successfully

  • Refactor the method FileUtils.initialize() to allow use the FileUtils class without cordova. This is great for unit tests.

[Android] Added Jitpack support

02 Oct 12:43
Compare
Choose a tag to compare

Create a new folder called android with a example project, that will be builded from https://jitpack.io.
To use this plugin like a gradle depency, now you can do this:

dependencies {
     implementation 'com.github.mfdeveloper:cordova-plugin-file:6.0.2'
}

By now, this example project has only generated MainActivity generated by Android Studio. This will be improved with a more concise example