tagworks-sdk-v1-react 1.1.7 → 1.1.9
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/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<img src="https://capsule-render.vercel.app/api?type=Waving&color=A2A4A2&height=150§ion=header&text=TagWorks-SDK-React-Native&fontSize=45" />
|
|
2
2
|
|
|
3
|
-

|
|
4
4
|

|
|
5
5
|

|
|
6
6
|

|
|
@@ -51,7 +51,7 @@ TagWorks SDK React Native Library
|
|
|
51
51
|
- 해당 프로젝트의 루트 디렉토리에 설치
|
|
52
52
|
|
|
53
53
|
```sh
|
|
54
|
-
npm
|
|
54
|
+
npm i tagworks-sdk-v1-react
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
- iOS Dependency 설치
|
|
@@ -212,10 +212,10 @@ TagWorksModule.setCommonDimensionWithDouble(2, 30000.0);
|
|
|
212
212
|
|
|
213
213
|
// 타입별로 index 키를 가지고 해당 값을 리턴
|
|
214
214
|
// - return : String or Double
|
|
215
|
-
TagWorksModule.
|
|
215
|
+
TagWorksModule.getCommonDimensionWithString(1, (value: any) => {
|
|
216
216
|
console.log(value);
|
|
217
217
|
});
|
|
218
|
-
TagWorksModule.
|
|
218
|
+
TagWorksModule.getCommonDimensionWithDouble(2, (value: any) => {
|
|
219
219
|
console.log(value);
|
|
220
220
|
});
|
|
221
221
|
|
|
@@ -239,14 +239,14 @@ TagWorksModule.getCommonDimensionsOfArrayIndex((jsonString: any) => {
|
|
|
239
239
|
//
|
|
240
240
|
|
|
241
241
|
// 타입별 index 키를 가지고 삭제
|
|
242
|
-
TagWorksModule.
|
|
243
|
-
TagWorksModule.
|
|
242
|
+
TagWorksModule.removeCommonDimensionInGeneralType(1);
|
|
243
|
+
TagWorksModule.removeCommonDimensionInFactType(2);
|
|
244
244
|
|
|
245
245
|
// 공용 Dimension 정보를 가지고 있는 Array의 Index를 이용해 삭제
|
|
246
246
|
TagWorksModule.removeCommonDimensionWithArrayIndex(0);
|
|
247
247
|
|
|
248
248
|
// 모든 공용 Dimension을 삭제
|
|
249
|
-
TagWorksModule.
|
|
249
|
+
TagWorksModule.removeAllCommonDimension();
|
|
250
250
|
```
|
|
251
251
|
|
|
252
252
|
<br/>
|
|
@@ -312,7 +312,7 @@ DataBundleModule.putString(DataBundleModule.EVENT_TAG_PARAM_TITLE, "계좌조회
|
|
|
312
312
|
// 화면 경로
|
|
313
313
|
DataBundleModule.putString(DataBundleModule.EVENT_TAG_PARAM_PAGE_PATH, "home/bank/계좌관리");
|
|
314
314
|
// 검색어
|
|
315
|
-
DataBundleModule.putString(DataBundleModule.EVENT_TAG_PARAM_KEYWORD, "search
|
|
315
|
+
DataBundleModule.putString(DataBundleModule.EVENT_TAG_PARAM_KEYWORD, "search keyword!");
|
|
316
316
|
// 사용자 정의 url
|
|
317
317
|
DataBundleModule.putString(DataBundleModule.EVENT_TAG_PARAM_CUSTOM_PATH, "/bank/Account");
|
|
318
318
|
```
|
|
@@ -14,7 +14,7 @@ class StandardEventModule(context: ReactApplicationContext):ReactContextBaseJava
|
|
|
14
14
|
|
|
15
15
|
val constants = mutableMapOf<String,Any>()
|
|
16
16
|
StandardEvent.values().forEach {
|
|
17
|
-
constants[it.name] = it.
|
|
17
|
+
constants[it.name] = it.value
|
|
18
18
|
}
|
|
19
19
|
return constants
|
|
20
20
|
}
|
|
@@ -205,12 +205,12 @@ class TagWorksModule(reactContext: ReactApplicationContext):ReactContextBaseJava
|
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
@ReactMethod
|
|
208
|
-
fun
|
|
208
|
+
fun removeCommonDimensionInGeneralType(index: Int) {
|
|
209
209
|
TagWorks.getInstance().removeCommonDimension(DimensionType.GENERAL_TYPE,index)
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
@ReactMethod
|
|
213
|
-
fun
|
|
213
|
+
fun removeCommonDimensionInFactType(index: Int) {
|
|
214
214
|
TagWorks.getInstance().removeCommonDimension(DimensionType.FACT_TYPE,index)
|
|
215
215
|
}
|
|
216
216
|
|