apache / cordova-plugin-file-transfer

Apache Cordova File Transfer Plugin
https://cordova.apache.org/
Apache License 2.0
595 stars 888 forks source link

cordova-plugin-file-transfer for Cordova Android 10 #316

Closed BrokerBisiako87 closed 2 years ago

BrokerBisiako87 commented 2 years ago

Issue Type

Description

HI friend! There is a problem when I compile the package. This message appears

Task :app:compileDebugJavaWithJavac FAILED

java\org\apache\cordova\filetransfer\FileTransfer.java:48: error: cannot find symbol
import org.apache.cordova.Whitelist;
                         ^
  symbol:   class Whitelist
  location: package org.apache.cordova
..\android\app\src\main\java\org\apache\cordova\filetransfer\FileTransfer.java:691: error: cannot find symbol
                Whitelist whitelist = (Whitelist)gwl.invoke(webView);
                ^
  symbol:   class Whitelist
  location: class org.apache.cordova.filetransfer.FileTransfer
..\android\app\src\main\java\org\apache\cordova\filetransfer\FileTransfer.java:691: error: cannot find symbol
                Whitelist whitelist = (Whitelist)gwl.invoke(webView);
                                       ^
  symbol:   class Whitelist
  location: class org.apache.cordova.filetransfer.FileTransfer
..\android\app\src\main\java\org\apache\cordova\filetransfer\FileTransfer.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

Information

If I remove the plugin, it compiles perfectly

strippedNativeLibsDir
is deprecated and no longer used. Please remove it from your build configuration.

Command or Code

cordova build android

Environment, Platform, Device

Version information

Cordova: Cordova CLI, Cordova Plugins

Checklist

CodeWithOz commented 2 years ago

Disclaimer: I'm not a maintainer of this plugin. This issue has been fixed but hasn't been released yet. You can try installing from the latest commit in the master branch to see if the problem goes away.

MauriBrig commented 2 years ago

@BrokerBisiako87 , You were able to solve the problem?? I am in the same situation.

alitalaee commented 2 years ago

this issue is fixed please check below link . i hope they will merge it soon as soon on the latest version

https://github.com/apache/cordova-plugin-file-transfer/commit/2cdb0403a81821e144998c8d9a00d338d6ece3ee

mahomedalid commented 2 years ago

Just for the record you can try:

$ cordova plugin rm cordova-plugin-file-transfer
$ cordova plugin add https://github.com/apache/cordova-plugin-file-transfer

to use the git version. It works.

brunoalex commented 2 years ago

the file transfere to server not working on sdk 30 ..cant transfer to server

CoooWeee commented 2 years ago

Whitelisl is renamed to AllowList.

Renaming following in my project fixed the issue:

Whitelist => AllowList addWhiteListEntry => addAllowListEntry isUrlWhiteListed => isUrlAllowListed

jcesarmobile commented 2 years ago

The issue is fixed but not released, you’ll have to install from GitHub until it’s released

amisanjid commented 1 year ago

$ cordova plugin add https://github.com/apache/cordova-plugin-file-transfer

Is "cordova plugin add https://github.com/apache/cordova-plugin-file-transfer" is enough for making AJAX request without CORS??