tagworks-sdk-v1-react 1.1.20 → 1.1.21
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 +664 -138
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/tagworkssdkv1/DataBundleModule.kt +364 -365
- package/android/src/main/java/com/tagworkssdkv1/OnCmsBannerViewManager.kt +15 -3
- package/android/src/main/java/com/tagworkssdkv1/TagWorks.kt +37 -0
- package/android/src/main/java/com/tagworkssdkv1/TagWorksDeeplinkModule.kt +117 -0
- package/android/src/main/java/com/tagworkssdkv1/TagWorksModule.kt +402 -373
- package/android/src/main/java/com/tagworkssdkv1/TagWorksPopupModule.kt +22 -26
- package/android/src/main/java/com/tagworkssdkv1/TagworksSdkV1Package.kt +2 -1
- package/ios/OnCmsBannerViewManager.swift +5 -4
- package/ios/TagWorksDeeplinkModule.swift +64 -0
- package/ios/TagWorksDeeplinkModuleBridge.m +53 -0
- package/ios/TagWorksModule.swift +68 -18
- package/ios/TagWorksModuleBridge.m +15 -1
- package/ios/TagWorksPopupModule.swift +9 -3
- package/lib/commonjs/TagWorksDeeplink.js +48 -0
- package/lib/commonjs/TagWorksDeeplink.js.map +1 -0
- package/lib/commonjs/index.js +20 -8
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/TagWorksDeeplink.js +44 -0
- package/lib/module/TagWorksDeeplink.js.map +1 -0
- package/lib/module/index.js +10 -8
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/commonjs/babel.config.d.ts +2 -0
- package/lib/typescript/commonjs/babel.config.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/TagWorksDeeplink.d.ts +23 -0
- package/lib/typescript/commonjs/src/TagWorksDeeplink.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +8 -3
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/module/babel.config.d.ts +2 -0
- package/lib/typescript/module/babel.config.d.ts.map +1 -0
- package/lib/typescript/module/src/TagWorksDeeplink.d.ts +23 -0
- package/lib/typescript/module/src/TagWorksDeeplink.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +8 -3
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/TagWorksDeeplink.js +45 -0
- package/src/{index.tsx → index.js} +10 -5
- package/tagworks-sdk-v1-react.podspec +9 -3
- package/android/src/main/res/drawable/default_img.png +0 -0
package/lib/module/index.js
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
// import { NativeModules, Platform } from 'react-native';
|
|
4
4
|
import { NativeModules, requireNativeComponent } from 'react-native';
|
|
5
|
+
import TagWorksDeeplink from "./TagWorksDeeplink.js";
|
|
6
|
+
const OnCmsBannerView = requireNativeComponent('OnCmsBannerView');
|
|
7
|
+
const {
|
|
8
|
+
TagWorksModule,
|
|
9
|
+
DataBundleModule,
|
|
10
|
+
StandardEventModule,
|
|
11
|
+
TagWorksPopupModule,
|
|
12
|
+
TagWorksDeeplinkModule
|
|
13
|
+
} = NativeModules;
|
|
14
|
+
export { TagWorksModule, DataBundleModule, StandardEventModule, TagWorksPopupModule, TagWorksDeeplinkModule, OnCmsBannerView, TagWorksDeeplink };
|
|
5
15
|
|
|
6
16
|
// const LINKING_ERROR =
|
|
7
17
|
// `The package 'tagworks-sdk-v1' doesn't seem to be linked. Make sure: \n\n` +
|
|
@@ -23,12 +33,4 @@ import { NativeModules, requireNativeComponent } from 'react-native';
|
|
|
23
33
|
// export function multiply(a: number, b: number): Promise<number> {
|
|
24
34
|
// return TagworksSdkV1.multiply(a, b);
|
|
25
35
|
// }
|
|
26
|
-
const OnCmsBannerView = requireNativeComponent('OnCmsBannerView');
|
|
27
|
-
const {
|
|
28
|
-
TagWorksModule,
|
|
29
|
-
DataBundleModule,
|
|
30
|
-
StandardEventModule,
|
|
31
|
-
TagWorksPopupModule
|
|
32
|
-
} = NativeModules;
|
|
33
|
-
export { TagWorksModule, DataBundleModule, StandardEventModule, TagWorksPopupModule, OnCmsBannerView };
|
|
34
36
|
//# sourceMappingURL=index.js.map
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NativeModules","requireNativeComponent","OnCmsBannerView","TagWorksModule","DataBundleModule","StandardEventModule","TagWorksPopupModule"],"sourceRoot":"../../src","sources":["index.
|
|
1
|
+
{"version":3,"names":["NativeModules","requireNativeComponent","TagWorksDeeplink","OnCmsBannerView","TagWorksModule","DataBundleModule","StandardEventModule","TagWorksPopupModule","TagWorksDeeplinkModule"],"sourceRoot":"../../src","sources":["index.js"],"mappings":";;AAAA;AACA,SAASA,aAAa,EAAEC,sBAAsB,QAAQ,cAAc;AACpE,OAAOC,gBAAgB,MAAM,uBAAoB;AAEjD,MAAMC,eAAe,GAAGF,sBAAsB,CAAC,iBAAiB,CAAC;AAEjE,MAAM;EAAEG,cAAc;EAAEC,gBAAgB;EAAEC,mBAAmB;EAAEC,mBAAmB;EAAEC;AAAuB,CAAC,GAAGR,aAAa;AAC5H,SAASI,cAAc,EAAEC,gBAAgB,EAAEC,mBAAmB,EAAEC,mBAAmB,EAAEC,sBAAsB,EAAEL,eAAe,EAAED,gBAAgB;;AAK9I;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"babel.config.d.ts","sourceRoot":"","sources":["../../../babel.config.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export default TagWorksDeeplink;
|
|
2
|
+
export type LandingEvent = {
|
|
3
|
+
deeplinkURL: string | null;
|
|
4
|
+
isTagWorksDeeplink: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare namespace TagWorksDeeplink {
|
|
7
|
+
export { _handleDeeplinkUrl as handleDeeplinkUrl };
|
|
8
|
+
export { _handleDeferredDeeplink as handleDeferredDeeplink };
|
|
9
|
+
export { _addLandingListener as addLandingListener };
|
|
10
|
+
}
|
|
11
|
+
declare function _handleDeeplinkUrl(url: any): void;
|
|
12
|
+
declare function _handleDeferredDeeplink(): void;
|
|
13
|
+
/**
|
|
14
|
+
* @typedef {Object} LandingEvent
|
|
15
|
+
* @property {string|null} deeplinkURL
|
|
16
|
+
* @property {boolean} isTagWorksDeeplink
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* @param {(e: LandingEvent) => void} cb
|
|
20
|
+
* @returns {() => void}
|
|
21
|
+
*/
|
|
22
|
+
declare function _addLandingListener(cb: (e: LandingEvent) => void): () => void;
|
|
23
|
+
//# sourceMappingURL=TagWorksDeeplink.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TagWorksDeeplink.d.ts","sourceRoot":"","sources":["../../../../src/TagWorksDeeplink.js"],"names":[],"mappings":";;iBAsBc,MAAM,GAAC,IAAI;wBACX,OAAO;;;;;;;AAXrB,oDAEC;AAED,iDAEC;AAED;;;;GAIG;AAEH;;;GAGG;AACH,yCAHW,CAAC,CAAC,EAAE,YAAY,KAAK,IAAI,GACvB,MAAM,IAAI,CAMtB"}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
1
|
+
export const TagWorksModule: any;
|
|
2
|
+
export const DataBundleModule: any;
|
|
3
|
+
export const StandardEventModule: any;
|
|
4
|
+
export const TagWorksPopupModule: any;
|
|
5
|
+
export const TagWorksDeeplinkModule: any;
|
|
6
|
+
export const OnCmsBannerView: import("react-native").HostComponent<any>;
|
|
7
|
+
import TagWorksDeeplink from './TagWorksDeeplink';
|
|
8
|
+
export { TagWorksDeeplink };
|
|
4
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.js"],"names":[],"mappings":";;;;;AAIA,wEAAkE;6BAFrC,oBAAoB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"babel.config.d.ts","sourceRoot":"","sources":["../../../babel.config.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export default TagWorksDeeplink;
|
|
2
|
+
export type LandingEvent = {
|
|
3
|
+
deeplinkURL: string | null;
|
|
4
|
+
isTagWorksDeeplink: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare namespace TagWorksDeeplink {
|
|
7
|
+
export { _handleDeeplinkUrl as handleDeeplinkUrl };
|
|
8
|
+
export { _handleDeferredDeeplink as handleDeferredDeeplink };
|
|
9
|
+
export { _addLandingListener as addLandingListener };
|
|
10
|
+
}
|
|
11
|
+
declare function _handleDeeplinkUrl(url: any): void;
|
|
12
|
+
declare function _handleDeferredDeeplink(): void;
|
|
13
|
+
/**
|
|
14
|
+
* @typedef {Object} LandingEvent
|
|
15
|
+
* @property {string|null} deeplinkURL
|
|
16
|
+
* @property {boolean} isTagWorksDeeplink
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* @param {(e: LandingEvent) => void} cb
|
|
20
|
+
* @returns {() => void}
|
|
21
|
+
*/
|
|
22
|
+
declare function _addLandingListener(cb: (e: LandingEvent) => void): () => void;
|
|
23
|
+
//# sourceMappingURL=TagWorksDeeplink.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TagWorksDeeplink.d.ts","sourceRoot":"","sources":["../../../../src/TagWorksDeeplink.js"],"names":[],"mappings":";;iBAsBc,MAAM,GAAC,IAAI;wBACX,OAAO;;;;;;;AAXrB,oDAEC;AAED,iDAEC;AAED;;;;GAIG;AAEH;;;GAGG;AACH,yCAHW,CAAC,CAAC,EAAE,YAAY,KAAK,IAAI,GACvB,MAAM,IAAI,CAMtB"}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
1
|
+
export const TagWorksModule: any;
|
|
2
|
+
export const DataBundleModule: any;
|
|
3
|
+
export const StandardEventModule: any;
|
|
4
|
+
export const TagWorksPopupModule: any;
|
|
5
|
+
export const TagWorksDeeplinkModule: any;
|
|
6
|
+
export const OnCmsBannerView: import("react-native").HostComponent<any>;
|
|
7
|
+
import TagWorksDeeplink from './TagWorksDeeplink';
|
|
8
|
+
export { TagWorksDeeplink };
|
|
4
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.js"],"names":[],"mappings":";;;;;AAIA,wEAAkE;6BAFrC,oBAAoB"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tagworks-sdk-v1-react",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.21",
|
|
4
4
|
"description": "TagWorks SDK React Native Library",
|
|
5
|
-
"source": "./src/index.
|
|
5
|
+
"source": "./src/index.js",
|
|
6
6
|
"main": "./lib/commonjs/index.js",
|
|
7
7
|
"module": "./lib/module/index.js",
|
|
8
8
|
"exports": {
|
|
@@ -82,6 +82,9 @@
|
|
|
82
82
|
"turbo": "^1.10.7",
|
|
83
83
|
"typescript": "^5.2.2"
|
|
84
84
|
},
|
|
85
|
+
"dependencies": {
|
|
86
|
+
"react-dom": "^18.3.1"
|
|
87
|
+
},
|
|
85
88
|
"resolutions": {
|
|
86
89
|
"@types/react": "^18.2.44"
|
|
87
90
|
},
|
|
@@ -167,8 +170,5 @@
|
|
|
167
170
|
"type": "module-legacy",
|
|
168
171
|
"languages": "kotlin-swift",
|
|
169
172
|
"version": "0.45.0"
|
|
170
|
-
},
|
|
171
|
-
"dependencies": {
|
|
172
|
-
"react-dom": "^19.1.0"
|
|
173
173
|
}
|
|
174
174
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { NativeModules, NativeEventEmitter } from "react-native";
|
|
2
|
+
|
|
3
|
+
const { TagWorksDeeplinkModule } = NativeModules;
|
|
4
|
+
const deeplinkEmitter = new NativeEventEmitter(TagWorksDeeplinkModule);
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
// export type LandingEvent = {
|
|
8
|
+
// deeplink: string | null;
|
|
9
|
+
// isTagWorksDeeplink: boolean;
|
|
10
|
+
// };
|
|
11
|
+
|
|
12
|
+
// 내부 구현 함수들
|
|
13
|
+
function _handleDeeplinkUrl(url) {
|
|
14
|
+
TagWorksDeeplinkModule.handleDeeplinkUrl(url);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function _handleDeferredDeeplink() {
|
|
18
|
+
TagWorksDeeplinkModule.handleDeferredDeeplink();
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @typedef {Object} LandingEvent
|
|
23
|
+
* @property {string|null} deeplinkURL
|
|
24
|
+
* @property {boolean} isTagWorksDeeplink
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @param {(e: LandingEvent) => void} cb
|
|
29
|
+
* @returns {() => void}
|
|
30
|
+
*/
|
|
31
|
+
function _addLandingListener(cb) {
|
|
32
|
+
const emitter = deeplinkEmitter.addListener('TagWorks_DeeplinkEvent', cb);
|
|
33
|
+
console.log("Emitter TagWorks_DeeplinkEvent");
|
|
34
|
+
return () => emitter.remove();
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const TagWorksDeeplink = {
|
|
38
|
+
// 정식 메서드 이름 (camelCase)
|
|
39
|
+
handleDeeplinkUrl: _handleDeeplinkUrl,
|
|
40
|
+
handleDeferredDeeplink: _handleDeferredDeeplink,
|
|
41
|
+
addLandingListener: _addLandingListener,
|
|
42
|
+
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export default TagWorksDeeplink;
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
// import { NativeModules, Platform } from 'react-native';
|
|
2
2
|
import { NativeModules, requireNativeComponent } from 'react-native';
|
|
3
|
+
import TagWorksDeeplink from './TagWorksDeeplink';
|
|
4
|
+
|
|
5
|
+
const OnCmsBannerView = requireNativeComponent('OnCmsBannerView');
|
|
6
|
+
|
|
7
|
+
const { TagWorksModule, DataBundleModule, StandardEventModule, TagWorksPopupModule, TagWorksDeeplinkModule } = NativeModules;
|
|
8
|
+
export { TagWorksModule, DataBundleModule, StandardEventModule, TagWorksPopupModule, TagWorksDeeplinkModule, OnCmsBannerView, TagWorksDeeplink };
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
3
12
|
|
|
4
13
|
// const LINKING_ERROR =
|
|
5
14
|
// `The package 'tagworks-sdk-v1' doesn't seem to be linked. Make sure: \n\n` +
|
|
@@ -20,8 +29,4 @@ import { NativeModules, requireNativeComponent } from 'react-native';
|
|
|
20
29
|
//
|
|
21
30
|
// export function multiply(a: number, b: number): Promise<number> {
|
|
22
31
|
// return TagworksSdkV1.multiply(a, b);
|
|
23
|
-
// }
|
|
24
|
-
const OnCmsBannerView = requireNativeComponent('OnCmsBannerView');
|
|
25
|
-
|
|
26
|
-
const { TagWorksModule, DataBundleModule, StandardEventModule, TagWorksPopupModule } = NativeModules;
|
|
27
|
-
export { TagWorksModule, DataBundleModule, StandardEventModule, TagWorksPopupModule, OnCmsBannerView };
|
|
32
|
+
// }
|
|
@@ -12,11 +12,17 @@ Pod::Spec.new do |s|
|
|
|
12
12
|
s.authors = package["author"]
|
|
13
13
|
|
|
14
14
|
s.platforms = { :ios => min_ios_version_supported }
|
|
15
|
-
s.source = { :git => "http://192.168.20.44:8443/etc/mobile/sdk/tagworks-sdk-v1-react.git", :tag => "#{s.version}" }
|
|
15
|
+
# s.source = { :git => "http://192.168.20.44:8443/etc/mobile/sdk/tagworks-sdk-v1-react.git", :tag => "#{s.version}" }
|
|
16
16
|
|
|
17
17
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
18
|
-
s.
|
|
19
|
-
|
|
18
|
+
s.requires_arc = true
|
|
19
|
+
s.dependency "TagWorks-SDK-iOS", '~> 1.1.30'
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# XCFramework 배포
|
|
23
|
+
# s.vendored_frameworks = "TagWorks-SDK-iOS.xcframework"
|
|
24
|
+
# s.dependency = { "TagWorks-SDK-iOS", :git => "https://github.com/obzen-rnd/tagworks-sdk-v1-ios-release.git", :tag => "1.1.29" }
|
|
25
|
+
|
|
20
26
|
|
|
21
27
|
# Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
|
|
22
28
|
# See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
|
|
Binary file
|