You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2015/03/26 15:40:24 UTC
cordova-plugin-legacy-whitelist git commit: Fix compile error
introduces by 6a3d2cb3567
Repository: cordova-plugin-legacy-whitelist
Updated Branches:
refs/heads/master b11d45668 -> e55d121a4
Fix compile error introduces by 6a3d2cb3567
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-legacy-whitelist/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-legacy-whitelist/commit/e55d121a
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-legacy-whitelist/tree/e55d121a
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-legacy-whitelist/diff/e55d121a
Branch: refs/heads/master
Commit: e55d121a4f28d0783816941f5730694a63f3f80c
Parents: b11d456
Author: Andrew Grieve <ag...@chromium.org>
Authored: Thu Mar 26 10:39:57 2015 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Thu Mar 26 10:39:57 2015 -0400
----------------------------------------------------------------------
src/android/LegacyWhitelistPlugin.java | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-legacy-whitelist/blob/e55d121a/src/android/LegacyWhitelistPlugin.java
----------------------------------------------------------------------
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 unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org