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.
@@ -146,7 +146,7 @@ dependencies {
146
146
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
147
147
 
148
148
  // Airborne SDK dependency
149
- api "in.juspay:airborne:2.2.5-xota.03"
149
+ api "in.juspay:airborne:2.2.7-xota.01"
150
150
  }
151
151
 
152
152
  react {
@@ -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
  //
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "airborne-react-native",
3
- "version": "0.18.3",
3
+ "version": "0.19.1",
4
4
  "description": "Airborne",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",