Skip to content

Commit

Permalink
Cleanup for PR
Browse files Browse the repository at this point in the history
  • Loading branch information
markemer committed Dec 16, 2024
1 parent 0d5aa18 commit 1663593
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
13 changes: 0 additions & 13 deletions android/capacitor/src/main/java/com/getcapacitor/Bridge.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@
import java.util.function.Function;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
//import org.apache.cordova.ConfigXmlParser;
//import org.apache.cordova.CordovaPreferences;
//import org.apache.cordova.CordovaWebView;
//import org.apache.cordova.PluginEntry;
//import org.apache.cordova.PluginManager;
import org.json.JSONException;

/**
Expand Down Expand Up @@ -118,10 +113,6 @@ public class Bridge {
private ArrayList<String> authorities = new ArrayList<>();
// A reference to the main WebView for the app
private final WebView webView;
/// RUH ROH
// public final MockCordovaInterfaceImpl cordovaInterface;
// private CordovaWebView cordovaWebView;
// private CordovaPreferences preferences;
private BridgeWebViewClient webViewClient;
private App app;

Expand Down Expand Up @@ -470,10 +461,6 @@ public boolean isDevMode() {
return (getActivity().getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0;
}

// protected void setCordovaWebView(CordovaWebView cordovaWebView) {
// this.cordovaWebView = cordovaWebView;
// }

/**
* Get the Context for the App
* @return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public interface Interceptor {

private Bridge bridge;
private WebView webView;
// private PluginManager cordovaPluginManager;
private JavaScriptReplyProxy javaScriptReplyProxy;


Expand Down Expand Up @@ -67,7 +66,6 @@ public void postMessage(String jsonStr) {

String type = postData.getString("type");

// boolean typeIsNotNull = type != null;
if (type == null)
type = "message";

Expand Down Expand Up @@ -130,12 +128,4 @@ private void callPluginMethod(String callbackId, String pluginId, String methodN
PluginCall call = new PluginCall(this, pluginId, callbackId, methodName, methodData);
bridge.callPluginMethod(pluginId, methodName, call);
}

// private void callCordovaPluginMethod(String callbackId, String service, String action, String actionArgs) {
// bridge.execute(
// () -> {
// cordovaPluginManager.exec(service, action, callbackId, actionArgs);
// }
// );
// }
}

0 comments on commit 1663593

Please sign in to comment.