airborne-react-native 0.18.3 → 0.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/android/build.gradle
CHANGED
|
@@ -7,6 +7,8 @@ import `in`.juspay.airborne.LazyDownloadCallback
|
|
|
7
7
|
import `in`.juspay.airborne.TrackerCallback
|
|
8
8
|
import `in`.juspay.hyperutil.constants.LogLevel
|
|
9
9
|
import org.json.JSONObject
|
|
10
|
+
import javax.net.ssl.SSLSocketFactory
|
|
11
|
+
import javax.net.ssl.X509TrustManager
|
|
10
12
|
|
|
11
13
|
@Keep
|
|
12
14
|
class Airborne(
|
|
@@ -91,6 +93,18 @@ class Airborne(
|
|
|
91
93
|
return applicationManager.readReleaseConfig()
|
|
92
94
|
}
|
|
93
95
|
|
|
96
|
+
/**
|
|
97
|
+
* Set custom SSL configuration for mTLS support.
|
|
98
|
+
* Call this before network requests are made to enable client certificate authentication.
|
|
99
|
+
*
|
|
100
|
+
* @param sslSocketFactory SSL socket factory configured with client certificate
|
|
101
|
+
* @param trustManager Trust manager for server certificate validation
|
|
102
|
+
*/
|
|
103
|
+
@Keep
|
|
104
|
+
fun setSslConfig(sslSocketFactory: SSLSocketFactory, trustManager: X509TrustManager) {
|
|
105
|
+
applicationManager.setSslConfig(sslSocketFactory, trustManager)
|
|
106
|
+
}
|
|
107
|
+
|
|
94
108
|
companion object {
|
|
95
109
|
// private var initializer: (() -> Airborne)? = null
|
|
96
110
|
//
|