You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bo...@apache.org on 2014/01/22 20:38:59 UTC

[48/50] [abbrv] git commit: Removed the code segment that allows web debugging. We have devtools plugin to do so.

Removed the code segment that allows web debugging. We have devtools plugin to do so.


Project: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/commit/5bc99c04
Tree: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/tree/5bc99c04
Diff: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/diff/5bc99c04

Branch: refs/heads/master
Commit: 5bc99c0475755bc670ce94ca8d740f274ccb81bf
Parents: fdb3bef
Author: Archana Naik <na...@lab126.com>
Authored: Wed Dec 18 11:13:44 2013 -0800
Committer: Joe Bowser <bo...@apache.org>
Committed: Wed Jan 22 11:37:24 2014 -0800

----------------------------------------------------------------------
 .../src/org/apache/cordova/CordovaWebView.java  | 24 +-------------------
 1 file changed, 1 insertion(+), 23 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/blob/5bc99c04/framework/src/org/apache/cordova/CordovaWebView.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/CordovaWebView.java b/framework/src/org/apache/cordova/CordovaWebView.java
index c7ea6abf..da7de0b 100755
--- a/framework/src/org/apache/cordova/CordovaWebView.java
+++ b/framework/src/org/apache/cordova/CordovaWebView.java
@@ -367,29 +367,7 @@ public class CordovaWebView extends AmazonWebView {
             // enable the local storage database normally with the Chromium back-end
             settings.setDatabaseEnabled(true);
         }
-        
-        
-        //Determine whether we're in debug or release mode, and turn on Debugging!
-        try {
-            final String packageName = this.cordova.getActivity().getPackageName();
-            final PackageManager pm = this.cordova.getActivity().getPackageManager();
-            ApplicationInfo appInfo;
-            
-            appInfo = pm.getApplicationInfo(packageName, PackageManager.GET_META_DATA);
-            
-            if((appInfo.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0 &&  
-                android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.KITKAT)
-            {
-                setWebContentsDebuggingEnabled(true);
-            }
-        } catch (IllegalArgumentException e) {
-            Log.d(TAG, "You have one job! To turn on Remote Web Debugging! YOU HAVE FAILED! ");
-            e.printStackTrace();
-        } catch (NameNotFoundException e) {
-            Log.d(TAG, "This should never happen: Your application's package can't be found.");
-            e.printStackTrace();
-        }  
-
+                
         // Enable DOM storage
         settings.setDomStorageEnabled(true);