Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A5F64200D53 for ; Tue, 21 Nov 2017 01:26:02 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A4878160C1D; Tue, 21 Nov 2017 00:26:02 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DB004160C11 for ; Tue, 21 Nov 2017 01:26:01 +0100 (CET) Received: (qmail 20940 invoked by uid 500); 21 Nov 2017 00:26:01 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 20853 invoked by uid 99); 21 Nov 2017 00:26:01 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Nov 2017 00:26:01 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 8E1C681A65; Tue, 21 Nov 2017 00:25:59 +0000 (UTC) Date: Tue, 21 Nov 2017 00:26:06 +0000 To: "commits@cordova.apache.org" Subject: [cordova-plugin-whitelist] 07/28: Fix compile error introduces by 6a3d2cb3567 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit From: macdonst@apache.org In-Reply-To: <151122395906.23602.14181846860062640791@gitbox.apache.org> References: <151122395906.23602.14181846860062640791@gitbox.apache.org> X-Git-Host: gitbox.apache.org X-Git-Repo: cordova-plugin-whitelist X-Git-Refname: refs/heads/deprecation X-Git-Reftype: branch X-Git-Rev: e55d121a4f28d0783816941f5730694a63f3f80c X-Git-NotificationType: diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated Message-Id: <20171121002559.8E1C681A65@gitbox.apache.org> archived-at: Tue, 21 Nov 2017 00:26:02 -0000 This is an automated email from the ASF dual-hosted git repository. macdonst pushed a commit to branch deprecation in repository https://gitbox.apache.org/repos/asf/cordova-plugin-whitelist.git commit e55d121a4f28d0783816941f5730694a63f3f80c Author: Andrew Grieve AuthorDate: Thu Mar 26 10:39:57 2015 -0400 Fix compile error introduces by 6a3d2cb3567 --- src/android/LegacyWhitelistPlugin.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/android/LegacyWhitelistPlugin.java b/src/android/LegacyWhitelistPlugin.java index 76a29fc..d8f81c9 100644 --- a/src/android/LegacyWhitelistPlugin.java +++ b/src/android/LegacyWhitelistPlugin.java @@ -19,12 +19,10 @@ package org.apache.cordova.whitelist; -import org.apache.cordova.CordovaInterface; import org.apache.cordova.CordovaPlugin; -import org.apache.cordova.CordovaWebView; import org.apache.cordova.ConfigXmlParser; import org.apache.cordova.Whitelist; -import android.content.res.XmlResourceParser; +import org.xmlpull.v1.XmlPullParser; public class LegacyWhitelistPlugin extends CordovaPlugin { @@ -33,7 +31,8 @@ public class LegacyWhitelistPlugin extends CordovaPlugin { private static final String TAG = "Whitelist"; - public void initialize(CordovaInterface cordova, CordovaWebView webView) { + @Override + public void pluginInitialize() { // Add implicitly allowed URLs internalWhitelist.addWhiteListEntry("file:///*", false); internalWhitelist.addWhiteListEntry("content:///*", false); @@ -67,7 +66,7 @@ public class LegacyWhitelistPlugin extends CordovaPlugin { @Override public void handleEndTag(XmlPullParser xml) { } - }.parse(cordova.getActivity()); + }.parse(webView.getContext()); } public Boolean shouldAllowRequest(String url) { -- To stop receiving notification emails like this one, please contact "commits@cordova.apache.org" . --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org For additional commands, e-mail: commits-help@cordova.apache.org