Skip to content

Commit ac97cd4

Browse files
committed
fix: re-add removed properties and deprecate them instead
1 parent 4fd503a commit ac97cd4

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

android/capacitor/src/main/java/com/getcapacitor/Bridge.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ public class Bridge {
9292
public static final String CAPACITOR_FILE_START = "/_capacitor_file_";
9393
public static final String CAPACITOR_CONTENT_START = "/_capacitor_content_";
9494
public static final String CAPACITOR_HTTP_INTERCEPTOR_START = "/_capacitor_http_interceptor_";
95+
96+
/** @deprecated CAPACITOR_HTTPS_INTERCEPTOR_START is no longer required. All proxied requests are handled via CAPACITOR_HTTP_INTERCEPTOR_START instead */
97+
@Deprecated
98+
public static final String CAPACITOR_HTTPS_INTERCEPTOR_START = "/_capacitor_https_interceptor_";
99+
95100
public static final String CAPACITOR_HTTP_INTERCEPTOR_URL_PARAM = "u";
96101

97102
public static final int DEFAULT_ANDROID_WEBVIEW_VERSION = 60;

ios/Capacitor/Capacitor/CapacitorBridge.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ open class CapacitorBridge: NSObject, CAPBridgeProtocol {
9595
public static let capacitorSite = "https://capacitorjs.com/"
9696
public static let fileStartIdentifier = "/_capacitor_file_"
9797
public static let httpInterceptorStartIdentifier = "/_capacitor_http_interceptor_"
98+
@available(*, deprecated, message: "`httpsInterceptorStartIdentifier` is no longer required. All proxied requests are handled via `httpInterceptorStartIdentifier` instead")
99+
public static let httpsInterceptorStartIdentifier = "/_capacitor_https_interceptor_"
98100
public static let httpInterceptorUrlParam = "u"
99101
public static let defaultScheme = "capacitor"
100102

0 commit comments

Comments
 (0)