com-tapp-so-sdk 0.1.0
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/ComTappSoSdk.podspec +50 -0
- package/LICENSE +20 -0
- package/README.md +263 -0
- package/android/build.gradle +114 -0
- package/android/gradle.properties +5 -0
- package/android/src/main/AndroidManifest.xml +2 -0
- package/android/src/main/java/com/comtappsosdk/ComTappSoSdkModule.kt +354 -0
- package/android/src/main/java/com/comtappsosdk/ComTappSoSdkPackage.kt +45 -0
- package/ios/ComTappSoSdk.h +62 -0
- package/ios/ComTappSoSdk.mm +343 -0
- package/ios/generated/ComTappSoSdkSpec/ComTappSoSdkSpec-generated.mm +81 -0
- package/ios/generated/ComTappSoSdkSpec/ComTappSoSdkSpec.h +84 -0
- package/ios/generated/ComTappSoSdkSpecJSI-generated.cpp +76 -0
- package/ios/generated/ComTappSoSdkSpecJSI.h +125 -0
- package/lib/module/NativeComTappSoSdk.js +5 -0
- package/lib/module/NativeComTappSoSdk.js.map +1 -0
- package/lib/module/Types.js +47 -0
- package/lib/module/Types.js.map +1 -0
- package/lib/module/events.js +17 -0
- package/lib/module/events.js.map +1 -0
- package/lib/module/index.js +58 -0
- package/lib/module/index.js.map +1 -0
- package/lib/typescript/src/NativeComTappSoSdk.d.ts +37 -0
- package/lib/typescript/src/NativeComTappSoSdk.d.ts.map +1 -0
- package/lib/typescript/src/Types.d.ts +145 -0
- package/lib/typescript/src/Types.d.ts.map +1 -0
- package/lib/typescript/src/events.d.ts +10 -0
- package/lib/typescript/src/events.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +13 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/package.json +169 -0
- package/src/NativeComTappSoSdk.ts +46 -0
- package/src/Types.ts +149 -0
- package/src/events.ts +21 -0
- package/src/index.tsx +81 -0
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
|
|
3
|
+
*
|
|
4
|
+
* Do not edit this file as changes may cause incorrect behavior and will be lost
|
|
5
|
+
* once the code is regenerated.
|
|
6
|
+
*
|
|
7
|
+
* @generated by codegen project: GenerateModuleH.js
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
#pragma once
|
|
11
|
+
|
|
12
|
+
#include <ReactCommon/TurboModule.h>
|
|
13
|
+
#include <react/bridging/Bridging.h>
|
|
14
|
+
|
|
15
|
+
namespace facebook::react {
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class JSI_EXPORT NativeComTappSoSdkCxxSpecJSI : public TurboModule {
|
|
19
|
+
protected:
|
|
20
|
+
NativeComTappSoSdkCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
|
|
21
|
+
|
|
22
|
+
public:
|
|
23
|
+
virtual void start(jsi::Runtime &rt, jsi::String authToken, jsi::String env, jsi::String tappToken) = 0;
|
|
24
|
+
virtual jsi::Value url(jsi::Runtime &rt, jsi::String influencer, std::optional<jsi::String> adGroup, std::optional<jsi::String> creative, std::optional<jsi::Object> data) = 0;
|
|
25
|
+
virtual jsi::Value handleTappEvent(jsi::Runtime &rt, double eventAction, std::optional<jsi::String> customValue, std::optional<jsi::Object> metadata) = 0;
|
|
26
|
+
virtual jsi::Value fetchLinkData(jsi::Runtime &rt, jsi::String deepLink) = 0;
|
|
27
|
+
virtual jsi::Value shouldProcess(jsi::Runtime &rt, jsi::String deepLink) = 0;
|
|
28
|
+
virtual jsi::Value fetchOriginLinkData(jsi::Runtime &rt) = 0;
|
|
29
|
+
virtual void simulateTestEvent(jsi::Runtime &rt) = 0;
|
|
30
|
+
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
template <typename T>
|
|
34
|
+
class JSI_EXPORT NativeComTappSoSdkCxxSpec : public TurboModule {
|
|
35
|
+
public:
|
|
36
|
+
jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override {
|
|
37
|
+
return delegate_.create(rt, propName);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime& runtime) override {
|
|
41
|
+
return delegate_.getPropertyNames(runtime);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
static constexpr std::string_view kModuleName = "ComTappSoSdk";
|
|
45
|
+
|
|
46
|
+
protected:
|
|
47
|
+
NativeComTappSoSdkCxxSpec(std::shared_ptr<CallInvoker> jsInvoker)
|
|
48
|
+
: TurboModule(std::string{NativeComTappSoSdkCxxSpec::kModuleName}, jsInvoker),
|
|
49
|
+
delegate_(reinterpret_cast<T*>(this), jsInvoker) {}
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
private:
|
|
53
|
+
class Delegate : public NativeComTappSoSdkCxxSpecJSI {
|
|
54
|
+
public:
|
|
55
|
+
Delegate(T *instance, std::shared_ptr<CallInvoker> jsInvoker) :
|
|
56
|
+
NativeComTappSoSdkCxxSpecJSI(std::move(jsInvoker)), instance_(instance) {
|
|
57
|
+
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
void start(jsi::Runtime &rt, jsi::String authToken, jsi::String env, jsi::String tappToken) override {
|
|
61
|
+
static_assert(
|
|
62
|
+
bridging::getParameterCount(&T::start) == 4,
|
|
63
|
+
"Expected start(...) to have 4 parameters");
|
|
64
|
+
|
|
65
|
+
return bridging::callFromJs<void>(
|
|
66
|
+
rt, &T::start, jsInvoker_, instance_, std::move(authToken), std::move(env), std::move(tappToken));
|
|
67
|
+
}
|
|
68
|
+
jsi::Value url(jsi::Runtime &rt, jsi::String influencer, std::optional<jsi::String> adGroup, std::optional<jsi::String> creative, std::optional<jsi::Object> data) override {
|
|
69
|
+
static_assert(
|
|
70
|
+
bridging::getParameterCount(&T::url) == 5,
|
|
71
|
+
"Expected url(...) to have 5 parameters");
|
|
72
|
+
|
|
73
|
+
return bridging::callFromJs<jsi::Value>(
|
|
74
|
+
rt, &T::url, jsInvoker_, instance_, std::move(influencer), std::move(adGroup), std::move(creative), std::move(data));
|
|
75
|
+
}
|
|
76
|
+
jsi::Value handleTappEvent(jsi::Runtime &rt, double eventAction, std::optional<jsi::String> customValue, std::optional<jsi::Object> metadata) override {
|
|
77
|
+
static_assert(
|
|
78
|
+
bridging::getParameterCount(&T::handleTappEvent) == 4,
|
|
79
|
+
"Expected handleTappEvent(...) to have 4 parameters");
|
|
80
|
+
|
|
81
|
+
return bridging::callFromJs<jsi::Value>(
|
|
82
|
+
rt, &T::handleTappEvent, jsInvoker_, instance_, std::move(eventAction), std::move(customValue), std::move(metadata));
|
|
83
|
+
}
|
|
84
|
+
jsi::Value fetchLinkData(jsi::Runtime &rt, jsi::String deepLink) override {
|
|
85
|
+
static_assert(
|
|
86
|
+
bridging::getParameterCount(&T::fetchLinkData) == 2,
|
|
87
|
+
"Expected fetchLinkData(...) to have 2 parameters");
|
|
88
|
+
|
|
89
|
+
return bridging::callFromJs<jsi::Value>(
|
|
90
|
+
rt, &T::fetchLinkData, jsInvoker_, instance_, std::move(deepLink));
|
|
91
|
+
}
|
|
92
|
+
jsi::Value shouldProcess(jsi::Runtime &rt, jsi::String deepLink) override {
|
|
93
|
+
static_assert(
|
|
94
|
+
bridging::getParameterCount(&T::shouldProcess) == 2,
|
|
95
|
+
"Expected shouldProcess(...) to have 2 parameters");
|
|
96
|
+
|
|
97
|
+
return bridging::callFromJs<jsi::Value>(
|
|
98
|
+
rt, &T::shouldProcess, jsInvoker_, instance_, std::move(deepLink));
|
|
99
|
+
}
|
|
100
|
+
jsi::Value fetchOriginLinkData(jsi::Runtime &rt) override {
|
|
101
|
+
static_assert(
|
|
102
|
+
bridging::getParameterCount(&T::fetchOriginLinkData) == 1,
|
|
103
|
+
"Expected fetchOriginLinkData(...) to have 1 parameters");
|
|
104
|
+
|
|
105
|
+
return bridging::callFromJs<jsi::Value>(
|
|
106
|
+
rt, &T::fetchOriginLinkData, jsInvoker_, instance_);
|
|
107
|
+
}
|
|
108
|
+
void simulateTestEvent(jsi::Runtime &rt) override {
|
|
109
|
+
static_assert(
|
|
110
|
+
bridging::getParameterCount(&T::simulateTestEvent) == 1,
|
|
111
|
+
"Expected simulateTestEvent(...) to have 1 parameters");
|
|
112
|
+
|
|
113
|
+
return bridging::callFromJs<void>(
|
|
114
|
+
rt, &T::simulateTestEvent, jsInvoker_, instance_);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
private:
|
|
118
|
+
friend class NativeComTappSoSdkCxxSpec;
|
|
119
|
+
T *instance_;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
Delegate delegate_;
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
} // namespace facebook::react
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../src","sources":["NativeComTappSoSdk.ts"],"mappings":";;AAAA,SAASA,mBAAmB,QAA0B,cAAc;AA6CpE,eAAeA,mBAAmB,CAACC,YAAY,CAAO,cAAc,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export let EventAction = /*#__PURE__*/function (EventAction) {
|
|
4
|
+
EventAction[EventAction["TAPP_ADD_PAYMENT_INFO"] = 1] = "TAPP_ADD_PAYMENT_INFO";
|
|
5
|
+
EventAction[EventAction["TAPP_ADD_TO_CART"] = 2] = "TAPP_ADD_TO_CART";
|
|
6
|
+
EventAction[EventAction["TAPP_ADD_TO_WISHLIST"] = 3] = "TAPP_ADD_TO_WISHLIST";
|
|
7
|
+
EventAction[EventAction["TAPP_COMPLETE_REGISTRATION"] = 4] = "TAPP_COMPLETE_REGISTRATION";
|
|
8
|
+
EventAction[EventAction["TAPP_CONTACT"] = 5] = "TAPP_CONTACT";
|
|
9
|
+
EventAction[EventAction["TAPP_CUSTOMIZE_PRODUCT"] = 6] = "TAPP_CUSTOMIZE_PRODUCT";
|
|
10
|
+
EventAction[EventAction["TAPP_DONATE"] = 7] = "TAPP_DONATE";
|
|
11
|
+
EventAction[EventAction["TAPP_FIND_LOCATION"] = 8] = "TAPP_FIND_LOCATION";
|
|
12
|
+
EventAction[EventAction["TAPP_INITIATE_CHECKOUT"] = 9] = "TAPP_INITIATE_CHECKOUT";
|
|
13
|
+
EventAction[EventAction["TAPP_GENERATE_LEAD"] = 10] = "TAPP_GENERATE_LEAD";
|
|
14
|
+
EventAction[EventAction["TAPP_PURCHASE"] = 11] = "TAPP_PURCHASE";
|
|
15
|
+
EventAction[EventAction["TAPP_SCHEDULE"] = 12] = "TAPP_SCHEDULE";
|
|
16
|
+
EventAction[EventAction["TAPP_SEARCH"] = 13] = "TAPP_SEARCH";
|
|
17
|
+
EventAction[EventAction["TAPP_START_TRIAL"] = 14] = "TAPP_START_TRIAL";
|
|
18
|
+
EventAction[EventAction["TAPP_SUBMIT_APPLICATION"] = 15] = "TAPP_SUBMIT_APPLICATION";
|
|
19
|
+
EventAction[EventAction["TAPP_SUBSCRIBE"] = 16] = "TAPP_SUBSCRIBE";
|
|
20
|
+
EventAction[EventAction["TAPP_VIEW_CONTENT"] = 17] = "TAPP_VIEW_CONTENT";
|
|
21
|
+
EventAction[EventAction["TAPP_CLICK_BUTTON"] = 18] = "TAPP_CLICK_BUTTON";
|
|
22
|
+
EventAction[EventAction["TAPP_DOWNLOAD_FILE"] = 19] = "TAPP_DOWNLOAD_FILE";
|
|
23
|
+
EventAction[EventAction["TAPP_JOIN_GROUP"] = 20] = "TAPP_JOIN_GROUP";
|
|
24
|
+
EventAction[EventAction["TAPP_ACHIEVE_LEVEL"] = 21] = "TAPP_ACHIEVE_LEVEL";
|
|
25
|
+
EventAction[EventAction["TAPP_CREATE_GROUP"] = 22] = "TAPP_CREATE_GROUP";
|
|
26
|
+
EventAction[EventAction["TAPP_CREATE_ROLE"] = 23] = "TAPP_CREATE_ROLE";
|
|
27
|
+
EventAction[EventAction["TAPP_LINK_CLICK"] = 24] = "TAPP_LINK_CLICK";
|
|
28
|
+
EventAction[EventAction["TAPP_LINK_IMPRESSION"] = 25] = "TAPP_LINK_IMPRESSION";
|
|
29
|
+
EventAction[EventAction["TAPP_APPLY_FOR_LOAN"] = 26] = "TAPP_APPLY_FOR_LOAN";
|
|
30
|
+
EventAction[EventAction["TAPP_LOAN_APPROVAL"] = 27] = "TAPP_LOAN_APPROVAL";
|
|
31
|
+
EventAction[EventAction["TAPP_LOAN_DISBURSAL"] = 28] = "TAPP_LOAN_DISBURSAL";
|
|
32
|
+
EventAction[EventAction["TAPP_LOGIN"] = 29] = "TAPP_LOGIN";
|
|
33
|
+
EventAction[EventAction["TAPP_RATE"] = 30] = "TAPP_RATE";
|
|
34
|
+
EventAction[EventAction["TAPP_SPEND_CREDITS"] = 31] = "TAPP_SPEND_CREDITS";
|
|
35
|
+
EventAction[EventAction["TAPP_UNLOCK_ACHIEVEMENT"] = 32] = "TAPP_UNLOCK_ACHIEVEMENT";
|
|
36
|
+
EventAction[EventAction["TAPP_ADD_SHIPPING_INFO"] = 33] = "TAPP_ADD_SHIPPING_INFO";
|
|
37
|
+
EventAction[EventAction["TAPP_EARN_VIRTUAL_CURRENCY"] = 34] = "TAPP_EARN_VIRTUAL_CURRENCY";
|
|
38
|
+
EventAction[EventAction["TAPP_START_LEVEL"] = 35] = "TAPP_START_LEVEL";
|
|
39
|
+
EventAction[EventAction["TAPP_COMPLETE_LEVEL"] = 36] = "TAPP_COMPLETE_LEVEL";
|
|
40
|
+
EventAction[EventAction["TAPP_POST_SCORE"] = 37] = "TAPP_POST_SCORE";
|
|
41
|
+
EventAction[EventAction["TAPP_SELECT_CONTENT"] = 38] = "TAPP_SELECT_CONTENT";
|
|
42
|
+
EventAction[EventAction["TAPP_BEGIN_TUTORIAL"] = 39] = "TAPP_BEGIN_TUTORIAL";
|
|
43
|
+
EventAction[EventAction["TAPP_COMPLETE_TUTORIAL"] = 40] = "TAPP_COMPLETE_TUTORIAL";
|
|
44
|
+
EventAction[EventAction["CUSTOM"] = 0] = "CUSTOM"; // Special case for custom events
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AXA,WAAW,CAAXA,WAAW;EAAXA,WAAW,CAAXA,WAAW,4BAyCT;EAAA,OAzCFA,WAAW;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { NativeEventEmitter, NativeModules } from 'react-native';
|
|
4
|
+
const {
|
|
5
|
+
EventEmitter
|
|
6
|
+
} = NativeModules;
|
|
7
|
+
const eventEmitter = new NativeEventEmitter(EventEmitter);
|
|
8
|
+
export function addDeferredLinkListener(listener) {
|
|
9
|
+
return eventEmitter.addListener('onDeferredLinkReceived', listener);
|
|
10
|
+
}
|
|
11
|
+
export function addDidFailResolvingURLListener(listener) {
|
|
12
|
+
return eventEmitter.addListener('onDidFailResolvingURL', listener);
|
|
13
|
+
}
|
|
14
|
+
export function addTestListener(listener) {
|
|
15
|
+
return eventEmitter.addListener('onTestListener', listener);
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=events.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["NativeEventEmitter","NativeModules","EventEmitter","eventEmitter","addDeferredLinkListener","listener","addListener","addDidFailResolvingURLListener","addTestListener"],"sourceRoot":"../../src","sources":["events.ts"],"mappings":";;AAAA,SAASA,kBAAkB,EAAEC,aAAa,QAAQ,cAAc;AAGhE,MAAM;EAAEC;AAAa,CAAC,GAAGD,aAAa;AACtC,MAAME,YAAY,GAAG,IAAIH,kBAAkB,CAACE,YAAY,CAAC;AAEzD,OAAO,SAASE,uBAAuBA,CACrCC,QAAkD,EAClD;EACA,OAAOF,YAAY,CAACG,WAAW,CAAC,wBAAwB,EAAED,QAAQ,CAAC;AACrE;AAEA,OAAO,SAASE,8BAA8BA,CAC5CF,QAA4D,EAC5D;EACA,OAAOF,YAAY,CAACG,WAAW,CAAC,uBAAuB,EAAED,QAAQ,CAAC;AACpE;AAEA,OAAO,SAASG,eAAeA,CAACH,QAA0C,EAAE;EAC1E,OAAOF,YAAY,CAACG,WAAW,CAAC,gBAAgB,EAAED,QAAQ,CAAC;AAC7D","ignoreList":[]}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import ComTappSoSdk from './NativeComTappSoSdk';
|
|
4
|
+
import { Platform } from 'react-native';
|
|
5
|
+
import { EventAction } from './Types';
|
|
6
|
+
|
|
7
|
+
// Helper to handle unsupported platforms
|
|
8
|
+
const unsupportedPlatformMessage = methodName => {
|
|
9
|
+
console.log(`[${Platform.OS}] Method "${methodName}" is not supported.`);
|
|
10
|
+
};
|
|
11
|
+
export function start(config) {
|
|
12
|
+
if (Platform.OS === 'web') {
|
|
13
|
+
unsupportedPlatformMessage('start');
|
|
14
|
+
}
|
|
15
|
+
ComTappSoSdk.start(config.authToken, config.env, config.tappToken);
|
|
16
|
+
}
|
|
17
|
+
export function url(influencer, adGroup, creative, data) {
|
|
18
|
+
if (Platform.OS === 'web') {
|
|
19
|
+
unsupportedPlatformMessage('url');
|
|
20
|
+
}
|
|
21
|
+
return ComTappSoSdk.url(influencer, adGroup, creative, data);
|
|
22
|
+
}
|
|
23
|
+
export function handleTappEvent(event) {
|
|
24
|
+
if (Platform.OS === 'web') {
|
|
25
|
+
unsupportedPlatformMessage('handleTappEvent');
|
|
26
|
+
}
|
|
27
|
+
const value = event.customValue ?? 'custom_event_autogenerated';
|
|
28
|
+
const customValue = event.eventAction === EventAction.CUSTOM ? value : undefined;
|
|
29
|
+
const metadata = event.metadata;
|
|
30
|
+
return ComTappSoSdk.handleTappEvent(event.eventAction, customValue, metadata);
|
|
31
|
+
}
|
|
32
|
+
export function fetchLinkData(deepLink) {
|
|
33
|
+
if (Platform.OS === 'web') {
|
|
34
|
+
unsupportedPlatformMessage('fetchLinkData');
|
|
35
|
+
}
|
|
36
|
+
return ComTappSoSdk.fetchLinkData(deepLink);
|
|
37
|
+
}
|
|
38
|
+
export function shouldProcess(deepLink) {
|
|
39
|
+
if (Platform.OS === 'web') {
|
|
40
|
+
unsupportedPlatformMessage('shouldProcess');
|
|
41
|
+
}
|
|
42
|
+
return ComTappSoSdk.shouldProcess(deepLink);
|
|
43
|
+
}
|
|
44
|
+
export function fetchOriginLinkData() {
|
|
45
|
+
if (Platform.OS === 'web') {
|
|
46
|
+
unsupportedPlatformMessage('fetchOriginLinkData');
|
|
47
|
+
}
|
|
48
|
+
return ComTappSoSdk.fetchOriginLinkData();
|
|
49
|
+
}
|
|
50
|
+
export function simulateTestEvent() {
|
|
51
|
+
if (Platform.OS === 'web' || Platform.OS === 'ios') {
|
|
52
|
+
unsupportedPlatformMessage('simulateTestEvent');
|
|
53
|
+
}
|
|
54
|
+
return ComTappSoSdk.simulateTestEvent();
|
|
55
|
+
}
|
|
56
|
+
export * from './Types';
|
|
57
|
+
export * from './events';
|
|
58
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ComTappSoSdk","Platform","EventAction","unsupportedPlatformMessage","methodName","console","log","OS","start","config","authToken","env","tappToken","url","influencer","adGroup","creative","data","handleTappEvent","event","value","customValue","eventAction","CUSTOM","undefined","metadata","fetchLinkData","deepLink","shouldProcess","fetchOriginLinkData","simulateTestEvent"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,OAAOA,YAAY,MAAM,sBAAsB;AAC/C,SAASC,QAAQ,QAAQ,cAAc;AACvC,SACEC,WAAW,QAIN,SAAS;;AAEhB;AACA,MAAMC,0BAA0B,GAAIC,UAAkB,IAAK;EACzDC,OAAO,CAACC,GAAG,CAAC,IAAIL,QAAQ,CAACM,EAAE,aAAaH,UAAU,qBAAqB,CAAC;AAC1E,CAAC;AAED,OAAO,SAASI,KAAKA,CAACC,MAAkB,EAAQ;EAC9C,IAAIR,QAAQ,CAACM,EAAE,KAAK,KAAK,EAAE;IACzBJ,0BAA0B,CAAC,OAAO,CAAC;EACrC;EACAH,YAAY,CAACQ,KAAK,CAACC,MAAM,CAACC,SAAS,EAAED,M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Q,CAACM,EAAE,KAAK,KAAK,EAAE;IACzBJ,0BAA0B,CAAC,qBAAqB,CAAC;EACnD;EACA,OAAOH,YAAY,CAAC6B,mBAAmB,CAAC,CAAC;AAC3C;AAEA,OAAO,SAASC,iBAAiBA,CAAA,EAAS;EACxC,IAAI7B,QAAQ,CAACM,EAAE,KAAK,KAAK,IAAIN,QAAQ,CAACM,EAAE,KAAK,KAAK,EAAE;IAClDJ,0BAA0B,CAAC,mBAAmB,CAAC;EACjD;EACA,OAAOH,YAAY,CAAC8B,iBAAiB,CAAC,CAAC;AACzC;AAEA,cAAc,SAAS;AACvB,cAAc,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type TurboModule } from 'react-native';
|
|
2
|
+
import { type UnsafeObject } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
|
+
export interface Spec extends TurboModule {
|
|
4
|
+
start(authToken: string, env: string, tappToken: string): void;
|
|
5
|
+
url(influencer: string, adGroup?: string, creative?: string, data?: {
|
|
6
|
+
[key: string]: string;
|
|
7
|
+
}): Promise<string>;
|
|
8
|
+
handleTappEvent(eventAction: number, customValue?: string, metadata?: UnsafeObject): Promise<string>;
|
|
9
|
+
fetchLinkData(deepLink: string): Promise<{
|
|
10
|
+
error: boolean;
|
|
11
|
+
message?: string;
|
|
12
|
+
tappUrl?: string;
|
|
13
|
+
attrTappUrl?: string;
|
|
14
|
+
influencer?: string;
|
|
15
|
+
data?: {
|
|
16
|
+
[key: string]: string;
|
|
17
|
+
};
|
|
18
|
+
isFirstSession?: boolean;
|
|
19
|
+
deepLink?: string;
|
|
20
|
+
}>;
|
|
21
|
+
shouldProcess(deepLink: string): Promise<boolean>;
|
|
22
|
+
fetchOriginLinkData(): Promise<{
|
|
23
|
+
error: boolean;
|
|
24
|
+
message?: string;
|
|
25
|
+
tappUrl?: string;
|
|
26
|
+
attrTappUrl?: string;
|
|
27
|
+
influencer?: string;
|
|
28
|
+
data?: {
|
|
29
|
+
[key: string]: string;
|
|
30
|
+
};
|
|
31
|
+
isFirstSession?: boolean;
|
|
32
|
+
}>;
|
|
33
|
+
simulateTestEvent(): void;
|
|
34
|
+
}
|
|
35
|
+
declare const _default: Spec;
|
|
36
|
+
export default _default;
|
|
37
|
+
//# sourceMappingURL=NativeComTappSoSdk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeComTappSoSdk.d.ts","sourceRoot":"","sources":["../../../src/NativeComTappSoSdk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,2CAA2C,CAAC;AAE9E,MAAM,WAAW,IAAK,SAAQ,WAAW;IACvC,KAAK,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/D,GAAG,CACD,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,MAAM,EAChB,QAAQ,CAAC,EAAE,MAAM,EACjB,IAAI,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAC/B,OAAO,CAAC,MAAM,CAAC,CAAC;IAEnB,eAAe,CACb,WAAW,EAAE,MAAM,EACnB,WAAW,CAAC,EAAE,MAAM,EACpB,QAAQ,CAAC,EAAE,YAAY,GACtB,OAAO,CAAC,MAAM,CAAC,CAAC;IAEnB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;QACvC,KAAK,EAAE,OAAO,CAAC;QACf,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,IAAI,CAAC,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;SAAE,CAAC;QACjC,cAAc,CAAC,EAAE,OAAO,CAAC;QACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC,CAAC;IAEH,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAElD,mBAAmB,IAAI,OAAO,CAAC;QAC7B,KAAK,EAAE,OAAO,CAAC;QACf,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,IAAI,CAAC,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;SAAE,CAAC;QACjC,cAAc,CAAC,EAAE,OAAO,CAAC;KAC1B,CAAC,CAAC;IAEH,iBAAiB,IAAI,IAAI,CAAC;CAC3B;;AAED,wBAAsE"}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
export type InitConfig = {
|
|
2
|
+
authToken: string;
|
|
3
|
+
env: EnvironmentType;
|
|
4
|
+
tappToken: string;
|
|
5
|
+
};
|
|
6
|
+
export type EnvironmentType = 'PRODUCTION' | 'SANDBOX';
|
|
7
|
+
export type AffiliateType = 'ADJUST' | 'APPFLYER' | 'TAPP' | 'TAPP_NATIVE';
|
|
8
|
+
export declare enum EventAction {
|
|
9
|
+
TAPP_ADD_PAYMENT_INFO = 1,
|
|
10
|
+
TAPP_ADD_TO_CART = 2,
|
|
11
|
+
TAPP_ADD_TO_WISHLIST = 3,
|
|
12
|
+
TAPP_COMPLETE_REGISTRATION = 4,
|
|
13
|
+
TAPP_CONTACT = 5,
|
|
14
|
+
TAPP_CUSTOMIZE_PRODUCT = 6,
|
|
15
|
+
TAPP_DONATE = 7,
|
|
16
|
+
TAPP_FIND_LOCATION = 8,
|
|
17
|
+
TAPP_INITIATE_CHECKOUT = 9,
|
|
18
|
+
TAPP_GENERATE_LEAD = 10,
|
|
19
|
+
TAPP_PURCHASE = 11,
|
|
20
|
+
TAPP_SCHEDULE = 12,
|
|
21
|
+
TAPP_SEARCH = 13,
|
|
22
|
+
TAPP_START_TRIAL = 14,
|
|
23
|
+
TAPP_SUBMIT_APPLICATION = 15,
|
|
24
|
+
TAPP_SUBSCRIBE = 16,
|
|
25
|
+
TAPP_VIEW_CONTENT = 17,
|
|
26
|
+
TAPP_CLICK_BUTTON = 18,
|
|
27
|
+
TAPP_DOWNLOAD_FILE = 19,
|
|
28
|
+
TAPP_JOIN_GROUP = 20,
|
|
29
|
+
TAPP_ACHIEVE_LEVEL = 21,
|
|
30
|
+
TAPP_CREATE_GROUP = 22,
|
|
31
|
+
TAPP_CREATE_ROLE = 23,
|
|
32
|
+
TAPP_LINK_CLICK = 24,
|
|
33
|
+
TAPP_LINK_IMPRESSION = 25,
|
|
34
|
+
TAPP_APPLY_FOR_LOAN = 26,
|
|
35
|
+
TAPP_LOAN_APPROVAL = 27,
|
|
36
|
+
TAPP_LOAN_DISBURSAL = 28,
|
|
37
|
+
TAPP_LOGIN = 29,
|
|
38
|
+
TAPP_RATE = 30,
|
|
39
|
+
TAPP_SPEND_CREDITS = 31,
|
|
40
|
+
TAPP_UNLOCK_ACHIEVEMENT = 32,
|
|
41
|
+
TAPP_ADD_SHIPPING_INFO = 33,
|
|
42
|
+
TAPP_EARN_VIRTUAL_CURRENCY = 34,
|
|
43
|
+
TAPP_START_LEVEL = 35,
|
|
44
|
+
TAPP_COMPLETE_LEVEL = 36,
|
|
45
|
+
TAPP_POST_SCORE = 37,
|
|
46
|
+
TAPP_SELECT_CONTENT = 38,
|
|
47
|
+
TAPP_BEGIN_TUTORIAL = 39,
|
|
48
|
+
TAPP_COMPLETE_TUTORIAL = 40,
|
|
49
|
+
CUSTOM = 0
|
|
50
|
+
}
|
|
51
|
+
export type TappMetadataValue = string | boolean | number;
|
|
52
|
+
export type TappMetadata = Record<string, TappMetadataValue>;
|
|
53
|
+
export type TappEventType = {
|
|
54
|
+
eventAction: EventAction;
|
|
55
|
+
customValue?: string;
|
|
56
|
+
metadata?: TappMetadata;
|
|
57
|
+
};
|
|
58
|
+
export type AdjustTrackAdRevenueType = {
|
|
59
|
+
source: string;
|
|
60
|
+
revenue: number;
|
|
61
|
+
currency: string;
|
|
62
|
+
};
|
|
63
|
+
export type AdjustPurchaseVerificationResult = {
|
|
64
|
+
success: boolean;
|
|
65
|
+
message: string;
|
|
66
|
+
};
|
|
67
|
+
export type TappLinkDataResponse = {
|
|
68
|
+
error: boolean;
|
|
69
|
+
message?: string;
|
|
70
|
+
tappUrl?: string;
|
|
71
|
+
attrTappUrl?: string;
|
|
72
|
+
influencer?: string;
|
|
73
|
+
data?: {
|
|
74
|
+
[key: string]: string;
|
|
75
|
+
};
|
|
76
|
+
isFirstSession?: boolean;
|
|
77
|
+
deepLink?: string;
|
|
78
|
+
};
|
|
79
|
+
export type AdjustAttributionType = {
|
|
80
|
+
adid: string;
|
|
81
|
+
trackerToken: string;
|
|
82
|
+
trackerName: string;
|
|
83
|
+
network: string;
|
|
84
|
+
campaign: string;
|
|
85
|
+
adgroup: string;
|
|
86
|
+
creative: string;
|
|
87
|
+
clickLabel: string;
|
|
88
|
+
costType: string;
|
|
89
|
+
costAmount: number;
|
|
90
|
+
costCurrency: string;
|
|
91
|
+
fbInstallReferrer: string;
|
|
92
|
+
costInUsd: number;
|
|
93
|
+
callbackParams: {
|
|
94
|
+
[key: string]: string;
|
|
95
|
+
};
|
|
96
|
+
partnerParams: {
|
|
97
|
+
[key: string]: string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
export interface VerifyResult {
|
|
101
|
+
verificationStatus: string;
|
|
102
|
+
code: number;
|
|
103
|
+
message: string;
|
|
104
|
+
}
|
|
105
|
+
export interface AppStoreSubscription {
|
|
106
|
+
price: number;
|
|
107
|
+
currency: string;
|
|
108
|
+
transactionId: string;
|
|
109
|
+
transactionDate?: number;
|
|
110
|
+
salesRegion?: string;
|
|
111
|
+
callbackParameters?: {
|
|
112
|
+
[key: string]: string;
|
|
113
|
+
};
|
|
114
|
+
partnerParameters?: {
|
|
115
|
+
[key: string]: string;
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
export interface PlayStoreSubscription {
|
|
119
|
+
price: number;
|
|
120
|
+
currency: string;
|
|
121
|
+
sku: string;
|
|
122
|
+
orderId: string;
|
|
123
|
+
signature: string;
|
|
124
|
+
purchaseToken: string;
|
|
125
|
+
purchaseTime?: number;
|
|
126
|
+
}
|
|
127
|
+
export type UpdateSkanConversionValueType = {
|
|
128
|
+
value: number;
|
|
129
|
+
coarseValue?: string;
|
|
130
|
+
lockWindow?: number;
|
|
131
|
+
};
|
|
132
|
+
export type VerifyPlayStorePurchaseType = {
|
|
133
|
+
transactionId: string;
|
|
134
|
+
productId: string;
|
|
135
|
+
};
|
|
136
|
+
export type VerifyPlayStorePurchaseCompletionType = (result: {
|
|
137
|
+
verificationStatus: string;
|
|
138
|
+
code: number;
|
|
139
|
+
message: string;
|
|
140
|
+
}) => void;
|
|
141
|
+
export interface DeferredLinkDelegate {
|
|
142
|
+
didReceiveDeferredLink(linkDataResponse: TappLinkDataResponse): void;
|
|
143
|
+
testListener(test: string): void;
|
|
144
|
+
}
|
|
145
|
+
//# sourceMappingURL=Types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Types.d.ts","sourceRoot":"","sources":["../../../src/Types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,eAAe,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;CAEnB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,YAAY,GAAG,SAAS,CAAC;AAEvD,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,aAAa,CAAC;AAE3E,oBAAY,WAAW;IACrB,qBAAqB,IAAI;IACzB,gBAAgB,IAAI;IAC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ACd,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAC/C,iBAAiB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CAC/C;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,6BAA6B,GAAG;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,qCAAqC,GAAG,CAAC,MAAM,EAAE;IAC3D,kBAAkB,EAAE,MAAM,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB,KAAK,IAAI,CAAC;AACX,MAAM,WAAW,oBAAoB;IACnC,sBAAsB,CAAC,gBAAgB,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACrE,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { TappLinkDataResponse } from './Types';
|
|
2
|
+
export declare function addDeferredLinkListener(listener: (response: TappLinkDataResponse) => void): import("react-native").EmitterSubscription;
|
|
3
|
+
export declare function addDidFailResolvingURLListener(listener: (response: {
|
|
4
|
+
url: string;
|
|
5
|
+
error: string;
|
|
6
|
+
}) => void): import("react-native").EmitterSubscription;
|
|
7
|
+
export declare function addTestListener(listener: (data: {
|
|
8
|
+
test: string;
|
|
9
|
+
}) => void): import("react-native").EmitterSubscription;
|
|
10
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/events.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAKpD,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,CAAC,QAAQ,EAAE,oBAAoB,KAAK,IAAI,8CAGnD;AAED,wBAAgB,8BAA8B,CAC5C,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,KAAK,IAAI,8CAG7D;AAED,wBAAgB,eAAe,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,KAAK,IAAI,8CAEzE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type InitConfig, type TappEventType, type TappLinkDataResponse } from './Types';
|
|
2
|
+
export declare function start(config: InitConfig): void;
|
|
3
|
+
export declare function url(influencer: string, adGroup?: string, creative?: string, data?: {
|
|
4
|
+
[key: string]: string;
|
|
5
|
+
}): Promise<string>;
|
|
6
|
+
export declare function handleTappEvent(event: TappEventType): Promise<string>;
|
|
7
|
+
export declare function fetchLinkData(deepLink: string): Promise<TappLinkDataResponse>;
|
|
8
|
+
export declare function shouldProcess(deepLink: string): Promise<boolean>;
|
|
9
|
+
export declare function fetchOriginLinkData(): Promise<TappLinkDataResponse>;
|
|
10
|
+
export declare function simulateTestEvent(): void;
|
|
11
|
+
export * from './Types';
|
|
12
|
+
export * from './events';
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,UAAU,EACf,KAAK,aAAa,EAClB,KAAK,oBAAoB,EAC1B,MAAM,SAAS,CAAC;AAOjB,wBAAgB,KAAK,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAK9C;AAED,wBAAgB,GAAG,CACjB,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,MAAM,EAChB,QAAQ,CAAC,EAAE,MAAM,EACjB,IAAI,CAAC,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,GAC/B,OAAO,CAAC,MAAM,CAAC,CAKjB;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CAgBrE;AAED,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAK7E;AAED,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAKhE;AAED,wBAAgB,mBAAmB,IAAI,OAAO,CAAC,oBAAoB,CAAC,CAKnE;AAED,wBAAgB,iBAAiB,IAAI,IAAI,CAKxC;AAED,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC"}
|