You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2022/07/30 12:36:43 UTC

[GitHub] [cordova-plugin-file-transfer] Mister-CK commented on issue #345: Cordova 11 > Android incompatible

Mister-CK commented on issue #345:
URL: https://github.com/apache/cordova-plugin-file-transfer/issues/345#issuecomment-1200150078

   I just remove the code that refers to the whitelist plugin with a custom hook. Cordova-anrdoid 10 doesn't use the whitelist plugin anymore so I figure that code has been made redundant.
   Only problem I am having is that the hook is messing up the file. So I might just make a fork and remove the unwanted code myself. Although I prefer a hook.  Sections to be removed:
   `      const firstSectionOfCodeToRemove =
           `import org.apache.cordova.Whitelist;
   `
         const secondSectionOfCodeToRemove =
           `if (shouldAllowRequest == null) {
               try {
                   Method gwl = webView.getClass().getMethod("getWhitelist");
                   Whitelist whitelist = (Whitelist)gwl.invoke(webView);
                   shouldAllowRequest = whitelist.isUrlWhiteListed(source);
               } catch (NoSuchMethodException e) {
               } catch (IllegalAccessException e) {
               } catch (InvocationTargetException e) {
               }
           }``


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org