You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ia...@apache.org on 2014/10/30 17:20:39 UTC
[4/7] android commit: Remove unused Config methods (Breaking Change)
Remove unused Config methods (Breaking Change)
Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/8df2d4fc
Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/8df2d4fc
Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/8df2d4fc
Branch: refs/heads/unplug-whitelist
Commit: 8df2d4fcfdb7fa571df8babf15c44c45e2566bb6
Parents: a0acb4c
Author: Ian Clelland <ic...@chromium.org>
Authored: Thu Oct 9 14:44:09 2014 -0400
Committer: Ian Clelland <ic...@chromium.org>
Committed: Thu Oct 30 12:19:06 2014 -0400
----------------------------------------------------------------------
framework/src/org/apache/cordova/Config.java | 50 -----------------------
1 file changed, 50 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-android/blob/8df2d4fc/framework/src/org/apache/cordova/Config.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/Config.java b/framework/src/org/apache/cordova/Config.java
index f13292c..f261b78 100644
--- a/framework/src/org/apache/cordova/Config.java
+++ b/framework/src/org/apache/cordova/Config.java
@@ -46,48 +46,6 @@ public class Config {
parser = new ConfigXmlParser();
}
}
-
- /**
- * Add entry to approved list of URLs (whitelist)
- *
- * @param origin URL regular expression to allow
- * @param subdomains T=include all subdomains under origin
- */
- public static void addWhiteListEntry(String origin, boolean subdomains) {
- if (parser == null) {
- Log.e(TAG, "Config was not initialised. Did you forget to Config.init(this)?");
- return;
- }
- parser.getInternalWhitelist().addWhiteListEntry(origin, subdomains);
- }
-
- /**
- * Determine if URL is in approved list of URLs to load.
- *
- * @param url
- * @return true if whitelisted
- */
- public static boolean isUrlWhiteListed(String url) {
- if (parser == null) {
- Log.e(TAG, "Config was not initialised. Did you forget to Config.init(this)?");
- return false;
- }
- return parser.getInternalWhitelist().isUrlWhiteListed(url);
- }
-
- /**
- * Determine if URL is in approved list of URLs to launch external applications.
- *
- * @param url
- * @return true if whitelisted
- */
- public static boolean isUrlExternallyWhiteListed(String url) {
- if (parser == null) {
- Log.e(TAG, "Config was not initialised. Did you forget to Config.init(this)?");
- return false;
- }
- return parser.getExternalWhitelist().isUrlWhiteListed(url);
- }
public static String getStartUrl() {
if (parser == null) {
@@ -100,14 +58,6 @@ public class Config {
return parser.getPreferences().getString("errorurl", null);
}
- public static Whitelist getWhitelist() {
- return parser.getInternalWhitelist();
- }
-
- public static Whitelist getExternalWhitelist() {
- return parser.getExternalWhitelist();
- }
-
public static List<PluginEntry> getPluginEntries() {
return parser.getPluginEntries();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org