@adshift/react-native-plugin 1.0.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.
Files changed (54) hide show
  1. package/AdShiftReactNativePlugin.podspec +30 -0
  2. package/LICENSE +45 -0
  3. package/README.md +810 -0
  4. package/android/build.gradle +80 -0
  5. package/android/gradle.properties +5 -0
  6. package/android/src/main/AndroidManifest.xml +2 -0
  7. package/android/src/main/java/com/adshift/reactnativeplugin/AdShiftReactNativePluginModule.kt +420 -0
  8. package/android/src/main/java/com/adshift/reactnativeplugin/AdShiftReactNativePluginPackage.kt +33 -0
  9. package/ios/AdShiftReactNativePlugin.h +24 -0
  10. package/ios/AdShiftReactNativePlugin.mm +258 -0
  11. package/ios/AdShiftReactNativePluginHelper.swift +413 -0
  12. package/lib/module/Adshift.js +468 -0
  13. package/lib/module/Adshift.js.map +1 -0
  14. package/lib/module/NativeAdShiftReactNativePlugin.js +18 -0
  15. package/lib/module/NativeAdShiftReactNativePlugin.js.map +1 -0
  16. package/lib/module/index.js +57 -0
  17. package/lib/module/index.js.map +1 -0
  18. package/lib/module/package.json +1 -0
  19. package/lib/module/types/AdshiftConfig.js +44 -0
  20. package/lib/module/types/AdshiftConfig.js.map +1 -0
  21. package/lib/module/types/AdshiftConsent.js +101 -0
  22. package/lib/module/types/AdshiftConsent.js.map +1 -0
  23. package/lib/module/types/AdshiftDeepLink.js +121 -0
  24. package/lib/module/types/AdshiftDeepLink.js.map +1 -0
  25. package/lib/module/types/AdshiftEventType.js +108 -0
  26. package/lib/module/types/AdshiftEventType.js.map +1 -0
  27. package/lib/module/types/index.js +10 -0
  28. package/lib/module/types/index.js.map +1 -0
  29. package/lib/typescript/package.json +1 -0
  30. package/lib/typescript/src/Adshift.d.ts +335 -0
  31. package/lib/typescript/src/Adshift.d.ts.map +1 -0
  32. package/lib/typescript/src/NativeAdShiftReactNativePlugin.d.ts +143 -0
  33. package/lib/typescript/src/NativeAdShiftReactNativePlugin.d.ts.map +1 -0
  34. package/lib/typescript/src/index.d.ts +47 -0
  35. package/lib/typescript/src/index.d.ts.map +1 -0
  36. package/lib/typescript/src/types/AdshiftConfig.d.ts +74 -0
  37. package/lib/typescript/src/types/AdshiftConfig.d.ts.map +1 -0
  38. package/lib/typescript/src/types/AdshiftConsent.d.ts +88 -0
  39. package/lib/typescript/src/types/AdshiftConsent.d.ts.map +1 -0
  40. package/lib/typescript/src/types/AdshiftDeepLink.d.ts +93 -0
  41. package/lib/typescript/src/types/AdshiftDeepLink.d.ts.map +1 -0
  42. package/lib/typescript/src/types/AdshiftEventType.d.ts +87 -0
  43. package/lib/typescript/src/types/AdshiftEventType.d.ts.map +1 -0
  44. package/lib/typescript/src/types/index.d.ts +5 -0
  45. package/lib/typescript/src/types/index.d.ts.map +1 -0
  46. package/package.json +143 -0
  47. package/src/Adshift.ts +539 -0
  48. package/src/NativeAdShiftReactNativePlugin.ts +177 -0
  49. package/src/index.tsx +68 -0
  50. package/src/types/AdshiftConfig.ts +108 -0
  51. package/src/types/AdshiftConsent.ts +127 -0
  52. package/src/types/AdshiftDeepLink.ts +194 -0
  53. package/src/types/AdshiftEventType.ts +135 -0
  54. package/src/types/index.ts +7 -0
@@ -0,0 +1,101 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * User consent data for GDPR/DMA compliance.
5
+ *
6
+ * @example
7
+ * ```typescript
8
+ * // For GDPR users who accepted all
9
+ * const consent = AdshiftConsent.forGDPRUser({
10
+ * hasConsentForDataUsage: true,
11
+ * hasConsentForAdsPersonalization: true,
12
+ * hasConsentForAdStorage: true,
13
+ * });
14
+ *
15
+ * // For non-GDPR users
16
+ * const consent = AdshiftConsent.forNonGDPRUser();
17
+ *
18
+ * await Adshift.setConsentData(consent);
19
+ * ```
20
+ */
21
+
22
+ /**
23
+ * Helper functions for creating AdshiftConsent objects.
24
+ */
25
+ export const AdshiftConsent = {
26
+ /**
27
+ * Creates consent for a user subject to GDPR.
28
+ *
29
+ * Use this when user is in a GDPR region and has provided explicit consent.
30
+ *
31
+ * @example
32
+ * ```typescript
33
+ * const consent = AdshiftConsent.forGDPRUser({
34
+ * hasConsentForDataUsage: true,
35
+ * hasConsentForAdsPersonalization: true,
36
+ * hasConsentForAdStorage: true,
37
+ * });
38
+ * ```
39
+ */
40
+ forGDPRUser(options) {
41
+ return {
42
+ isUserSubjectToGDPR: true,
43
+ hasConsentForDataUsage: options.hasConsentForDataUsage,
44
+ hasConsentForAdsPersonalization: options.hasConsentForAdsPersonalization,
45
+ hasConsentForAdStorage: options.hasConsentForAdStorage
46
+ };
47
+ },
48
+ /**
49
+ * Creates consent for a user NOT subject to GDPR.
50
+ *
51
+ * Use this when user is in a non-GDPR region (e.g., US, Asia).
52
+ * All consent flags are set to true by default.
53
+ *
54
+ * @example
55
+ * ```typescript
56
+ * const consent = AdshiftConsent.forNonGDPRUser();
57
+ * ```
58
+ */
59
+ forNonGDPRUser() {
60
+ return {
61
+ isUserSubjectToGDPR: false,
62
+ hasConsentForDataUsage: true,
63
+ hasConsentForAdsPersonalization: true,
64
+ hasConsentForAdStorage: true
65
+ };
66
+ },
67
+ /**
68
+ * Determines whether consent is granted for tracking.
69
+ *
70
+ * If user is not subject to GDPR, consent is assumed granted.
71
+ * If subject to GDPR, both data usage and ad storage must be granted.
72
+ */
73
+ isConsentGranted(consent) {
74
+ if (!consent.isUserSubjectToGDPR) return true;
75
+ return consent.hasConsentForDataUsage && consent.hasConsentForAdStorage;
76
+ },
77
+ /**
78
+ * Creates consent from a plain object (native bridge response).
79
+ */
80
+ fromMap(map) {
81
+ return {
82
+ isUserSubjectToGDPR: map.isUserSubjectToGDPR ?? false,
83
+ hasConsentForDataUsage: map.hasConsentForDataUsage ?? false,
84
+ hasConsentForAdsPersonalization: map.hasConsentForAdsPersonalization ?? false,
85
+ hasConsentForAdStorage: map.hasConsentForAdStorage ?? false
86
+ };
87
+ }
88
+ };
89
+
90
+ /**
91
+ * Converts AdshiftConsent to a plain object for native bridge communication.
92
+ */
93
+ export function consentToMap(consent) {
94
+ return {
95
+ isUserSubjectToGDPR: consent.isUserSubjectToGDPR,
96
+ hasConsentForDataUsage: consent.hasConsentForDataUsage,
97
+ hasConsentForAdsPersonalization: consent.hasConsentForAdsPersonalization,
98
+ hasConsentForAdStorage: consent.hasConsentForAdStorage
99
+ };
100
+ }
101
+ //# sourceMappingURL=AdshiftConsent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["AdshiftConsent","forGDPRUser","options","isUserSubjectToGDPR","hasConsentForDataUsage","hasConsentForAdsPersonalization","hasConsentForAdStorage","forNonGDPRUser","isConsentGranted","consent","fromMap","map","consentToMap"],"sourceRoot":"../../../src","sources":["types/AdshiftConsent.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAuBA;AACA;AACA;AACA,OAAO,MAAMA,cAAc,GAAG;EAC5B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACEC,WAAWA,CAACC,OAIX,EAAkB;IACjB,OAAO;MACLC,mBAAmB,EAAE,IAAI;MACzBC,sBAAsB,EAAEF,OAAO,CAACE,sBAAsB;MACtDC,+BAA+B,EAAEH,OAAO,CAACG,+BAA+B;MACxEC,sBAAsB,EAAEJ,OAAO,CAACI;IAClC,CAAC;EACH,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACEC,cAAcA,CAAA,EAAmB;IAC/B,OAAO;MACLJ,mBAAmB,EAAE,KAAK;MAC1BC,sBAAsB,EAAE,IAAI;MAC5BC,+BAA+B,EAAE,IAAI;MACrCC,sBAAsB,EAAE;IAC1B,CAAC;EACH,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;EACEE,gBAAgBA,CAACC,OAAuB,EAAW;IACjD,IAAI,CAACA,OAAO,CAACN,mBAAmB,EAAE,OAAO,IAAI;IAC7C,OAAOM,OAAO,CAACL,sBAAsB,IAAIK,OAAO,CAACH,sBAAsB;EACzE,CAAC;EAED;AACF;AACA;EACEI,OAAOA,CAACC,GAA4B,EAAkB;IACpD,OAAO;MACLR,mBAAmB,EAAGQ,GAAG,CAACR,mBAAmB,IAAgB,KAAK;MAClEC,sBAAsB,EAAGO,GAAG,CAACP,sBAAsB,IAAgB,KAAK;MACxEC,+BAA+B,EAC5BM,GAAG,CAACN,+BAA+B,IAAgB,KAAK;MAC3DC,sBAAsB,EAAGK,GAAG,CAACL,sBAAsB,IAAgB;IACrE,CAAC;EACH;AACF,CAAC;;AAED;AACA;AACA;AACA,OAAO,SAASM,YAAYA,CAACH,OAAuB,EAA2B;EAC7E,OAAO;IACLN,mBAAmB,EAAEM,OAAO,CAACN,mBAAmB;IAChDC,sBAAsB,EAAEK,OAAO,CAACL,sBAAsB;IACtDC,+BAA+B,EAAEI,OAAO,CAACJ,+BAA+B;IACxEC,sBAAsB,EAAEG,OAAO,CAACH;EAClC,CAAC;AACH","ignoreList":[]}
@@ -0,0 +1,121 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * Status of a deep link resolution.
5
+ */
6
+ export let AdshiftDeepLinkStatus = /*#__PURE__*/function (AdshiftDeepLinkStatus) {
7
+ /** Deep link was found and resolved successfully. */
8
+ AdshiftDeepLinkStatus["Found"] = "found";
9
+ /** No deep link was found (e.g., organic install). */
10
+ AdshiftDeepLinkStatus["NotFound"] = "notFound";
11
+ /** Error occurred while resolving deep link. */
12
+ AdshiftDeepLinkStatus["Error"] = "error";
13
+ return AdshiftDeepLinkStatus;
14
+ }({});
15
+
16
+ /**
17
+ * Response from deep link handling.
18
+ *
19
+ * Contains the resolved deep link URL, parameters, and status.
20
+ *
21
+ * @example
22
+ * ```typescript
23
+ * const deepLink = await Adshift.handleDeepLink(url);
24
+ * if (deepLink.status === AdshiftDeepLinkStatus.Found) {
25
+ * const productId = deepLink.params?.['product_id'];
26
+ * // Navigate to product
27
+ * }
28
+ * ```
29
+ */
30
+
31
+ /**
32
+ * Helper functions for creating AdshiftDeepLink objects.
33
+ */
34
+ export const AdshiftDeepLink = {
35
+ /**
36
+ * Creates a successful deep link response.
37
+ */
38
+ found(options) {
39
+ return {
40
+ deepLink: options.deepLink,
41
+ deepLinkValue: options.deepLinkValue,
42
+ params: options.params,
43
+ isDeferred: options.isDeferred ?? false,
44
+ status: AdshiftDeepLinkStatus.Found,
45
+ deepLinkSub1: options.deepLinkSub1,
46
+ deepLinkSub2: options.deepLinkSub2,
47
+ deepLinkSub3: options.deepLinkSub3,
48
+ deepLinkSub4: options.deepLinkSub4,
49
+ deepLinkSub5: options.deepLinkSub5
50
+ };
51
+ },
52
+ /**
53
+ * Creates a "not found" deep link response.
54
+ */
55
+ notFound() {
56
+ return {
57
+ isDeferred: false,
58
+ status: AdshiftDeepLinkStatus.NotFound
59
+ };
60
+ },
61
+ /**
62
+ * Creates an error deep link response.
63
+ */
64
+ error(message) {
65
+ return {
66
+ isDeferred: false,
67
+ status: AdshiftDeepLinkStatus.Error,
68
+ errorMessage: message
69
+ };
70
+ },
71
+ /**
72
+ * Creates deep link from a plain object (native bridge response).
73
+ */
74
+ fromMap(map) {
75
+ const statusStr = map.status ?? 'notFound';
76
+ let status;
77
+ switch (statusStr) {
78
+ case 'found':
79
+ status = AdshiftDeepLinkStatus.Found;
80
+ break;
81
+ case 'error':
82
+ status = AdshiftDeepLinkStatus.Error;
83
+ break;
84
+ default:
85
+ status = AdshiftDeepLinkStatus.NotFound;
86
+ }
87
+ return {
88
+ deepLink: map.deepLink ?? map.deeplink,
89
+ deepLinkValue: map.deepLinkValue ?? map.deep_link_value,
90
+ params: map.params ?? map.queryParams,
91
+ isDeferred: map.isDeferred ?? false,
92
+ status,
93
+ errorMessage: map.errorMessage ?? map.error,
94
+ deepLinkSub1: map.deepLinkSub1 ?? map.deep_link_sub1 ?? map.sub1,
95
+ deepLinkSub2: map.deepLinkSub2 ?? map.deep_link_sub2 ?? map.sub2,
96
+ deepLinkSub3: map.deepLinkSub3 ?? map.deep_link_sub3 ?? map.sub3,
97
+ deepLinkSub4: map.deepLinkSub4 ?? map.deep_link_sub4 ?? map.sub4,
98
+ deepLinkSub5: map.deepLinkSub5 ?? map.deep_link_sub5 ?? map.sub5
99
+ };
100
+ }
101
+ };
102
+
103
+ /**
104
+ * Converts AdshiftDeepLink to a plain object for native bridge communication.
105
+ */
106
+ export function deepLinkToMap(deepLink) {
107
+ return {
108
+ deepLink: deepLink.deepLink,
109
+ deepLinkValue: deepLink.deepLinkValue,
110
+ params: deepLink.params,
111
+ isDeferred: deepLink.isDeferred,
112
+ status: deepLink.status,
113
+ errorMessage: deepLink.errorMessage,
114
+ deepLinkSub1: deepLink.deepLinkSub1,
115
+ deepLinkSub2: deepLink.deepLinkSub2,
116
+ deepLinkSub3: deepLink.deepLinkSub3,
117
+ deepLinkSub4: deepLink.deepLinkSub4,
118
+ deepLinkSub5: deepLink.deepLinkSub5
119
+ };
120
+ }
121
+ //# sourceMappingURL=AdshiftDeepLink.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["AdshiftDeepLinkStatus","AdshiftDeepLink","found","options","deepLink","deepLinkValue","params","isDeferred","status","Found","deepLinkSub1","deepLinkSub2","deepLinkSub3","deepLinkSub4","deepLinkSub5","notFound","NotFound","error","message","Error","errorMessage","fromMap","map","statusStr","deeplink","deep_link_value","queryParams","deep_link_sub1","sub1","deep_link_sub2","sub2","deep_link_sub3","sub3","deep_link_sub4","sub4","deep_link_sub5","sub5","deepLinkToMap"],"sourceRoot":"../../../src","sources":["types/AdshiftDeepLink.ts"],"mappings":";;AAAA;AACA;AACA;AACA,WAAYA,qBAAqB,0BAArBA,qBAAqB;EAC/B;EADUA,qBAAqB;EAI/B;EAJUA,qBAAqB;EAO/B;EAPUA,qBAAqB;EAAA,OAArBA,qBAAqB;AAAA;;AAWjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA8CA;AACA;AACA;AACA,OAA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ACzB,CAAC;AACH","ignoreList":[]}
@@ -0,0 +1,108 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * Predefined event types for AdShift SDK.
5
+ *
6
+ * Use these constants for consistent event naming across your app.
7
+ *
8
+ * @example
9
+ * ```typescript
10
+ * await Adshift.trackEvent(AdshiftEventType.AddToCart, {
11
+ * product_id: 'SKU123',
12
+ * price: 29.99,
13
+ * });
14
+ * ```
15
+ *
16
+ * You can also use custom event names as strings:
17
+ * ```typescript
18
+ * await Adshift.trackEvent('custom_event_name');
19
+ * ```
20
+ */
21
+ export const AdshiftEventType = {
22
+ // ============ E-commerce Events ============
23
+
24
+ /** User added item to cart. */
25
+ AddToCart: 'as_add_to_cart',
26
+ /** User added item to wishlist. */
27
+ AddToWishList: 'as_add_to_wishlist',
28
+ /** User added payment info. */
29
+ AddPaymentInfo: 'as_add_payment_info',
30
+ /** User initiated checkout. */
31
+ InitiatedCheckout: 'as_initiated_checkout',
32
+ /** User completed a purchase. */
33
+ Purchase: 'as_purchase',
34
+ /** User viewed content/product. */
35
+ ContentView: 'as_content_view',
36
+ /** User viewed a list of items. */
37
+ ListView: 'as_list_view',
38
+ /** User searched. */
39
+ Search: 'as_search',
40
+ // ============ User Lifecycle Events ============
41
+
42
+ /** User completed registration. */
43
+ CompleteRegistration: 'as_complete_registration',
44
+ /** User logged in. */
45
+ Login: 'as_login',
46
+ /** User completed tutorial. */
47
+ TutorialCompletion: 'as_tutorial_completion',
48
+ /** User subscribed. */
49
+ Subscribe: 'as_subscribe',
50
+ /** User started a trial. */
51
+ StartTrial: 'as_start_trial',
52
+ // ============ Gaming Events ============
53
+
54
+ /** User achieved a level. */
55
+ LevelAchieved: 'as_level_achieved',
56
+ /** User unlocked an achievement. */
57
+ AchievementUnlocked: 'as_achievement_unlocked',
58
+ /** User spent credits/currency. */
59
+ SpentCredit: 'as_spent_credits',
60
+ // ============ Engagement Events ============
61
+
62
+ /** User rated the app/content. */
63
+ Rate: 'as_rate',
64
+ /** User shared content. */
65
+ Share: 'as_share',
66
+ /** User invited others. */
67
+ Invite: 'as_invite',
68
+ /** User re-engaged with the app. */
69
+ ReEngage: 'as_re_engage',
70
+ /** User updated the app. */
71
+ Update: 'as_update',
72
+ /** User opened from push notification. */
73
+ OpenedFromPushNotification: 'as_opened_from_push_notification',
74
+ // ============ Travel Events ============
75
+
76
+ /** User made a travel booking. */
77
+ TravelBooking: 'as_travel_booking',
78
+ // ============ Ad Events ============
79
+
80
+ /** User clicked an ad. */
81
+ AdClick: 'as_ad_click',
82
+ /** User viewed an ad. */
83
+ AdView: 'as_ad_view',
84
+ // ============ Location Events ============
85
+
86
+ /** User location changed. */
87
+ LocationChanged: 'as_location_changed',
88
+ /** User location coordinates updated. */
89
+ LocationCoordinates: 'as_location_coordinates',
90
+ // ============ Other Events ============
91
+
92
+ /** Order ID event. */
93
+ OrderId: 'as_order_id',
94
+ /** Customer segment event. */
95
+ CustomerSegment: 'as_customer_segment'
96
+ };
97
+
98
+ /**
99
+ * Type representing all predefined event type values.
100
+ */
101
+
102
+ /**
103
+ * Returns all predefined event types as an array.
104
+ */
105
+ export function getAllEventTypes() {
106
+ return Object.values(AdshiftEventType);
107
+ }
108
+ //# sourceMappingURL=AdshiftEventType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["AdshiftEventType","AddToCart","AddToWishList","AddPaymentInfo","InitiatedCheckout","Purchase","ContentView","ListView","Search","CompleteRegistration","Login","TutorialCompletion","Subscribe","StartTrial","LevelAchieved","AchievementUnlocked","SpentCredit","Rate","Share","Invite","ReEngage","Update","OpenedFromPushNotification","TravelBooking","AdClick","AdView","LocationChanged","LocationCoordinates","OrderId","CustomerSegment","getAllEventTypes","Object","values"],"sourceRoot":"../../../src","sources":["types/AdshiftEventType.ts"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,gBAAgB,GAAG;EAC9B;;EAEA;EACAC,SAAS,EAAE,gBAAgB;EAE3B;EACAC,aAAa,EAAE,oBAAoB;EAEnC;EACAC,cAAc,EAAE,qBAAqB;EAErC;EACAC,iBAAiB,EAAE,uBAAuB;EAE1C;EACAC,QAAQ,EAAE,aAAa;EAEvB;EACAC,WAAW,EAAE,iBAAiB;EAE9B;EACAC,QAAQ,EAAE,cAAc;EAExB;EACAC,MAAM,EAAE,WAAW;EAEnB;;EAEA;EACAC,oBAAoB,EAAE,0BAA0B;EAEhD;EACAC,KAAK,EAAE,UAAU;EAEjB;EACAC,kBAAkB,EAAE,wBAAwB;EAE5C;EACAC,SAAS,EAAE,cAAc;EAEzB;EACAC,UAAU,EAAE,gBAAgB;EAE5B;;EAEA;EACAC,aAAa,EAAE,mBAAmB;EAElC;EACAC,mBAAmB,EAAE,yBAAyB;EAE9C;EACAC,WAAW,EAAE,kBAAkB;EAE/B;;EAEA;EACAC,IAAI,EAAE,SAAS;EAEf;EACAC,KAAK,EAAE,UAAU;EAEjB;EACAC,MAAM,EAAE,WAAW;EAEnB;EACAC,QAAQ,EAAE,cAAc;EAExB;EACAC,MAAM,EAAE,WAAW;EAEnB;EACAC,0BAA0B,EAAE,kCAAkC;EAE9D;;EAEA;EACAC,aAAa,EAAE,mBAAmB;EAElC;;EAEA;EACAC,OAAO,EAAE,aAAa;EAEtB;EACAC,MAAM,EAAE,YAAY;EAEpB;;EAEA;EACAC,eAAe,EAAE,qBAAqB;EAEtC;EACAC,mBAAmB,EAAE,yBAAyB;EAE9C;;EAEA;EACAC,OAAO,EAAE,aAAa;EAEtB;EACAC,eAAe,EAAE;AACnB,CAAU;;AAEV;AACA;AACA;;AAIA;AACA;AACA;AACA,OAAO,SAASC,gBAAgBA,CAAA,EAAa;EAC3C,OAAOC,MAAM,CAACC,MAAM,CAAChC,gBAAgB,CAAC;AACxC","ignoreList":[]}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ // AdShift React Native Plugin - Types
4
+ // Export all types for external use
5
+
6
+ export * from "./AdshiftConfig.js";
7
+ export * from "./AdshiftConsent.js";
8
+ export * from "./AdshiftDeepLink.js";
9
+ export * from "./AdshiftEventType.js";
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/index.ts"],"mappings":";;AAAA;AACA;;AAEA,cAAc,oBAAiB;AAC/B,cAAc,qBAAkB;AAChC,cAAc,sBAAmB;AACjC,cAAc,uBAAoB","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"type":"module"}