vialink-react-native-sdk 2.1.3 → 2.1.4

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.
Binary file
@@ -165,5 +165,7 @@ private fun DeepLinkData.toWritableMap(): WritableMap {
165
165
  params.forEach { (k, v) -> paramsMap.putString(k, v) }
166
166
  map.putMap("params", paramsMap)
167
167
  shortCode?.let { map.putString("shortCode", it) }
168
+ // 어트리뷰션용 numeric link_id (없으면 키 자체를 누락)
169
+ linkId?.let { map.putInt("linkId", it) }
168
170
  return map
169
171
  }
@@ -2,6 +2,7 @@ export interface DeepLinkData {
2
2
  path: string;
3
3
  params: Record<string, string>;
4
4
  shortCode?: string;
5
+ linkId?: number;
5
6
  }
6
7
  /**
7
8
  * 결제 시도 이벤트 입력 인자.
@@ -132,6 +132,7 @@ class ViaLinkModule: RCTEventEmitter {
132
132
 
133
133
  extension DeepLinkData {
134
134
  func toDictionary() -> [String: Any?] {
135
- ["path": path, "params": params, "shortCode": shortCode]
135
+ // 어트리뷰션용 numeric link_id 포함 — JS 측 DeepLinkData.linkId로 노출됨
136
+ ["path": path, "params": params, "shortCode": shortCode, "linkId": linkId]
136
137
  }
137
138
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vialink-react-native-sdk",
3
- "version": "2.1.3",
3
+ "version": "2.1.4",
4
4
  "description": "ViaLink 딥링크 SDK for React Native (네이티브 브릿지)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,6 +1,6 @@
1
1
  Pod::Spec.new do |s|
2
2
  s.name = "vialink-react-native-sdk"
3
- s.version = "2.1.3"
3
+ s.version = "2.1.4"
4
4
  s.summary = "ViaLink Deep Link SDK for React Native"
5
5
  s.homepage = "https://vialink.app"
6
6
  s.license = "MIT"