@tyrads.com/tyrads-sdk 2.0.1 → 3.1.0-beta.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 (229) hide show
  1. package/android/build.gradle +1 -1
  2. package/android/gradle.properties +1 -1
  3. package/android/src/main/java/com/tyradssdk/TyradsSdkModule.kt +27 -6
  4. package/ios/Tyrads/AcmoConfig.swift +3 -3
  5. package/ios/Tyrads/InitModel.swift +5 -2
  6. package/ios/Tyrads/Tyrads.swift +117 -186
  7. package/ios/Tyrads/WebViewController.swift +171 -0
  8. package/ios/Tyrads/helpers/aes_encryptor.swift +81 -0
  9. package/ios/Tyrads/helpers/device_details.swift +58 -0
  10. package/ios/TyradsSdk.mm +10 -2
  11. package/ios/TyradsSdk.swift +44 -29
  12. package/lib/commonjs/acmo/core/helpers/launcher.js +20 -0
  13. package/lib/commonjs/acmo/core/helpers/launcher.js.map +1 -0
  14. package/lib/commonjs/acmo/modules/dashboard/components/active_offers_button.js +76 -0
  15. package/lib/commonjs/acmo/modules/dashboard/components/active_offers_button.js.map +1 -0
  16. package/lib/commonjs/acmo/modules/dashboard/components/custom_card.js +7 -10
  17. package/lib/commonjs/acmo/modules/dashboard/components/custom_card.js.map +1 -1
  18. package/lib/commonjs/acmo/modules/dashboard/components/custom_scroller.js +141 -0
  19. package/lib/commonjs/acmo/modules/dashboard/components/custom_scroller.js.map +1 -0
  20. package/lib/commonjs/acmo/{core/marquee.js → modules/dashboard/components/custom_shimmer.js} +46 -34
  21. package/lib/commonjs/acmo/modules/dashboard/components/custom_shimmer.js.map +1 -0
  22. package/lib/commonjs/acmo/modules/dashboard/components/offer_card.js +264 -0
  23. package/lib/commonjs/acmo/modules/dashboard/components/offer_card.js.map +1 -0
  24. package/lib/commonjs/acmo/modules/dashboard/components/offer_list_item.js +197 -0
  25. package/lib/commonjs/acmo/modules/dashboard/components/offer_list_item.js.map +1 -0
  26. package/lib/commonjs/acmo/modules/dashboard/components/premium_empty_widget.js +83 -0
  27. package/lib/commonjs/acmo/modules/dashboard/components/premium_empty_widget.js.map +1 -0
  28. package/lib/commonjs/acmo/modules/dashboard/components/premium_header.js +12 -10
  29. package/lib/commonjs/acmo/modules/dashboard/components/premium_header.js.map +1 -1
  30. package/lib/commonjs/acmo/modules/dashboard/components/premium_loading.js +118 -0
  31. package/lib/commonjs/acmo/modules/dashboard/components/premium_loading.js.map +1 -0
  32. package/lib/commonjs/acmo/modules/dashboard/repository.js +108 -32
  33. package/lib/commonjs/acmo/modules/dashboard/repository.js.map +1 -1
  34. package/lib/commonjs/acmo/modules/dashboard/top_offers.js +70 -63
  35. package/lib/commonjs/acmo/modules/dashboard/top_offers.js.map +1 -1
  36. package/lib/commonjs/assets/images/angle_up.png +0 -0
  37. package/lib/commonjs/assets/images/diamond.png +0 -0
  38. package/lib/commonjs/assets/images/info.png +0 -0
  39. package/lib/commonjs/assets/images/info_icon.png +0 -0
  40. package/lib/commonjs/assets/images/premium-emptybg.jpeg +0 -0
  41. package/lib/commonjs/assets/images/rank_1.png +0 -0
  42. package/lib/commonjs/assets/images/rank_2.png +0 -0
  43. package/lib/commonjs/assets/images/rank_3.png +0 -0
  44. package/lib/commonjs/assets/images/rank_4.png +0 -0
  45. package/lib/commonjs/assets/images/rank_5.png +0 -0
  46. package/lib/commonjs/index.js +15 -16
  47. package/lib/commonjs/index.js.map +1 -1
  48. package/lib/module/acmo/core/helpers/launcher.js +15 -0
  49. package/lib/module/acmo/core/helpers/launcher.js.map +1 -0
  50. package/lib/module/acmo/modules/dashboard/components/active_offers_button.js +70 -0
  51. package/lib/module/acmo/modules/dashboard/components/active_offers_button.js.map +1 -0
  52. package/lib/module/acmo/modules/dashboard/components/custom_card.js +7 -10
  53. package/lib/module/acmo/modules/dashboard/components/custom_card.js.map +1 -1
  54. package/lib/module/acmo/modules/dashboard/components/custom_scroller.js +135 -0
  55. package/lib/module/acmo/modules/dashboard/components/custom_scroller.js.map +1 -0
  56. package/lib/module/acmo/modules/dashboard/components/custom_shimmer.js +66 -0
  57. package/lib/module/acmo/modules/dashboard/components/custom_shimmer.js.map +1 -0
  58. package/lib/module/acmo/modules/dashboard/components/offer_card.js +257 -0
  59. package/lib/module/acmo/modules/dashboard/components/offer_card.js.map +1 -0
  60. package/lib/module/acmo/modules/dashboard/components/offer_list_item.js +191 -0
  61. package/lib/module/acmo/modules/dashboard/components/offer_list_item.js.map +1 -0
  62. package/lib/module/acmo/modules/dashboard/components/premium_empty_widget.js +78 -0
  63. package/lib/module/acmo/modules/dashboard/components/premium_empty_widget.js.map +1 -0
  64. package/lib/module/acmo/modules/dashboard/components/premium_header.js +12 -10
  65. package/lib/module/acmo/modules/dashboard/components/premium_header.js.map +1 -1
  66. package/lib/module/acmo/modules/dashboard/components/premium_loading.js +113 -0
  67. package/lib/module/acmo/modules/dashboard/components/premium_loading.js.map +1 -0
  68. package/lib/module/acmo/modules/dashboard/repository.js +105 -30
  69. package/lib/module/acmo/modules/dashboard/repository.js.map +1 -1
  70. package/lib/module/acmo/modules/dashboard/top_offers.js +71 -64
  71. package/lib/module/acmo/modules/dashboard/top_offers.js.map +1 -1
  72. package/lib/module/assets/images/angle_up.png +0 -0
  73. package/lib/module/assets/images/diamond.png +0 -0
  74. package/lib/module/assets/images/info.png +0 -0
  75. package/lib/module/assets/images/info_icon.png +0 -0
  76. package/lib/module/assets/images/premium-emptybg.jpeg +0 -0
  77. package/lib/module/assets/images/rank_1.png +0 -0
  78. package/lib/module/assets/images/rank_2.png +0 -0
  79. package/lib/module/assets/images/rank_3.png +0 -0
  80. package/lib/module/assets/images/rank_4.png +0 -0
  81. package/lib/module/assets/images/rank_5.png +0 -0
  82. package/lib/module/index.js +15 -16
  83. package/lib/module/index.js.map +1 -1
  84. package/lib/typescript/commonjs/src/acmo/core/helpers/launcher.d.ts +3 -0
  85. package/lib/typescript/commonjs/src/acmo/core/helpers/launcher.d.ts.map +1 -0
  86. package/lib/typescript/commonjs/src/acmo/core/storage/storage.d.ts.map +1 -1
  87. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/active_offers_button.d.ts +9 -0
  88. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/active_offers_button.d.ts.map +1 -0
  89. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/custom_card.d.ts.map +1 -1
  90. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/custom_scroller.d.ts +17 -0
  91. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/custom_scroller.d.ts.map +1 -0
  92. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/custom_shimmer.d.ts +11 -0
  93. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/custom_shimmer.d.ts.map +1 -0
  94. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_card.d.ts +12 -0
  95. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_card.d.ts.map +1 -0
  96. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_list_item.d.ts +15 -0
  97. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_list_item.d.ts.map +1 -0
  98. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_empty_widget.d.ts +7 -0
  99. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_empty_widget.d.ts.map +1 -0
  100. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_loading.d.ts +9 -0
  101. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_loading.d.ts.map +1 -0
  102. package/lib/typescript/commonjs/src/acmo/modules/dashboard/repository.d.ts +2 -1
  103. package/lib/typescript/commonjs/src/acmo/modules/dashboard/repository.d.ts.map +1 -1
  104. package/lib/typescript/commonjs/src/acmo/modules/dashboard/top_offers.d.ts +8 -7
  105. package/lib/typescript/commonjs/src/acmo/modules/dashboard/top_offers.d.ts.map +1 -1
  106. package/lib/typescript/commonjs/src/index.d.ts +6 -8
  107. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  108. package/lib/typescript/module/src/acmo/core/helpers/launcher.d.ts +3 -0
  109. package/lib/typescript/module/src/acmo/core/helpers/launcher.d.ts.map +1 -0
  110. package/lib/typescript/module/src/acmo/core/storage/storage.d.ts.map +1 -1
  111. package/lib/typescript/module/src/acmo/modules/dashboard/components/active_offers_button.d.ts +9 -0
  112. package/lib/typescript/module/src/acmo/modules/dashboard/components/active_offers_button.d.ts.map +1 -0
  113. package/lib/typescript/module/src/acmo/modules/dashboard/components/custom_card.d.ts.map +1 -1
  114. package/lib/typescript/module/src/acmo/modules/dashboard/components/custom_scroller.d.ts +17 -0
  115. package/lib/typescript/module/src/acmo/modules/dashboard/components/custom_scroller.d.ts.map +1 -0
  116. package/lib/typescript/module/src/acmo/modules/dashboard/components/custom_shimmer.d.ts +11 -0
  117. package/lib/typescript/module/src/acmo/modules/dashboard/components/custom_shimmer.d.ts.map +1 -0
  118. package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_card.d.ts +12 -0
  119. package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_card.d.ts.map +1 -0
  120. package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_list_item.d.ts +15 -0
  121. package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_list_item.d.ts.map +1 -0
  122. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_empty_widget.d.ts +7 -0
  123. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_empty_widget.d.ts.map +1 -0
  124. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_loading.d.ts +9 -0
  125. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_loading.d.ts.map +1 -0
  126. package/lib/typescript/module/src/acmo/modules/dashboard/repository.d.ts +2 -1
  127. package/lib/typescript/module/src/acmo/modules/dashboard/repository.d.ts.map +1 -1
  128. package/lib/typescript/module/src/acmo/modules/dashboard/top_offers.d.ts +8 -7
  129. package/lib/typescript/module/src/acmo/modules/dashboard/top_offers.d.ts.map +1 -1
  130. package/lib/typescript/module/src/index.d.ts +6 -8
  131. package/lib/typescript/module/src/index.d.ts.map +1 -1
  132. package/package.json +3 -2
  133. package/readme.md +8 -8
  134. package/src/acmo/core/helpers/launcher.ts +14 -0
  135. package/src/acmo/core/types/types.d.ts +11 -13
  136. package/src/acmo/modules/dashboard/components/active_offers_button.tsx +61 -0
  137. package/src/acmo/modules/dashboard/components/custom_card.tsx +5 -8
  138. package/src/acmo/modules/dashboard/components/custom_scroller.tsx +164 -0
  139. package/src/acmo/modules/dashboard/components/custom_shimmer.tsx +75 -0
  140. package/src/acmo/modules/dashboard/components/offer_card.tsx +248 -0
  141. package/src/acmo/modules/dashboard/components/offer_list_item.tsx +225 -0
  142. package/src/acmo/modules/dashboard/components/premium_empty_widget.tsx +76 -0
  143. package/src/acmo/modules/dashboard/components/premium_header.tsx +8 -8
  144. package/src/acmo/modules/dashboard/components/premium_loading.tsx +78 -0
  145. package/src/acmo/modules/dashboard/repository.ts +121 -46
  146. package/src/acmo/modules/dashboard/top_offers.tsx +89 -52
  147. package/src/assets/images/angle_up.png +0 -0
  148. package/src/assets/images/diamond.png +0 -0
  149. package/src/assets/images/info.png +0 -0
  150. package/src/assets/images/info_icon.png +0 -0
  151. package/src/assets/images/premium-emptybg.jpeg +0 -0
  152. package/src/assets/images/rank_1.png +0 -0
  153. package/src/assets/images/rank_2.png +0 -0
  154. package/src/assets/images/rank_3.png +0 -0
  155. package/src/assets/images/rank_4.png +0 -0
  156. package/src/assets/images/rank_5.png +0 -0
  157. package/src/index.tsx +19 -23
  158. package/android/src/main/java/com/tyradssdk/TyradsSdkComposeViewManager.kt +0 -112
  159. package/lib/commonjs/acmo/core/marquee.js.map +0 -1
  160. package/lib/commonjs/acmo/modules/dashboard/components/auto_scroller.js +0 -87
  161. package/lib/commonjs/acmo/modules/dashboard/components/auto_scroller.js.map +0 -1
  162. package/lib/commonjs/acmo/modules/dashboard/components/my_games_button.js +0 -48
  163. package/lib/commonjs/acmo/modules/dashboard/components/my_games_button.js.map +0 -1
  164. package/lib/commonjs/acmo/modules/dashboard/components/offer_info_section.js +0 -158
  165. package/lib/commonjs/acmo/modules/dashboard/components/offer_info_section.js.map +0 -1
  166. package/lib/commonjs/acmo/modules/dashboard/components/premium_option_1.js +0 -181
  167. package/lib/commonjs/acmo/modules/dashboard/components/premium_option_1.js.map +0 -1
  168. package/lib/commonjs/acmo/modules/dashboard/components/premium_option_2.js +0 -102
  169. package/lib/commonjs/acmo/modules/dashboard/components/premium_option_2.js.map +0 -1
  170. package/lib/commonjs/acmo/modules/dashboard/components/premium_option_3.js +0 -41
  171. package/lib/commonjs/acmo/modules/dashboard/components/premium_option_3.js.map +0 -1
  172. package/lib/commonjs/acmo/modules/dashboard/components/premium_option_4.js +0 -214
  173. package/lib/commonjs/acmo/modules/dashboard/components/premium_option_4.js.map +0 -1
  174. package/lib/module/acmo/core/marquee.js +0 -54
  175. package/lib/module/acmo/core/marquee.js.map +0 -1
  176. package/lib/module/acmo/modules/dashboard/components/auto_scroller.js +0 -81
  177. package/lib/module/acmo/modules/dashboard/components/auto_scroller.js.map +0 -1
  178. package/lib/module/acmo/modules/dashboard/components/my_games_button.js +0 -43
  179. package/lib/module/acmo/modules/dashboard/components/my_games_button.js.map +0 -1
  180. package/lib/module/acmo/modules/dashboard/components/offer_info_section.js +0 -153
  181. package/lib/module/acmo/modules/dashboard/components/offer_info_section.js.map +0 -1
  182. package/lib/module/acmo/modules/dashboard/components/premium_option_1.js +0 -176
  183. package/lib/module/acmo/modules/dashboard/components/premium_option_1.js.map +0 -1
  184. package/lib/module/acmo/modules/dashboard/components/premium_option_2.js +0 -97
  185. package/lib/module/acmo/modules/dashboard/components/premium_option_2.js.map +0 -1
  186. package/lib/module/acmo/modules/dashboard/components/premium_option_3.js +0 -36
  187. package/lib/module/acmo/modules/dashboard/components/premium_option_3.js.map +0 -1
  188. package/lib/module/acmo/modules/dashboard/components/premium_option_4.js +0 -209
  189. package/lib/module/acmo/modules/dashboard/components/premium_option_4.js.map +0 -1
  190. package/lib/typescript/commonjs/src/acmo/core/marquee.d.ts +0 -11
  191. package/lib/typescript/commonjs/src/acmo/core/marquee.d.ts.map +0 -1
  192. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/auto_scroller.d.ts +0 -10
  193. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/auto_scroller.d.ts.map +0 -1
  194. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/my_games_button.d.ts +0 -8
  195. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/my_games_button.d.ts.map +0 -1
  196. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_info_section.d.ts +0 -11
  197. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_info_section.d.ts.map +0 -1
  198. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_1.d.ts +0 -9
  199. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_1.d.ts.map +0 -1
  200. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_2.d.ts +0 -9
  201. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_2.d.ts.map +0 -1
  202. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_3.d.ts +0 -9
  203. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_3.d.ts.map +0 -1
  204. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_4.d.ts +0 -9
  205. package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_4.d.ts.map +0 -1
  206. package/lib/typescript/module/src/acmo/core/marquee.d.ts +0 -11
  207. package/lib/typescript/module/src/acmo/core/marquee.d.ts.map +0 -1
  208. package/lib/typescript/module/src/acmo/modules/dashboard/components/auto_scroller.d.ts +0 -10
  209. package/lib/typescript/module/src/acmo/modules/dashboard/components/auto_scroller.d.ts.map +0 -1
  210. package/lib/typescript/module/src/acmo/modules/dashboard/components/my_games_button.d.ts +0 -8
  211. package/lib/typescript/module/src/acmo/modules/dashboard/components/my_games_button.d.ts.map +0 -1
  212. package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_info_section.d.ts +0 -11
  213. package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_info_section.d.ts.map +0 -1
  214. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_1.d.ts +0 -9
  215. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_1.d.ts.map +0 -1
  216. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_2.d.ts +0 -9
  217. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_2.d.ts.map +0 -1
  218. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_3.d.ts +0 -9
  219. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_3.d.ts.map +0 -1
  220. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_4.d.ts +0 -9
  221. package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_4.d.ts.map +0 -1
  222. package/src/acmo/core/marquee.tsx +0 -62
  223. package/src/acmo/modules/dashboard/components/auto_scroller.tsx +0 -85
  224. package/src/acmo/modules/dashboard/components/my_games_button.tsx +0 -40
  225. package/src/acmo/modules/dashboard/components/offer_info_section.tsx +0 -139
  226. package/src/acmo/modules/dashboard/components/premium_option_1.tsx +0 -156
  227. package/src/acmo/modules/dashboard/components/premium_option_2.tsx +0 -100
  228. package/src/acmo/modules/dashboard/components/premium_option_3.tsx +0 -42
  229. package/src/acmo/modules/dashboard/components/premium_option_4.tsx +0 -185
@@ -18,13 +18,13 @@ const TyradsSdk = NativeModules.TyradsSdk ? NativeModules.TyradsSdk : new Proxy(
18
18
  }
19
19
  });
20
20
  const Tyrads = {
21
- init: (apiKey, apiSecret) => {
22
- return TyradsSdk.init(apiKey, apiSecret);
21
+ init: async (apiKey, apiSecret, encKey) => {
22
+ const data = await TyradsSdk.init(apiKey, apiSecret, encKey);
23
+ return data;
23
24
  },
24
25
  loginUser: async userId => {
25
26
  try {
26
27
  const data = await TyradsSdk.loginUser(userId);
27
- console.log("data from login: ", data);
28
28
  if (typeof data === "object") {
29
29
  await saveData('apiHeaders', JSON.stringify(data));
30
30
  await saveData('language', data.languageCode);
@@ -34,26 +34,28 @@ const Tyrads = {
34
34
  }
35
35
  return data;
36
36
  } catch (err) {
37
- console.log(`error from login: ${err}`);
38
37
  return null;
39
38
  }
40
39
  },
41
- showOffers: ({
40
+ showOffers: async ({
42
41
  launchMode = 3,
43
42
  route,
44
- campaignID = 0
43
+ campaignID
45
44
  } = {}) => {
46
45
  if (Platform.OS === 'ios') {
47
- return TyradsSdk.showOffers(launchMode, route, campaignID);
46
+ if (campaignID == null) {
47
+ return await TyradsSdk.showOffers(launchMode, route);
48
+ }
49
+ return await TyradsSdk.showOfferDetails(launchMode, route, campaignID);
48
50
  } else {
49
- return TyradsSdk.showOffers(route, campaignID);
51
+ if (campaignID == null) {
52
+ return await TyradsSdk.showOffers(route);
53
+ }
54
+ return await TyradsSdk.showOfferDetails(route, campaignID);
50
55
  }
51
56
  },
52
57
  topPremiumOffers: ({
53
- showMore = true,
54
- showMyOffers = true,
55
- showMyOffersEmptyView = false,
56
- viewStyle = 1,
58
+ widgetStyle,
57
59
  launchMode = 2
58
60
  } = {}) => {
59
61
  const handleNavigation = (route, campaignID) => {
@@ -72,10 +74,7 @@ const Tyrads = {
72
74
  alignItems: 'center'
73
75
  },
74
76
  children: /*#__PURE__*/_jsx(TopOffers, {
75
- showMore: showMore,
76
- showMyOffers: showMyOffers,
77
- showMyOffersEmptyView: showMyOffersEmptyView,
78
- style: viewStyle,
77
+ widgetStyle: widgetStyle,
79
78
  onNavigate: handleNavigation
80
79
  })
81
80
  })
@@ -1 +1 @@
1
- {"version":3,"names":["NativeModules","Platform","View","TopOffers","saveData","I18nextProvider","i18n","jsx","_jsx","LINKING_ERROR","select","ios","default","TyradsSdk","Proxy","get","Error","Tyrads","init","apiKey","apiSecret","loginUser","userId","data","console","log","JSON","stringify","languageCode","parse","err","showOffers","launchMode","route","campaignID","OS","topPremiumOffers","showMore","showMyOffers","showMyOffersEmptyView","viewStyle","handleNavigation","children","style","flex","justifyContent","alignItems","onNavigate"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"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","ignoreList":[]}
1
+ {"version":3,"names":["NativeModules","Platform","View","TopOffers","saveData","I18nextProvider","i18n","jsx","_jsx","LINKING_ERROR","select","ios","default","TyradsSdk","Proxy","get","Error","Tyrads","init","apiKey","apiSecret","encKey","data","loginUser","userId","JSON","stringify","languageCode","parse","err","showOffers","launchMode","route","campaignID","OS","showOfferDetails","topPremiumOffers","widgetStyle","handleNavigation","children","style","flex","justifyContent","alignItems","onNavigate"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"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","ignoreList":[]}
@@ -0,0 +1,3 @@
1
+ export declare function acmoLaunchURLForce(url: string): Promise<void>;
2
+ export declare function acmoLaunchURL(url: string): Promise<void>;
3
+ //# sourceMappingURL=launcher.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"launcher.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/core/helpers/launcher.ts"],"names":[],"mappings":"AAEA,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,MAAM,iBAEnD;AAED,wBAAsB,aAAa,CAAC,GAAG,EAAE,MAAM,iBAO9C"}
@@ -1 +1 @@
1
- {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/core/storage/storage.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,GAAU,KAAK,MAAM,EAAE,QAAQ,GAAG,KAAG,OAAO,CAAC,IAAI,CAWrE,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,CAAC,EAAE,KAAK,MAAM,KAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAY9D,CAAC"}
1
+ {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/core/storage/storage.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,QAAe,MAAM,UAAU,GAAG,KAAG,OAAO,CAAC,IAAI,CAWrE,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,CAAC,OAAO,MAAM,KAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAY9D,CAAC"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface ActiveOffersBtnProps {
3
+ premiumColor?: string;
4
+ activeCount: number;
5
+ onPress: (route: string) => void;
6
+ }
7
+ declare const ActiveOffersButton: React.FC<ActiveOffersBtnProps>;
8
+ export default ActiveOffersButton;
9
+ //# sourceMappingURL=active_offers_button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"active_offers_button.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/active_offers_button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,oBAAoB;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC;AAED,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAgBtD,CAAC;AAkCF,eAAe,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"custom_card.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/custom_card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEhE,UAAU,eAAe;IACvB,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAEzC,CAAC;AAoBF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"custom_card.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/custom_card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEhE,UAAU,eAAe;IACvB,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAEzC,CAAC;AAiBF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { type ViewStyle, type StyleProp } from 'react-native';
3
+ interface PagerProps {
4
+ totalPages: number;
5
+ delayInMillis?: number;
6
+ premiumColor?: string;
7
+ content: (index: number) => React.ReactNode;
8
+ viewportFraction?: number;
9
+ scaleFactor?: number;
10
+ spacing?: number;
11
+ indicatorStyle?: StyleProp<ViewStyle>;
12
+ activeIndicatorColor?: string;
13
+ inactiveIndicatorColor?: string;
14
+ }
15
+ declare const AcmoScrollPager: React.FC<PagerProps>;
16
+ export default AcmoScrollPager;
17
+ //# sourceMappingURL=custom_scroller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom_scroller.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/custom_scroller.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAC3D,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,SAAS,EAEf,MAAM,cAAc,CAAC;AAEtB,UAAU,UAAU;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;IAC5C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CA2HzC,CAAC;AAiBF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { type DimensionValue, type ViewStyle, type StyleProp } from 'react-native';
3
+ interface ShimmerProps {
4
+ width?: DimensionValue;
5
+ shimmerHeight?: number;
6
+ style?: StyleProp<ViewStyle>;
7
+ duration?: number;
8
+ }
9
+ declare const Shimmer: React.FC<ShimmerProps>;
10
+ export default Shimmer;
11
+ //# sourceMappingURL=custom_shimmer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom_shimmer.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/custom_shimmer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,EAA0C,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAE3H,UAAU,YAAY;IACpB,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAID,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAwCnC,CAAC;AAsBF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ interface Props {
3
+ item: Campaign;
4
+ onButtonClick: () => Promise<void>;
5
+ currencySaleModel?: CurrencySales;
6
+ premiumColor?: string;
7
+ isLoading: boolean;
8
+ onTap?: () => Promise<void>;
9
+ }
10
+ declare const AcmoOfferCard: React.FC<Props>;
11
+ export default AcmoOfferCard;
12
+ //# sourceMappingURL=offer_card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"offer_card.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/offer_card.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAWxC,UAAU,KAAK;IACb,IAAI,EAAE,QAAQ,CAAC;IACf,aAAa,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACnC,iBAAiB,CAAC,EAAE,aAAa,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7B;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA8FlC,CAAC;AAoIF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ type Props = {
3
+ offer: Campaign;
4
+ currencySales?: CurrencySales;
5
+ onButtonTap: () => Promise<void>;
6
+ onPress: () => Promise<void>;
7
+ index: number;
8
+ colorPremium?: string;
9
+ colorPremiumFg?: string;
10
+ loadingIndex: number | null;
11
+ setLoadingIndex: (index: number | null) => void;
12
+ };
13
+ export declare const AcmoOfferListItem: React.FC<Props>;
14
+ export {};
15
+ //# sourceMappingURL=offer_list_item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"offer_list_item.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/offer_list_item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,QAAQ,CAAC;IAChB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,WAAW,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACjC,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CACjD,CAAC;AAUF,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA2F7C,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ declare const PremiumEmptyView: React.FC<{
3
+ onContinue?: () => void;
4
+ colorPremium?: string;
5
+ }>;
6
+ export default PremiumEmptyView;
7
+ //# sourceMappingURL=premium_empty_widget.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"premium_empty_widget.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/premium_empty_widget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAC,CAmCjF,CAAC;AAqCF,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { PremiumWidgetStyles } from '../top_offers';
3
+ interface PremiumWidgetsLoadingProps {
4
+ widgetStyle: PremiumWidgetStyles;
5
+ itemHeight?: number;
6
+ }
7
+ declare const PremiumWidgetsLoading: React.FC<PremiumWidgetsLoadingProps>;
8
+ export default PremiumWidgetsLoading;
9
+ //# sourceMappingURL=premium_loading.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"premium_loading.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/premium_loading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAGpD,UAAU,0BAA0B;IAClC,WAAW,EAAE,mBAAmB,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,QAAA,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CA0C/D,CAAC;AAwBF,eAAe,qBAAqB,CAAC"}
@@ -1,2 +1,3 @@
1
- export declare const fetchCampaignsData: (setPremiumColor: (color: string) => void, setCampaigns: (campaigns: TransformedCampaign[]) => void, setError: (error: string) => void, setIsLoading: (loading: boolean) => void) => Promise<void>;
1
+ export declare const fetchPremiumOfferDetails: (setPremiumColor: (color: string) => void, setCampaigns: (campaigns: Campaign[]) => void, setCurrencySale: (currencySale: CurrencySales) => void, setActiveCount: (activeCount: number) => void, setError: (error: string) => void, setIsLoading: (loading: boolean) => void) => Promise<void>;
2
+ export declare const openOffer: (campaign: Campaign) => Promise<void>;
2
3
  //# sourceMappingURL=repository.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/modules/dashboard/repository.ts"],"names":[],"mappings":"AAgCA,eAAO,MAAM,kBAAkB,GAE7B,iBAAiB,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,EACxC,cAAc,CAAC,SAAS,EAAE,mBAAmB,EAAE,KAAK,IAAI,EACxD,UAAU,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,EACjC,cAAc,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,KACvC,OAAO,CAAC,IAAI,CAwDd,CAAC"}
1
+ {"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/modules/dashboard/repository.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,wBAAwB,oBAClB,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,gBAC1B,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,IAAI,mBAC5B,CAAC,YAAY,EAAE,aAAa,KAAK,IAAI,kBACtC,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,YACnC,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,gBACnB,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,KACvC,OAAO,CAAC,IAAI,CA+Dd,CAAC;AAkCF,eAAO,MAAM,SAAS,aAAoB,QAAQ,kBAiDjD,CAAA"}
@@ -1,11 +1,12 @@
1
1
  import React from 'react';
2
- interface TopOffersProps {
3
- showMore?: boolean;
4
- showMyOffers?: boolean;
5
- showMyOffersEmptyView?: boolean;
6
- style?: number;
2
+ export declare const enum PremiumWidgetStyles {
3
+ list = 0,
4
+ sliderCards = 1
5
+ }
6
+ interface PremiumWidgetProps {
7
+ widgetStyle?: PremiumWidgetStyles;
7
8
  onNavigate: (route?: string, campaignID?: number) => void;
8
9
  }
9
- declare const TopOffers: React.FC<TopOffersProps>;
10
- export default TopOffers;
10
+ declare const PremiumWidgets: React.FC<PremiumWidgetProps>;
11
+ export default PremiumWidgets;
11
12
  //# sourceMappingURL=top_offers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"top_offers.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/modules/dashboard/top_offers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAgBnD,UAAU,cAAc;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3D;AAED,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA8FvC,CAAC;AAyBF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"top_offers.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/modules/dashboard/top_offers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAgBnD,0BAAkB,mBAAmB;IACnC,IAAI,IAAA;IACJ,WAAW,IAAA;CACZ;AAED,UAAU,kBAAkB;IAC1B,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAClC,UAAU,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3D;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAwHhD,CAAC;AAkCF,eAAe,cAAc,CAAC"}
@@ -1,16 +1,14 @@
1
+ import { PremiumWidgetStyles } from './acmo/modules/dashboard/top_offers';
1
2
  declare const Tyrads: {
2
- init: (apiKey: string, apiSecret: string) => any;
3
+ init: (apiKey: string, apiSecret: string, encKey?: string) => Promise<any>;
3
4
  loginUser: (userId: string) => Promise<any>;
4
5
  showOffers: ({ launchMode, route, campaignID, }?: {
5
6
  launchMode?: number;
6
7
  route?: string;
7
- campaignID?: number;
8
- }) => any;
9
- topPremiumOffers: ({ showMore, showMyOffers, showMyOffersEmptyView, viewStyle, launchMode, }?: {
10
- showMore?: boolean;
11
- showMyOffers?: boolean;
12
- showMyOffersEmptyView?: boolean;
13
- viewStyle?: number;
8
+ campaignID?: number | null;
9
+ }) => Promise<any>;
10
+ topPremiumOffers: ({ widgetStyle, launchMode, }?: {
11
+ widgetStyle?: PremiumWidgetStyles;
14
12
  launchMode?: number;
15
13
  }) => import("react/jsx-runtime").JSX.Element;
16
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AA2BA,QAAA,MAAM,MAAM;mBACK,MAAM,aAAa,MAAM;wBAGd,MAAM;sDAwB7B;QAAE,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE;mGAa5D;QACD,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB,qBAAqB,CAAC,EAAE,OAAO,CAAC;QAChC,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;CAkBF,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAEA,OAAkB,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAyBrF,QAAA,MAAM,MAAM;mBACW,MAAM,aAAa,MAAM,WAAW,MAAM;wBAIrC,MAAM;sDAsB7B;QAAE,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE;sDAgBnE;QACD,WAAW,CAAC,EAAE,mBAAmB,CAAC;QAClC,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;CAeF,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare function acmoLaunchURLForce(url: string): Promise<void>;
2
+ export declare function acmoLaunchURL(url: string): Promise<void>;
3
+ //# sourceMappingURL=launcher.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"launcher.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/core/helpers/launcher.ts"],"names":[],"mappings":"AAEA,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,MAAM,iBAEnD;AAED,wBAAsB,aAAa,CAAC,GAAG,EAAE,MAAM,iBAO9C"}
@@ -1 +1 @@
1
- {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/core/storage/storage.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,GAAU,KAAK,MAAM,EAAE,QAAQ,GAAG,KAAG,OAAO,CAAC,IAAI,CAWrE,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,CAAC,EAAE,KAAK,MAAM,KAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAY9D,CAAC"}
1
+ {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/core/storage/storage.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,QAAe,MAAM,UAAU,GAAG,KAAG,OAAO,CAAC,IAAI,CAWrE,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,CAAC,OAAO,MAAM,KAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAY9D,CAAC"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface ActiveOffersBtnProps {
3
+ premiumColor?: string;
4
+ activeCount: number;
5
+ onPress: (route: string) => void;
6
+ }
7
+ declare const ActiveOffersButton: React.FC<ActiveOffersBtnProps>;
8
+ export default ActiveOffersButton;
9
+ //# sourceMappingURL=active_offers_button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"active_offers_button.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/active_offers_button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,oBAAoB;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC;AAED,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAgBtD,CAAC;AAkCF,eAAe,kBAAkB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"custom_card.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/custom_card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEhE,UAAU,eAAe;IACvB,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAEzC,CAAC;AAoBF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"custom_card.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/custom_card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAEhE,UAAU,eAAe;IACvB,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAEzC,CAAC;AAiBF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { type ViewStyle, type StyleProp } from 'react-native';
3
+ interface PagerProps {
4
+ totalPages: number;
5
+ delayInMillis?: number;
6
+ premiumColor?: string;
7
+ content: (index: number) => React.ReactNode;
8
+ viewportFraction?: number;
9
+ scaleFactor?: number;
10
+ spacing?: number;
11
+ indicatorStyle?: StyleProp<ViewStyle>;
12
+ activeIndicatorColor?: string;
13
+ inactiveIndicatorColor?: string;
14
+ }
15
+ declare const AcmoScrollPager: React.FC<PagerProps>;
16
+ export default AcmoScrollPager;
17
+ //# sourceMappingURL=custom_scroller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom_scroller.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/custom_scroller.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAC3D,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,SAAS,EAEf,MAAM,cAAc,CAAC;AAEtB,UAAU,UAAU;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;IAC5C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACtC,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CA2HzC,CAAC;AAiBF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { type DimensionValue, type ViewStyle, type StyleProp } from 'react-native';
3
+ interface ShimmerProps {
4
+ width?: DimensionValue;
5
+ shimmerHeight?: number;
6
+ style?: StyleProp<ViewStyle>;
7
+ duration?: number;
8
+ }
9
+ declare const Shimmer: React.FC<ShimmerProps>;
10
+ export default Shimmer;
11
+ //# sourceMappingURL=custom_shimmer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom_shimmer.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/custom_shimmer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,EAA0C,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAE3H,UAAU,YAAY;IACpB,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAID,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAwCnC,CAAC;AAsBF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ interface Props {
3
+ item: Campaign;
4
+ onButtonClick: () => Promise<void>;
5
+ currencySaleModel?: CurrencySales;
6
+ premiumColor?: string;
7
+ isLoading: boolean;
8
+ onTap?: () => Promise<void>;
9
+ }
10
+ declare const AcmoOfferCard: React.FC<Props>;
11
+ export default AcmoOfferCard;
12
+ //# sourceMappingURL=offer_card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"offer_card.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/offer_card.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAWxC,UAAU,KAAK;IACb,IAAI,EAAE,QAAQ,CAAC;IACf,aAAa,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACnC,iBAAiB,CAAC,EAAE,aAAa,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7B;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA8FlC,CAAC;AAoIF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ type Props = {
3
+ offer: Campaign;
4
+ currencySales?: CurrencySales;
5
+ onButtonTap: () => Promise<void>;
6
+ onPress: () => Promise<void>;
7
+ index: number;
8
+ colorPremium?: string;
9
+ colorPremiumFg?: string;
10
+ loadingIndex: number | null;
11
+ setLoadingIndex: (index: number | null) => void;
12
+ };
13
+ export declare const AcmoOfferListItem: React.FC<Props>;
14
+ export {};
15
+ //# sourceMappingURL=offer_list_item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"offer_list_item.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/offer_list_item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,QAAQ,CAAC;IAChB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,WAAW,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACjC,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;CACjD,CAAC;AAUF,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA2F7C,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ declare const PremiumEmptyView: React.FC<{
3
+ onContinue?: () => void;
4
+ colorPremium?: string;
5
+ }>;
6
+ export default PremiumEmptyView;
7
+ //# sourceMappingURL=premium_empty_widget.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"premium_empty_widget.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/premium_empty_widget.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CAAC,CAmCjF,CAAC;AAqCF,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { PremiumWidgetStyles } from '../top_offers';
3
+ interface PremiumWidgetsLoadingProps {
4
+ widgetStyle: PremiumWidgetStyles;
5
+ itemHeight?: number;
6
+ }
7
+ declare const PremiumWidgetsLoading: React.FC<PremiumWidgetsLoadingProps>;
8
+ export default PremiumWidgetsLoading;
9
+ //# sourceMappingURL=premium_loading.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"premium_loading.d.ts","sourceRoot":"","sources":["../../../../../../../../src/acmo/modules/dashboard/components/premium_loading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAGpD,UAAU,0BAA0B;IAClC,WAAW,EAAE,mBAAmB,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,QAAA,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CA0C/D,CAAC;AAwBF,eAAe,qBAAqB,CAAC"}
@@ -1,2 +1,3 @@
1
- export declare const fetchCampaignsData: (setPremiumColor: (color: string) => void, setCampaigns: (campaigns: TransformedCampaign[]) => void, setError: (error: string) => void, setIsLoading: (loading: boolean) => void) => Promise<void>;
1
+ export declare const fetchPremiumOfferDetails: (setPremiumColor: (color: string) => void, setCampaigns: (campaigns: Campaign[]) => void, setCurrencySale: (currencySale: CurrencySales) => void, setActiveCount: (activeCount: number) => void, setError: (error: string) => void, setIsLoading: (loading: boolean) => void) => Promise<void>;
2
+ export declare const openOffer: (campaign: Campaign) => Promise<void>;
2
3
  //# sourceMappingURL=repository.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/modules/dashboard/repository.ts"],"names":[],"mappings":"AAgCA,eAAO,MAAM,kBAAkB,GAE7B,iBAAiB,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,EACxC,cAAc,CAAC,SAAS,EAAE,mBAAmB,EAAE,KAAK,IAAI,EACxD,UAAU,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,EACjC,cAAc,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,KACvC,OAAO,CAAC,IAAI,CAwDd,CAAC"}
1
+ {"version":3,"file":"repository.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/modules/dashboard/repository.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,wBAAwB,oBAClB,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,gBAC1B,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,IAAI,mBAC5B,CAAC,YAAY,EAAE,aAAa,KAAK,IAAI,kBACtC,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,YACnC,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,gBACnB,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,KACvC,OAAO,CAAC,IAAI,CA+Dd,CAAC;AAkCF,eAAO,MAAM,SAAS,aAAoB,QAAQ,kBAiDjD,CAAA"}
@@ -1,11 +1,12 @@
1
1
  import React from 'react';
2
- interface TopOffersProps {
3
- showMore?: boolean;
4
- showMyOffers?: boolean;
5
- showMyOffersEmptyView?: boolean;
6
- style?: number;
2
+ export declare const enum PremiumWidgetStyles {
3
+ list = 0,
4
+ sliderCards = 1
5
+ }
6
+ interface PremiumWidgetProps {
7
+ widgetStyle?: PremiumWidgetStyles;
7
8
  onNavigate: (route?: string, campaignID?: number) => void;
8
9
  }
9
- declare const TopOffers: React.FC<TopOffersProps>;
10
- export default TopOffers;
10
+ declare const PremiumWidgets: React.FC<PremiumWidgetProps>;
11
+ export default PremiumWidgets;
11
12
  //# sourceMappingURL=top_offers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"top_offers.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/modules/dashboard/top_offers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAgBnD,UAAU,cAAc;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3D;AAED,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA8FvC,CAAC;AAyBF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"top_offers.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/modules/dashboard/top_offers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAgBnD,0BAAkB,mBAAmB;IACnC,IAAI,IAAA;IACJ,WAAW,IAAA;CACZ;AAED,UAAU,kBAAkB;IAC1B,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAClC,UAAU,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3D;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAwHhD,CAAC;AAkCF,eAAe,cAAc,CAAC"}
@@ -1,16 +1,14 @@
1
+ import { PremiumWidgetStyles } from './acmo/modules/dashboard/top_offers';
1
2
  declare const Tyrads: {
2
- init: (apiKey: string, apiSecret: string) => any;
3
+ init: (apiKey: string, apiSecret: string, encKey?: string) => Promise<any>;
3
4
  loginUser: (userId: string) => Promise<any>;
4
5
  showOffers: ({ launchMode, route, campaignID, }?: {
5
6
  launchMode?: number;
6
7
  route?: string;
7
- campaignID?: number;
8
- }) => any;
9
- topPremiumOffers: ({ showMore, showMyOffers, showMyOffersEmptyView, viewStyle, launchMode, }?: {
10
- showMore?: boolean;
11
- showMyOffers?: boolean;
12
- showMyOffersEmptyView?: boolean;
13
- viewStyle?: number;
8
+ campaignID?: number | null;
9
+ }) => Promise<any>;
10
+ topPremiumOffers: ({ widgetStyle, launchMode, }?: {
11
+ widgetStyle?: PremiumWidgetStyles;
14
12
  launchMode?: number;
15
13
  }) => import("react/jsx-runtime").JSX.Element;
16
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AA2BA,QAAA,MAAM,MAAM;mBACK,MAAM,aAAa,MAAM;wBAGd,MAAM;sDAwB7B;QAAE,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE;mGAa5D;QACD,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB,qBAAqB,CAAC,EAAE,OAAO,CAAC;QAChC,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;CAkBF,CAAC;AAEF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAEA,OAAkB,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAyBrF,QAAA,MAAM,MAAM;mBACW,MAAM,aAAa,MAAM,WAAW,MAAM;wBAIrC,MAAM;sDAsB7B;QAAE,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE;sDAgBnE;QACD,WAAW,CAAC,EAAE,mBAAmB,CAAC;QAClC,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;CAeF,CAAC;AAEF,eAAe,MAAM,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tyrads.com/tyrads-sdk",
3
- "version": "2.0.1",
3
+ "version": "3.1.0-beta.0",
4
4
  "description": "Tyrads SDK for React Native ",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",
@@ -71,6 +71,7 @@
71
71
  "@types/jest": "^29.5.5",
72
72
  "@types/numeral": "^2.0.5",
73
73
  "@types/react": "^18.2.44",
74
+ "@types/react-native-snap-carousel": "^3.8.11",
74
75
  "commitlint": "^17.0.2",
75
76
  "del-cli": "^5.1.0",
76
77
  "eslint": "^8.51.0",
@@ -192,6 +193,6 @@
192
193
  "i18next": "^24.2.2",
193
194
  "numeral": "^2.0.6",
194
195
  "react-i18next": "^15.4.1",
195
- "react-native-text-ticker": "^1.14.0"
196
+ "react-native-snap-carousel": "^3.9.1"
196
197
  }
197
198
  }
package/readme.md CHANGED
@@ -68,10 +68,10 @@ Tyrads.showOffers({ launchMode: 3 });// provide launchMode: 2 to open the Offerw
68
68
  The Tyrads SDK supports deeplinking to specific sections of the offerwall. When initializing or interacting with the SDK, you can specify a route to open a particular page. For campaign-specific routes, you'll need to provide the campaignID as well.
69
69
 
70
70
  Available routes and their usage:
71
- - `campaigns` - opens the Campaigns Page
72
- - `campaigns-activated` - opens the Activated Campaigns Page
73
- - `campaign-details` - opens the Campaign Details Page (requires campaignID)
74
- - `campaign-tickets` - opens the Campaign Tickets Page (requires campaignID)
71
+ - `offers` - opens the Campaigns Page
72
+ - `active-offers` - opens the Activated Campaigns Page
73
+ - `offer-details` - opens the Campaign Details Page (requires campaignID)
74
+ - `support` - opens the Campaign Tickets Page (requires campaignID)
75
75
 
76
76
  ```js
77
77
 
@@ -79,16 +79,16 @@ Available routes and their usage:
79
79
  Tyrads.showOffers();
80
80
 
81
81
  // Explicitly specifying the Campaigns Page
82
- Tyrads.showOffers({ route: "campaigns" });
82
+ Tyrads.showOffers({ route: "offers" });
83
83
 
84
84
  // Activated Campaigns Page
85
- Tyrads.showOffers({ route: "campaigns-activated" });
85
+ Tyrads.showOffers({ route: "active-offers" });
86
86
 
87
87
  // Campaign Details Page (requires campaignID)
88
- Tyrads.showOffers({ route: "campaign-details", campaignID: "your_campaign_id_here" });
88
+ Tyrads.showOffers({ route: "offer-details", campaignID: "your_campaign_id_here" });
89
89
 
90
90
  // Campaign Tickets Page (requires campaignID)
91
- Tyrads.showOffers({ route: "campaign-tickets", campaignID: "your_campaign_id_here" });
91
+ Tyrads.showOffers({ route: "support", campaignID: "your_campaign_id_here" });
92
92
 
93
93
  ```
94
94
  </details>
@@ -0,0 +1,14 @@
1
+ import { Linking } from "react-native";
2
+
3
+ export async function acmoLaunchURLForce(url: string) {
4
+ await Linking.openURL(url);
5
+ }
6
+
7
+ export async function acmoLaunchURL(url: string) {
8
+ const supported = await Linking.canOpenURL(url);
9
+ if (supported) {
10
+ await Linking.openURL(url);
11
+ } else {
12
+ console.warn("Don't know how to open URI: " + url);
13
+ }
14
+ }