Closed erisu closed 2 years ago
This is not found in the latest version of this plugin and is failing on Android API 30 using Ionic Appflow. Will this be fixed soon?
realy need this fixed please
Its a problem! This needs to be fixed
This needs to be fixed
please add it to the fix to the plugin, the error remain even now after 1 year
Hi all, I still encounter this issue also. even I delete the Whitelist still appearing on my logs.. any solution that did to working fine
Task :capacitor-cordova-android-plugins:compileDebugJavaWithJavac The following annotation processors are not incremental: dagger-compiler-2.8.jar (com.google.dagger:dagger-compiler:2.8). Make sure all annotation processors are incremental to improve your build speed. /Users/runner/work/1/s/android/capacitor-cordova-android-plugins/src/main/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 /Users/runner/work/1/s/android/capacitor-cordova-android-plugins/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 FileTransfer /Users/runner/work/1/s/android/capacitor-cordova-android-plugins/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 FileTransfer Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 3 errors
Platforms affected
Android
Motivation and Context
Build is failing in Cordova-Android 10.
fixes: #306
Description
The
Whitelist
import can be removed.The
getWhitelist
method was removed a long time ago. ThegetWhitelist
method was related to the commented statement:The
AllowList
which was integrated into the core of cordova-android is still being loaded as if it was a plugin so there for the next if block should still work as usual to fetch theshouldAllowRequest
value.Additionally, since there hasn't been a release since the undeprecation, it should be safe to say that the next release will be major and removing this old code is acceptable.
Testing
cordova build
: build now passesIf anyone wants to confirm the
shouldAllowRequest
functionality continues to work as expected with their app, that would be appreciated.Checklist