Releases: mfdeveloper/cordova-plugin-file
[Android] Added new method FileUtils.copy()
- New method
FileUtils.copy()
in substitution of methodcopyTo
. This method use dependencycomons-io:comons-io
in replace of use raw methods with directly access ofInputStream
andOutputSteam
.
PS: Some devices with Android 9+ got
Permission denied
error with theFileUtils.copyTo()
method. Because this, the new methodcopy()
was created.
-
Refactor errors return to
JS
, inFileUtils.threadHelper()
. Now, ajson
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 theFileUtils
class without cordova. This is great for unit tests.
[Android] Added new method FileUtils.copy()
6.0.5-dev [Android] Added new 'FileUtils.copy()' method
[Android] Added new method FileUtils.copy()
- New method
FileUtils.copy()
in substitution of methodcopyTo
. This method use dependencycomons-io:comons-io
in replace of use raw methods with directly access ofInputStream
andOutputSteam
.
PS: Some devices with Android 9+ got
Permission denied
error with theFileUtils.copyTo()
method. Because this, the new methodcopy()
was created.
-
Refactor errors return to
JS
, inFileUtils.threadHelper()
. Now, ajson
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 theFileUtils
class without cordova. This is great for unit tests.
[Android] Added Jitpack support
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