@tyrads.com/tyrads-sdk 3.0.0-beta.0 → 3.2.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.
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/tyradssdk/TyradsSdkModule.kt +130 -29
- package/ios/Tyrads/AcmoAssets.swift +14 -0
- package/ios/Tyrads/ApiHeaders.swift +1 -0
- package/ios/Tyrads/InitModel.swift +3 -0
- package/ios/Tyrads/Tyrads.swift +255 -213
- package/ios/Tyrads/WebViewController.swift +195 -0
- package/ios/Tyrads/core/utils/AcmoKeyNames.swift +29 -0
- package/ios/Tyrads/core/utils/ColorExtension.swift +55 -0
- package/ios/Tyrads/core/utils/Services/LocalizationService.swift +175 -0
- package/ios/Tyrads/helpers/device_details.swift +160 -0
- package/ios/Tyrads/legal/AcmoPrivacyPage.swift +353 -0
- package/ios/Tyrads/legal/PrivacyPageController.swift +31 -0
- package/ios/Tyrads/user/AcmoUserUpdatePage.swift +302 -0
- package/ios/Tyrads/user/AcmoUsersUpdateController.swift +26 -0
- package/ios/Tyrads/user/Repository.swift +89 -0
- package/ios/TyradsSdk.mm +22 -4
- package/ios/TyradsSdk.swift +101 -31
- package/lib/commonjs/acmo/core/helpers/launcher.js +20 -0
- package/lib/commonjs/acmo/core/helpers/launcher.js.map +1 -0
- package/lib/commonjs/acmo/core/helpers/native_methods.js +37 -0
- package/lib/commonjs/acmo/core/helpers/native_methods.js.map +1 -0
- package/lib/commonjs/acmo/core/helpers/numeral.js +19 -0
- package/lib/commonjs/acmo/core/helpers/numeral.js.map +1 -0
- package/lib/commonjs/acmo/core/services/localization_service.js +164 -0
- package/lib/commonjs/acmo/core/services/localization_service.js.map +1 -0
- package/lib/commonjs/acmo/core/storage/storage.js +15 -1
- package/lib/commonjs/acmo/core/storage/storage.js.map +1 -1
- package/lib/commonjs/acmo/modules/dashboard/components/active_offers_button.js +79 -0
- package/lib/commonjs/acmo/modules/dashboard/components/active_offers_button.js.map +1 -0
- package/lib/commonjs/acmo/modules/dashboard/components/custom_card.js +7 -10
- package/lib/commonjs/acmo/modules/dashboard/components/custom_card.js.map +1 -1
- package/lib/commonjs/acmo/modules/dashboard/components/custom_scroller.js +141 -0
- package/lib/commonjs/acmo/modules/dashboard/components/custom_scroller.js.map +1 -0
- package/lib/commonjs/acmo/{core/marquee.js → modules/dashboard/components/custom_shimmer.js} +46 -34
- package/lib/commonjs/acmo/modules/dashboard/components/custom_shimmer.js.map +1 -0
- package/lib/commonjs/acmo/modules/dashboard/components/offer_card.js +263 -0
- package/lib/commonjs/acmo/modules/dashboard/components/offer_card.js.map +1 -0
- package/lib/commonjs/acmo/modules/dashboard/components/offer_list_item.js +203 -0
- package/lib/commonjs/acmo/modules/dashboard/components/offer_list_item.js.map +1 -0
- package/lib/commonjs/acmo/modules/dashboard/components/premium_empty_widget.js +87 -0
- package/lib/commonjs/acmo/modules/dashboard/components/premium_empty_widget.js.map +1 -0
- package/lib/commonjs/acmo/modules/dashboard/components/premium_header.js +16 -14
- package/lib/commonjs/acmo/modules/dashboard/components/premium_header.js.map +1 -1
- package/lib/commonjs/acmo/modules/dashboard/components/premium_loading.js +111 -0
- package/lib/commonjs/acmo/modules/dashboard/components/premium_loading.js.map +1 -0
- package/lib/commonjs/acmo/modules/dashboard/repository.js +108 -32
- package/lib/commonjs/acmo/modules/dashboard/repository.js.map +1 -1
- package/lib/commonjs/acmo/modules/dashboard/top_offers.js +85 -63
- package/lib/commonjs/acmo/modules/dashboard/top_offers.js.map +1 -1
- package/lib/commonjs/acmo/modules/localization/localization_context.js +56 -0
- package/lib/commonjs/acmo/modules/localization/localization_context.js.map +1 -0
- package/lib/commonjs/assets/images/angle_up.png +0 -0
- package/lib/commonjs/assets/images/diamond.png +0 -0
- package/lib/commonjs/assets/images/info.png +0 -0
- package/lib/commonjs/assets/images/info_icon.png +0 -0
- package/lib/commonjs/assets/images/premium-emptybg.jpeg +0 -0
- package/lib/commonjs/assets/images/rank_1.png +0 -0
- package/lib/commonjs/assets/images/rank_2.png +0 -0
- package/lib/commonjs/assets/images/rank_3.png +0 -0
- package/lib/commonjs/assets/images/rank_4.png +0 -0
- package/lib/commonjs/assets/images/rank_5.png +0 -0
- package/lib/commonjs/index.js +50 -16
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/acmo/core/helpers/launcher.js +15 -0
- package/lib/module/acmo/core/helpers/launcher.js.map +1 -0
- package/lib/module/acmo/core/helpers/native_methods.js +33 -0
- package/lib/module/acmo/core/helpers/native_methods.js.map +1 -0
- package/lib/module/acmo/core/helpers/numeral.js +14 -0
- package/lib/module/acmo/core/helpers/numeral.js.map +1 -0
- package/lib/module/acmo/core/services/localization_service.js +159 -0
- package/lib/module/acmo/core/services/localization_service.js.map +1 -0
- package/lib/module/acmo/core/storage/storage.js +13 -0
- package/lib/module/acmo/core/storage/storage.js.map +1 -1
- package/lib/module/acmo/modules/dashboard/components/active_offers_button.js +73 -0
- package/lib/module/acmo/modules/dashboard/components/active_offers_button.js.map +1 -0
- package/lib/module/acmo/modules/dashboard/components/custom_card.js +7 -10
- package/lib/module/acmo/modules/dashboard/components/custom_card.js.map +1 -1
- package/lib/module/acmo/modules/dashboard/components/custom_scroller.js +135 -0
- package/lib/module/acmo/modules/dashboard/components/custom_scroller.js.map +1 -0
- package/lib/module/acmo/modules/dashboard/components/custom_shimmer.js +66 -0
- package/lib/module/acmo/modules/dashboard/components/custom_shimmer.js.map +1 -0
- package/lib/module/acmo/modules/dashboard/components/offer_card.js +257 -0
- package/lib/module/acmo/modules/dashboard/components/offer_card.js.map +1 -0
- package/lib/module/acmo/modules/dashboard/components/offer_list_item.js +197 -0
- package/lib/module/acmo/modules/dashboard/components/offer_list_item.js.map +1 -0
- package/lib/module/acmo/modules/dashboard/components/premium_empty_widget.js +82 -0
- package/lib/module/acmo/modules/dashboard/components/premium_empty_widget.js.map +1 -0
- package/lib/module/acmo/modules/dashboard/components/premium_header.js +16 -14
- package/lib/module/acmo/modules/dashboard/components/premium_header.js.map +1 -1
- package/lib/module/acmo/modules/dashboard/components/premium_loading.js +106 -0
- package/lib/module/acmo/modules/dashboard/components/premium_loading.js.map +1 -0
- package/lib/module/acmo/modules/dashboard/repository.js +105 -30
- package/lib/module/acmo/modules/dashboard/repository.js.map +1 -1
- package/lib/module/acmo/modules/dashboard/top_offers.js +86 -64
- package/lib/module/acmo/modules/dashboard/top_offers.js.map +1 -1
- package/lib/module/acmo/modules/localization/localization_context.js +45 -0
- package/lib/module/acmo/modules/localization/localization_context.js.map +1 -0
- package/lib/module/assets/images/angle_up.png +0 -0
- package/lib/module/assets/images/diamond.png +0 -0
- package/lib/module/assets/images/info.png +0 -0
- package/lib/module/assets/images/info_icon.png +0 -0
- package/lib/module/assets/images/premium-emptybg.jpeg +0 -0
- package/lib/module/assets/images/rank_1.png +0 -0
- package/lib/module/assets/images/rank_2.png +0 -0
- package/lib/module/assets/images/rank_3.png +0 -0
- package/lib/module/assets/images/rank_4.png +0 -0
- package/lib/module/assets/images/rank_5.png +0 -0
- package/lib/module/index.js +49 -17
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/commonjs/src/acmo/core/helpers/launcher.d.ts +3 -0
- package/lib/typescript/commonjs/src/acmo/core/helpers/launcher.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/core/helpers/native_methods.d.ts +6 -0
- package/lib/typescript/commonjs/src/acmo/core/helpers/native_methods.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/core/helpers/numeral.d.ts +2 -0
- package/lib/typescript/commonjs/src/acmo/core/helpers/numeral.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/core/services/localization_service.d.ts +18 -0
- package/lib/typescript/commonjs/src/acmo/core/services/localization_service.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/core/storage/storage.d.ts +1 -0
- package/lib/typescript/commonjs/src/acmo/core/storage/storage.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/active_offers_button.d.ts +9 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/active_offers_button.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/custom_card.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/custom_scroller.d.ts +17 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/custom_scroller.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/custom_shimmer.d.ts +11 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/custom_shimmer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_card.d.ts +12 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_card.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_list_item.d.ts +15 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_list_item.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_empty_widget.d.ts +7 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_empty_widget.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_header.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_loading.d.ts +8 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_loading.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/repository.d.ts +2 -1
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/repository.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/top_offers.d.ts +8 -7
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/top_offers.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/acmo/modules/localization/localization_context.d.ts +14 -0
- package/lib/typescript/commonjs/src/acmo/modules/localization/localization_context.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +8 -6
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/acmo/core/helpers/launcher.d.ts +3 -0
- package/lib/typescript/module/src/acmo/core/helpers/launcher.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/core/helpers/native_methods.d.ts +6 -0
- package/lib/typescript/module/src/acmo/core/helpers/native_methods.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/core/helpers/numeral.d.ts +2 -0
- package/lib/typescript/module/src/acmo/core/helpers/numeral.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/core/services/localization_service.d.ts +18 -0
- package/lib/typescript/module/src/acmo/core/services/localization_service.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/core/storage/storage.d.ts +1 -0
- package/lib/typescript/module/src/acmo/core/storage/storage.d.ts.map +1 -1
- package/lib/typescript/module/src/acmo/modules/dashboard/components/active_offers_button.d.ts +9 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/active_offers_button.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/custom_card.d.ts.map +1 -1
- package/lib/typescript/module/src/acmo/modules/dashboard/components/custom_scroller.d.ts +17 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/custom_scroller.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/custom_shimmer.d.ts +11 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/custom_shimmer.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_card.d.ts +12 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_card.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_list_item.d.ts +15 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_list_item.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_empty_widget.d.ts +7 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_empty_widget.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_header.d.ts.map +1 -1
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_loading.d.ts +8 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_loading.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/dashboard/repository.d.ts +2 -1
- package/lib/typescript/module/src/acmo/modules/dashboard/repository.d.ts.map +1 -1
- package/lib/typescript/module/src/acmo/modules/dashboard/top_offers.d.ts +8 -7
- package/lib/typescript/module/src/acmo/modules/dashboard/top_offers.d.ts.map +1 -1
- package/lib/typescript/module/src/acmo/modules/localization/localization_context.d.ts +14 -0
- package/lib/typescript/module/src/acmo/modules/localization/localization_context.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +8 -6
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/package.json +3 -6
- package/readme.md +8 -8
- package/src/acmo/core/helpers/launcher.ts +14 -0
- package/src/acmo/core/helpers/native_methods.ts +43 -0
- package/src/acmo/core/helpers/numeral.ts +14 -0
- package/src/acmo/core/services/localization_service.ts +200 -0
- package/src/acmo/core/storage/storage.ts +14 -0
- package/src/acmo/core/types/types.d.ts +11 -13
- package/src/acmo/modules/dashboard/components/active_offers_button.tsx +62 -0
- package/src/acmo/modules/dashboard/components/custom_card.tsx +5 -8
- package/src/acmo/modules/dashboard/components/custom_scroller.tsx +164 -0
- package/src/acmo/modules/dashboard/components/custom_shimmer.tsx +75 -0
- package/src/acmo/modules/dashboard/components/offer_card.tsx +248 -0
- package/src/acmo/modules/dashboard/components/offer_list_item.tsx +228 -0
- package/src/acmo/modules/dashboard/components/premium_empty_widget.tsx +79 -0
- package/src/acmo/modules/dashboard/components/premium_header.tsx +14 -13
- package/src/acmo/modules/dashboard/components/premium_loading.tsx +72 -0
- package/src/acmo/modules/dashboard/repository.ts +121 -46
- package/src/acmo/modules/dashboard/top_offers.tsx +105 -53
- package/src/acmo/modules/localization/localization_context.tsx +52 -0
- package/src/assets/images/angle_up.png +0 -0
- package/src/assets/images/diamond.png +0 -0
- package/src/assets/images/info.png +0 -0
- package/src/assets/images/info_icon.png +0 -0
- package/src/assets/images/premium-emptybg.jpeg +0 -0
- package/src/assets/images/rank_1.png +0 -0
- package/src/assets/images/rank_2.png +0 -0
- package/src/assets/images/rank_3.png +0 -0
- package/src/assets/images/rank_4.png +0 -0
- package/src/assets/images/rank_5.png +0 -0
- package/src/index.tsx +76 -34
- package/lib/commonjs/acmo/core/marquee.js.map +0 -1
- package/lib/commonjs/acmo/modules/dashboard/components/auto_scroller.js +0 -87
- package/lib/commonjs/acmo/modules/dashboard/components/auto_scroller.js.map +0 -1
- package/lib/commonjs/acmo/modules/dashboard/components/my_games_button.js +0 -48
- package/lib/commonjs/acmo/modules/dashboard/components/my_games_button.js.map +0 -1
- package/lib/commonjs/acmo/modules/dashboard/components/offer_info_section.js +0 -158
- package/lib/commonjs/acmo/modules/dashboard/components/offer_info_section.js.map +0 -1
- package/lib/commonjs/acmo/modules/dashboard/components/premium_option_1.js +0 -180
- package/lib/commonjs/acmo/modules/dashboard/components/premium_option_1.js.map +0 -1
- package/lib/commonjs/acmo/modules/dashboard/components/premium_option_2.js +0 -102
- package/lib/commonjs/acmo/modules/dashboard/components/premium_option_2.js.map +0 -1
- package/lib/commonjs/acmo/modules/dashboard/components/premium_option_3.js +0 -41
- package/lib/commonjs/acmo/modules/dashboard/components/premium_option_3.js.map +0 -1
- package/lib/commonjs/acmo/modules/dashboard/components/premium_option_4.js +0 -214
- package/lib/commonjs/acmo/modules/dashboard/components/premium_option_4.js.map +0 -1
- package/lib/commonjs/i18n.js +0 -112
- package/lib/commonjs/i18n.js.map +0 -1
- package/lib/module/acmo/core/marquee.js +0 -54
- package/lib/module/acmo/core/marquee.js.map +0 -1
- package/lib/module/acmo/modules/dashboard/components/auto_scroller.js +0 -81
- package/lib/module/acmo/modules/dashboard/components/auto_scroller.js.map +0 -1
- package/lib/module/acmo/modules/dashboard/components/my_games_button.js +0 -43
- package/lib/module/acmo/modules/dashboard/components/my_games_button.js.map +0 -1
- package/lib/module/acmo/modules/dashboard/components/offer_info_section.js +0 -153
- package/lib/module/acmo/modules/dashboard/components/offer_info_section.js.map +0 -1
- package/lib/module/acmo/modules/dashboard/components/premium_option_1.js +0 -174
- package/lib/module/acmo/modules/dashboard/components/premium_option_1.js.map +0 -1
- package/lib/module/acmo/modules/dashboard/components/premium_option_2.js +0 -97
- package/lib/module/acmo/modules/dashboard/components/premium_option_2.js.map +0 -1
- package/lib/module/acmo/modules/dashboard/components/premium_option_3.js +0 -36
- package/lib/module/acmo/modules/dashboard/components/premium_option_3.js.map +0 -1
- package/lib/module/acmo/modules/dashboard/components/premium_option_4.js +0 -209
- package/lib/module/acmo/modules/dashboard/components/premium_option_4.js.map +0 -1
- package/lib/module/i18n.js +0 -107
- package/lib/module/i18n.js.map +0 -1
- package/lib/typescript/commonjs/src/acmo/core/marquee.d.ts +0 -11
- package/lib/typescript/commonjs/src/acmo/core/marquee.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/auto_scroller.d.ts +0 -10
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/auto_scroller.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/my_games_button.d.ts +0 -8
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/my_games_button.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_info_section.d.ts +0 -11
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_info_section.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_1.d.ts +0 -9
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_1.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_2.d.ts +0 -9
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_2.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_3.d.ts +0 -9
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_3.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_4.d.ts +0 -9
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_option_4.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/i18n.d.ts +0 -3
- package/lib/typescript/commonjs/src/i18n.d.ts.map +0 -1
- package/lib/typescript/module/src/acmo/core/marquee.d.ts +0 -11
- package/lib/typescript/module/src/acmo/core/marquee.d.ts.map +0 -1
- package/lib/typescript/module/src/acmo/modules/dashboard/components/auto_scroller.d.ts +0 -10
- package/lib/typescript/module/src/acmo/modules/dashboard/components/auto_scroller.d.ts.map +0 -1
- package/lib/typescript/module/src/acmo/modules/dashboard/components/my_games_button.d.ts +0 -8
- package/lib/typescript/module/src/acmo/modules/dashboard/components/my_games_button.d.ts.map +0 -1
- package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_info_section.d.ts +0 -11
- package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_info_section.d.ts.map +0 -1
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_1.d.ts +0 -9
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_1.d.ts.map +0 -1
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_2.d.ts +0 -9
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_2.d.ts.map +0 -1
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_3.d.ts +0 -9
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_3.d.ts.map +0 -1
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_4.d.ts +0 -9
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_option_4.d.ts.map +0 -1
- package/lib/typescript/module/src/i18n.d.ts +0 -3
- package/lib/typescript/module/src/i18n.d.ts.map +0 -1
- package/src/acmo/core/marquee.tsx +0 -62
- package/src/acmo/modules/dashboard/components/auto_scroller.tsx +0 -85
- package/src/acmo/modules/dashboard/components/my_games_button.tsx +0 -40
- package/src/acmo/modules/dashboard/components/offer_info_section.tsx +0 -139
- package/src/acmo/modules/dashboard/components/premium_option_1.tsx +0 -163
- package/src/acmo/modules/dashboard/components/premium_option_2.tsx +0 -100
- package/src/acmo/modules/dashboard/components/premium_option_3.tsx +0 -42
- package/src/acmo/modules/dashboard/components/premium_option_4.tsx +0 -185
- package/src/i18n.ts +0 -115
@@ -1,50 +1,67 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
3
|
import React, { useState, useEffect } from 'react';
|
4
|
-
import { View, Text,
|
5
|
-
import {
|
4
|
+
import { View, Text, StyleSheet } from 'react-native';
|
5
|
+
import { fetchPremiumOfferDetails, openOffer } from "./repository.js";
|
6
6
|
import PremiumHeaderSection from "./components/premium_header.js";
|
7
7
|
import CustomCard from "./components/custom_card.js";
|
8
|
-
import
|
9
|
-
import
|
10
|
-
import
|
11
|
-
import
|
12
|
-
import
|
8
|
+
import ActiveOffersButton from "./components/active_offers_button.js";
|
9
|
+
import { AcmoOfferListItem } from "./components/offer_list_item.js";
|
10
|
+
import AcmoOfferCard from "./components/offer_card.js";
|
11
|
+
import AcmoScrollPager from "./components/custom_scroller.js";
|
12
|
+
import PremiumEmptyView from "./components/premium_empty_widget.js";
|
13
|
+
import PremiumWidgetsLoading from "./components/premium_loading.js";
|
14
|
+
import TyradsNativeMethods from "../../core/helpers/native_methods.js";
|
13
15
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
16
|
+
export let PremiumWidgetStyles = /*#__PURE__*/function (PremiumWidgetStyles) {
|
17
|
+
PremiumWidgetStyles[PremiumWidgetStyles["list"] = 0] = "list";
|
18
|
+
PremiumWidgetStyles[PremiumWidgetStyles["sliderCards"] = 1] = "sliderCards";
|
19
|
+
return PremiumWidgetStyles;
|
20
|
+
}({});
|
21
|
+
const PremiumWidgets = ({
|
22
|
+
widgetStyle = PremiumWidgetStyles.list,
|
19
23
|
onNavigate
|
20
24
|
}) => {
|
21
25
|
const [campaigns, setCampaigns] = useState([]);
|
22
26
|
const [isLoading, setIsLoading] = useState(true);
|
23
27
|
const [error, setError] = useState(null);
|
24
28
|
const [premiumColor, setPremiumColor] = useState('#1C90DF');
|
25
|
-
|
26
|
-
|
29
|
+
const [currencySale, setCurrencySale] = useState();
|
30
|
+
const [activeCount, setActiveCount] = useState(0);
|
31
|
+
const [loadingIndex, setLoadingIndex] = useState(null);
|
27
32
|
useEffect(() => {
|
28
|
-
|
29
|
-
// setLanguage,
|
30
|
-
setPremiumColor, setCampaigns, setError, setIsLoading);
|
33
|
+
fetchPremiumOfferDetails(setPremiumColor, setCampaigns, setCurrencySale, setActiveCount, setError, setIsLoading);
|
31
34
|
}, []);
|
32
35
|
const handleShowOffers = () => {
|
33
36
|
onNavigate();
|
34
37
|
};
|
35
38
|
const handleCampaignPress = campaignId => {
|
36
|
-
onNavigate(
|
39
|
+
onNavigate("offers", campaignId);
|
37
40
|
};
|
38
|
-
const
|
41
|
+
const handleActiveOffersPress = route => {
|
39
42
|
onNavigate(route);
|
40
43
|
};
|
44
|
+
const handleButtonPress = async campaign => {
|
45
|
+
let isReady = await TyradsNativeMethods.isPrivacyAccepted();
|
46
|
+
if (!isReady) {
|
47
|
+
try {
|
48
|
+
const result = await TyradsNativeMethods.checkOnboardingProcess();
|
49
|
+
console.log("Privacy flow result:", result);
|
50
|
+
isReady = result === true;
|
51
|
+
} catch (err) {
|
52
|
+
console.error("Privacy flow error:", err);
|
53
|
+
isReady = false;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
if (!isReady) {
|
57
|
+
return;
|
58
|
+
}
|
59
|
+
await openOffer(campaign);
|
60
|
+
await fetchPremiumOfferDetails(setPremiumColor, setCampaigns, setCurrencySale, setActiveCount, setError, setIsLoading);
|
61
|
+
};
|
41
62
|
if (isLoading) {
|
42
|
-
return /*#__PURE__*/_jsx(
|
43
|
-
|
44
|
-
children: /*#__PURE__*/_jsx(ActivityIndicator, {
|
45
|
-
size: "large",
|
46
|
-
color: "#007AFF"
|
47
|
-
})
|
63
|
+
return /*#__PURE__*/_jsx(PremiumWidgetsLoading, {
|
64
|
+
widgetStyle: widgetStyle
|
48
65
|
});
|
49
66
|
}
|
50
67
|
if (error) {
|
@@ -57,54 +74,49 @@ const TopOffers = ({
|
|
57
74
|
});
|
58
75
|
}
|
59
76
|
if (campaigns.length === 0) {
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
children: "No campaigns available"
|
65
|
-
})
|
66
|
-
});
|
67
|
-
} else {
|
68
|
-
return /*#__PURE__*/_jsx(View, {});
|
69
|
-
}
|
77
|
+
return /*#__PURE__*/_jsx(PremiumEmptyView, {
|
78
|
+
colorPremium: premiumColor,
|
79
|
+
onContinue: handleShowOffers
|
80
|
+
});
|
70
81
|
}
|
71
82
|
return /*#__PURE__*/_jsx(CustomCard, {
|
72
|
-
style: {
|
83
|
+
style: {
|
84
|
+
flexDirection: 'row'
|
85
|
+
},
|
73
86
|
children: /*#__PURE__*/_jsxs(View, {
|
74
87
|
style: {
|
75
88
|
flex: 1
|
76
89
|
},
|
77
90
|
children: [/*#__PURE__*/_jsx(PremiumHeaderSection, {
|
78
|
-
showMore: showMore,
|
79
91
|
premiumColor: premiumColor,
|
80
92
|
onShowOffers: handleShowOffers
|
81
93
|
}), /*#__PURE__*/_jsx(View, {
|
82
94
|
style: styles.headerSpacer
|
83
95
|
}), (() => {
|
84
|
-
switch (
|
85
|
-
case
|
86
|
-
return /*#__PURE__*/_jsx(
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
96
|
+
switch (widgetStyle) {
|
97
|
+
case PremiumWidgetStyles.list:
|
98
|
+
return campaigns.map((item, index) => /*#__PURE__*/_jsx(AcmoOfferListItem, {
|
99
|
+
onPress: async () => handleCampaignPress && handleCampaignPress(item.campaignId),
|
100
|
+
offer: item,
|
101
|
+
currencySales: currencySale,
|
102
|
+
index: index,
|
103
|
+
loadingIndex: loadingIndex,
|
104
|
+
setLoadingIndex: setLoadingIndex,
|
105
|
+
colorPremium: premiumColor,
|
106
|
+
onButtonTap: async () => handleButtonPress(item)
|
107
|
+
}, index));
|
108
|
+
case PremiumWidgetStyles.sliderCards:
|
109
|
+
return /*#__PURE__*/_jsx(AcmoScrollPager, {
|
110
|
+
totalPages: campaigns.length,
|
111
|
+
activeIndicatorColor: premiumColor,
|
112
|
+
content: index => /*#__PURE__*/_jsx(AcmoOfferCard, {
|
113
|
+
item: campaigns[index],
|
114
|
+
onButtonClick: async () => handleButtonPress(campaigns[index]),
|
115
|
+
currencySaleModel: currencySale,
|
116
|
+
premiumColor: premiumColor,
|
117
|
+
isLoading: false,
|
118
|
+
onTap: async () => handleCampaignPress && handleCampaignPress(campaigns[index].campaignId)
|
119
|
+
})
|
108
120
|
});
|
109
121
|
default:
|
110
122
|
return /*#__PURE__*/_jsx(Text, {
|
@@ -113,14 +125,24 @@ const TopOffers = ({
|
|
113
125
|
}
|
114
126
|
})(), /*#__PURE__*/_jsx(View, {
|
115
127
|
style: styles.gameListSpacer
|
116
|
-
}),
|
128
|
+
}), /*#__PURE__*/_jsx(ActiveOffersButton, {
|
129
|
+
activeCount: activeCount,
|
117
130
|
premiumColor: premiumColor,
|
118
|
-
onPress:
|
131
|
+
onPress: handleActiveOffersPress
|
119
132
|
})]
|
120
133
|
})
|
121
134
|
});
|
122
135
|
};
|
123
136
|
const styles = StyleSheet.create({
|
137
|
+
itemContainer: {
|
138
|
+
flexDirection: 'row',
|
139
|
+
flex: 1,
|
140
|
+
width: '100%',
|
141
|
+
justifyContent: 'space-between',
|
142
|
+
alignItems: 'center',
|
143
|
+
paddingHorizontal: 16,
|
144
|
+
paddingVertical: 8
|
145
|
+
},
|
124
146
|
loadingContainer: {
|
125
147
|
flex: 1,
|
126
148
|
justifyContent: 'center',
|
@@ -142,5 +164,5 @@ const styles = StyleSheet.create({
|
|
142
164
|
height: 10
|
143
165
|
}
|
144
166
|
});
|
145
|
-
export default
|
167
|
+
export default PremiumWidgets;
|
146
168
|
//# sourceMappingURL=top_offers.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["React","useState","useEffect","View","Text","
|
1
|
+
{"version":3,"names":["React","useState","useEffect","View","Text","StyleSheet","fetchPremiumOfferDetails","openOffer","PremiumHeaderSection","CustomCard","ActiveOffersButton","AcmoOfferListItem","AcmoOfferCard","AcmoScrollPager","PremiumEmptyView","PremiumWidgetsLoading","TyradsNativeMethods","jsx","_jsx","jsxs","_jsxs","PremiumWidgetStyles","PremiumWidgets","widgetStyle","list","onNavigate","campaigns","setCampaigns","isLoading","setIsLoading","error","setError","premiumColor","setPremiumColor","currencySale","setCurrencySale","activeCount","setActiveCount","loadingIndex","setLoadingIndex","handleShowOffers","handleCampaignPress","campaignId","handleActiveOffersPress","route","handleButtonPress","campaign","isReady","isPrivacyAccepted","result","checkOnboardingProcess","console","log","err","style","styles","errorContainer","children","errorText","length","colorPremium","onContinue","flexDirection","flex","onShowOffers","headerSpacer","map","item","index","onPress","offer","currencySales","onButtonTap","sliderCards","totalPages","activeIndicatorColor","content","onButtonClick","currencySaleModel","onTap","gameListSpacer","create","itemContainer","width","justifyContent","alignItems","paddingHorizontal","paddingVertical","loadingContainer","padding","color","noCampaignContainer","height"],"sourceRoot":"../../../../../src","sources":["acmo/modules/dashboard/top_offers.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,SAAS,QAAQ,OAAO;AAClD,SACEC,IAAI,EACJC,IAAI,EACJC,UAAU,QACL,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AAC;IACPqB,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd,CAAC;EACD7B,cAAc,EAAE;IACdiC,OAAO,EAAE;EACX,CAAC;EACD/B,SAAS,EAAE;IACTgC,KAAK,EAAE;EACT,CAAC;EACDC,mBAAmB,EAAE;IACnBF,OAAO,EAAE;EACX,CAAC;EACDxB,YAAY,EAAE;IACZ2B,MAAM,EAAE;EACV,CAAC;EACDZ,cAAc,EAAE;IACdY,MAAM,EAAE;EACV;AACF,CAAC,CAAC;AAEF,eAAetE,cAAc","ignoreList":[]}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
import React, { createContext, useContext, useState, useEffect } from 'react';
|
4
|
+
import LocalizationService from "../../core/services/localization_service.js";
|
5
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
6
|
+
const LocalizationContext = /*#__PURE__*/createContext({
|
7
|
+
t: key => key,
|
8
|
+
changeLanguage: async () => {},
|
9
|
+
currentLanguage: 'en'
|
10
|
+
});
|
11
|
+
let _updateLanguage = null;
|
12
|
+
export const LocalizationProvider = ({
|
13
|
+
children
|
14
|
+
}) => {
|
15
|
+
const [currentLanguage, setCurrentLanguage] = useState('en');
|
16
|
+
const service = LocalizationService.getInstance();
|
17
|
+
useEffect(() => {
|
18
|
+
_updateLanguage = setCurrentLanguage;
|
19
|
+
}, []);
|
20
|
+
const changeLanguage = async lang => {
|
21
|
+
await service.changeLanguage(lang);
|
22
|
+
setCurrentLanguage(lang);
|
23
|
+
};
|
24
|
+
const t = (key, args) => service.translate(key, args);
|
25
|
+
return /*#__PURE__*/_jsx(LocalizationContext.Provider, {
|
26
|
+
value: {
|
27
|
+
t,
|
28
|
+
changeLanguage,
|
29
|
+
currentLanguage
|
30
|
+
},
|
31
|
+
children: children
|
32
|
+
});
|
33
|
+
};
|
34
|
+
export const useLocalization = () => useContext(LocalizationContext);
|
35
|
+
export const updateProviderLanguage = async lang => {
|
36
|
+
const service = LocalizationService.getInstance();
|
37
|
+
await service.init(lang);
|
38
|
+
_updateLanguage?.(lang);
|
39
|
+
};
|
40
|
+
export const changeProviderLanguage = async lang => {
|
41
|
+
const service = LocalizationService.getInstance();
|
42
|
+
await service.changeLanguage(lang);
|
43
|
+
_updateLanguage?.(lang);
|
44
|
+
};
|
45
|
+
//# sourceMappingURL=localization_context.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["React","createContext","useContext","useState","useEffect","LocalizationService","jsx","_jsx","LocalizationContext","t","key","changeLanguage","currentLanguage","_updateLanguage","LocalizationProvider","children","setCurrentLanguage","service","getInstance","lang","args","translate","Provider","value","useLocalization","updateProviderLanguage","init","changeProviderLanguage"],"sourceRoot":"../../../../../src","sources":["acmo/modules/localization/localization_context.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,aAAa,EAAEC,UAAU,EAAEC,QAAQ,EAAEC,SAAS,QAAQ,OAAO;AAC7E,OAAOC,mBAAmB,MAAM,6CAA0C;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAQ3E,MAAMC,mBAAmB,gBAAGP,aAAa,CAA2B;EAClEQ,CAAC,EAAGC,GAAG,IAAKA,GAAG;EACfC,cAAc,EAAE,MAAAA,CAAA,KAAY,CAAC,CAAC;EAC9BC,eAAe,EAAE;AACnB,CAAC,CAAC;AAEF,IAAIC,eAAgD,GAAG,IAAI;AAE3D,OAAO,MAAMC,oBAA6D,GAAGA,CAAC;EAAEC;AAAS,CAAC,KAAK;EAC7F,MAAM,CAACH,eAAe,EAAEI,kBAAkB,CAAC,GAAGb,QAAQ,CAAC,IAAI,CAAC;EAC5D,MAAMc,OAAO,GAAGZ,mBAAmB,CAACa,WAAW,CAAC,CAAC;EAEjDd,SAAS,CAAC,MAAM;IACdS,eAAe,GAAGG,kBAAkB;EACtC,CAAC,EAAE,EAAE,CAAC;EAEN,MAAML,cAAc,GAAG,MAAOQ,IAAY,IAAK;IAC7C,MAAMF,OAAO,CAACN,cAAc,CAACQ,IAAI,CAAC;IAClCH,kBAAkB,CAACG,IAAI,CAAC;EAC1B,CAAC;EAED,MAAMV,CAAC,GAAGA,CAACC,GAAW,EAAEU,IAAsC,KAAKH,OAAO,CAACI,SAAS,CAACX,GAAG,EAAEU,IAAI,CAAC;EAE/F,oBACEb,IAAA,CAACC,mBAAmB,CAACc,QAAQ;IAACC,KAAK,EAAE;MAAEd,CAAC;MAAEE,cAAc;MAAEC;IAAgB,CAAE;IAAAG,QAAA,EACzEA;EAAQ,CACmB,CAAC;AAEnC,CAAC;AAED,OAAO,MAAMS,eAAe,GAAGA,CAAA,KAAMtB,UAAU,CAACM,mBAAmB,CAAC;AAEpE,OAAO,MAAMiB,sBAAsB,GAAG,MAAON,IAAY,IAAK;EAC5D,MAAMF,OAAO,GAAGZ,mBAAmB,CAACa,WAAW,CAAC,CAAC;EACjD,MAAMD,OAAO,CAACS,IAAI,CAACP,IAAI,CAAC;EACxBN,eAAe,GAAGM,IAAI,CAAC;AACzB,CAAC;AAED,OAAO,MAAMQ,sBAAsB,GAAG,MAAOR,IAAY,IAAK;EAC5D,MAAMF,OAAO,GAAGZ,mBAAmB,CAACa,WAAW,CAAC,CAAC;EACjD,MAAMD,OAAO,CAACN,cAAc,CAACQ,IAAI,CAAC;EAClCN,eAAe,GAAGM,IAAI,CAAC;AACzB,CAAC","ignoreList":[]}
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
package/lib/module/index.js
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
import { NativeModules, Platform, View } from 'react-native';
|
4
|
-
import TopOffers from "./acmo/modules/dashboard/top_offers.js";
|
3
|
+
import { NativeEventEmitter, NativeModules, Platform, View } from 'react-native';
|
4
|
+
import TopOffers, { PremiumWidgetStyles } from "./acmo/modules/dashboard/top_offers.js";
|
5
5
|
import { saveData } from "./acmo/core/storage/storage.js";
|
6
|
-
import
|
7
|
-
import
|
6
|
+
import Localization from "./acmo/core/services/localization_service.js";
|
7
|
+
import { changeProviderLanguage, LocalizationProvider, updateProviderLanguage } from "./acmo/modules/localization/localization_context.js";
|
8
|
+
import PremiumWidgetsLoading from "./acmo/modules/dashboard/components/premium_loading.js";
|
8
9
|
|
9
10
|
// const TyradsSdkComposeView = requireNativeComponent('TyradsSdkComposeView');
|
10
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
@@ -17,9 +18,31 @@ const TyradsSdk = NativeModules.TyradsSdk ? NativeModules.TyradsSdk : new Proxy(
|
|
17
18
|
throw new Error(LINKING_ERROR);
|
18
19
|
}
|
19
20
|
});
|
21
|
+
const tyradsEmitter = new NativeEventEmitter(TyradsSdk);
|
22
|
+
let languageChangedSubscription = null;
|
20
23
|
const Tyrads = {
|
21
24
|
init: async (apiKey, apiSecret, encKey) => {
|
22
25
|
const data = await TyradsSdk.init(apiKey, apiSecret, encKey);
|
26
|
+
await saveData("credentials", {
|
27
|
+
'X-API-Key': apiKey,
|
28
|
+
'X-API-Secret': apiSecret
|
29
|
+
});
|
30
|
+
let languageCode = "en";
|
31
|
+
try {
|
32
|
+
const parsed = typeof data === "string" ? JSON.parse(data) : data;
|
33
|
+
if (parsed?.languageCode) {
|
34
|
+
languageCode = parsed.languageCode;
|
35
|
+
}
|
36
|
+
} catch {}
|
37
|
+
TyradsSdk.startObserving();
|
38
|
+
languageChangedSubscription?.remove();
|
39
|
+
languageChangedSubscription = tyradsEmitter.addListener('LanguageChanged', async lang => {
|
40
|
+
console.log('LanguageChanged event from Android SDK:', lang);
|
41
|
+
await changeProviderLanguage(lang);
|
42
|
+
});
|
43
|
+
await saveData("language", languageCode);
|
44
|
+
await Localization.getInstance().init(languageCode);
|
45
|
+
await updateProviderLanguage(languageCode);
|
23
46
|
return data;
|
24
47
|
},
|
25
48
|
loginUser: async userId => {
|
@@ -40,19 +63,22 @@ const Tyrads = {
|
|
40
63
|
showOffers: async ({
|
41
64
|
launchMode = 3,
|
42
65
|
route,
|
43
|
-
campaignID
|
66
|
+
campaignID
|
44
67
|
} = {}) => {
|
45
68
|
if (Platform.OS === 'ios') {
|
46
|
-
|
69
|
+
if (campaignID == null) {
|
70
|
+
return await TyradsSdk.showOffers(launchMode, route);
|
71
|
+
}
|
72
|
+
return await TyradsSdk.showOfferDetails(launchMode, route, campaignID);
|
47
73
|
} else {
|
48
|
-
|
74
|
+
if (campaignID == null) {
|
75
|
+
return await TyradsSdk.showOffers(route);
|
76
|
+
}
|
77
|
+
return await TyradsSdk.showOfferDetails(route, campaignID);
|
49
78
|
}
|
50
79
|
},
|
51
80
|
topPremiumOffers: ({
|
52
|
-
|
53
|
-
showMyOffers = true,
|
54
|
-
showMyOffersEmptyView = false,
|
55
|
-
viewStyle = 1,
|
81
|
+
widgetStyle,
|
56
82
|
launchMode = 2
|
57
83
|
} = {}) => {
|
58
84
|
const handleNavigation = (route, campaignID) => {
|
@@ -62,8 +88,7 @@ const Tyrads = {
|
|
62
88
|
launchMode: launchMode
|
63
89
|
});
|
64
90
|
};
|
65
|
-
return /*#__PURE__*/_jsx(
|
66
|
-
i18n: i18n,
|
91
|
+
return /*#__PURE__*/_jsx(LocalizationProvider, {
|
67
92
|
children: /*#__PURE__*/_jsx(View, {
|
68
93
|
style: {
|
69
94
|
flex: 1,
|
@@ -71,14 +96,21 @@ const Tyrads = {
|
|
71
96
|
alignItems: 'center'
|
72
97
|
},
|
73
98
|
children: /*#__PURE__*/_jsx(TopOffers, {
|
74
|
-
|
75
|
-
showMyOffers: showMyOffers,
|
76
|
-
showMyOffersEmptyView: showMyOffersEmptyView,
|
77
|
-
style: viewStyle,
|
99
|
+
widgetStyle: widgetStyle,
|
78
100
|
onNavigate: handleNavigation
|
79
101
|
})
|
80
102
|
})
|
81
103
|
});
|
104
|
+
},
|
105
|
+
topPremiumOffersLoading: ({
|
106
|
+
widgetStyle = PremiumWidgetStyles.list
|
107
|
+
}) => {
|
108
|
+
return /*#__PURE__*/_jsx(PremiumWidgetsLoading, {
|
109
|
+
widgetStyle: widgetStyle
|
110
|
+
});
|
111
|
+
},
|
112
|
+
changeLanguage: async lang => {
|
113
|
+
return await TyradsSdk.changeLanguage(lang);
|
82
114
|
}
|
83
115
|
};
|
84
116
|
export default Tyrads;
|
package/lib/module/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["NativeModules","Platform","View","TopOffers","saveData","
|
1
|
+
{"version":3,"names":["NativeEventEmitter","NativeModules","Platform","View","TopOffers","PremiumWidgetStyles","saveData","Localization","changeProviderLanguage","LocalizationProvider","updateProviderLanguage","PremiumWidgetsLoading","jsx","_jsx","LINKING_ERROR","select","ios","default","TyradsSdk","Proxy","get","Error","tyradsEmitter","languageChangedSubscription","Tyrads","init","apiKey","apiSecret","encKey","data","languageCode","parsed","JSON","parse","startObserving","remove","addListener","lang","console","log","getInstance","loginUser","userId","stringify","err","showOffers","launchMode","route","campaignID","OS","showOfferDetails","topPremiumOffers","widgetStyle","handleNavigation","children","style","flex","justifyContent","alignItems","onNavigate","topPremiumOffersLoading","list","changeLanguage"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,SAASA,kBAAkB,EAAEC,aAAa,EAAEC,QAAQ,EAAEC,IAAI,QAAS,cAAc;AAEjF,OAAOC,SAAS,IAAIC,mBAAmB,QAAQ,wCAAqC;AACpF,SAASC,QAAQ,QAAQ,gCAA6B;AACtD,OAAOC,YAAY,MAAM,8CAA2C;AACpE,SAASC,sBAAsB,EAAEC,oBAAoB,EAAEC,sBAAsB,QAAQ,qDAAkD;AACvI,OAAOC,qBAAqB,MAAM,wDAAqD;;AAEvF;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAGA,MAAMC,aAAa,GACjB,qEAAqE,GACrEZ,QAAQ,CAACa,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,MAAMC,SAAS,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CAACgC,gBAAgB,CAACH,KAAK,EAAEC,UAAU,CAAC;IAC5D;EACF,CAAC;EACDG,gBAAgB,EAAEA,CAAC;IACjBC,WAAW;IACXN,UAAU,GAAG;EAIf,CAAC,GAAG,CAAC,CAAC,KAAK;IACT,MAAMO,gBAAgB,GAAGA,CAACN,KAAc,EAAEC,UAA0B,KAAK;MACvExB,MAAM,CAACqB,UAAU,CAAC;QAAEE,KAAK,EAAEA,KAAK;QAAEC,UAAU,EAAEA,UAAU;QAAEF,UAAU,EAAEA;MAAW,CAAC,CAAC;IACrF,CAAC;IACD,oBACEjC,IAAA,CAACJ,oBAAoB;MAAA6C,QAAA,eACnBzC,IAAA,CAACV,IAAI;QAACoD,KAAK,EAAE;UAAEC,IAAI,EAAE,CAAC;UAAEC,cAAc,EAAE,QAAQ;UAAEC,UAAU,EAAE;QAAS,CAAE;QAAAJ,QAAA,eACvEzC,IAAA,CAACT,SAAS;UACRgD,WAAW,EAAEA,WAAY;UACzBO,UAAU,EAAEN;QAAiB,CAC9B;MAAC,CACE;IAAC,CACa,CAAC;EAE3B,CAAC;EACDO,uBAAuB,EAAEA,CACvB;IAAER,WAAW,GAAG/C,mBAAmB,CAACwD;EAEpC,CAAC,KACE;IACH,oBACEhD,IAAA,CAACF,qBAAqB;MACpByC,WAAW,EAAEA;IAAY,CAC1B,CAAC;EAEN,CAAC;EACDU,cAAc,EAAE,MAAOzB,IAAY,IAAK;IACtC,OAAO,MAAMnB,SAAS,CAAC4C,cAAc,CAACzB,IAAI,CAAC;EAC7C;AACF,CAAC;AAED,eAAeb,MAAM","ignoreList":[]}
|
@@ -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"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"native_methods.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/core/helpers/native_methods.ts"],"names":[],"mappings":"AAoBA,QAAA,MAAM,mBAAmB;;;CAoBxB,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"numeral.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/core/helpers/numeral.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAW,MAAM,aAAY,MAAM,KAAO,MAa7D,CAAC"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
declare class LocalizationService {
|
2
|
+
private static instance;
|
3
|
+
private axios;
|
4
|
+
private translations;
|
5
|
+
private supportedLocales;
|
6
|
+
private readonly fallbackLocale;
|
7
|
+
private constructor();
|
8
|
+
static getInstance(): LocalizationService;
|
9
|
+
private static getHeadersFromStorage;
|
10
|
+
init(locale: string): Promise<void>;
|
11
|
+
private loadTranslations;
|
12
|
+
private fetchTranslations;
|
13
|
+
private checkForUpdate;
|
14
|
+
translate(key: string, args?: Record<string, string | number>): string;
|
15
|
+
changeLanguage(locale: string, force?: boolean): Promise<void>;
|
16
|
+
}
|
17
|
+
export default LocalizationService;
|
18
|
+
//# sourceMappingURL=localization_service.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"localization_service.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/core/services/localization_service.ts"],"names":[],"mappings":"AAgBA,cAAM,mBAAmB;IACvB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAsB;IAC7C,OAAO,CAAC,KAAK,CAA8B;IAC3C,OAAO,CAAC,YAAY,CAAoB;IACxC,OAAO,CAAC,gBAAgB,CAAgB;IACxC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAgB;IAE/C,OAAO;WAGO,WAAW,IAAI,mBAAmB;mBAO3B,qBAAqB;IAW7B,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;YA4ClC,gBAAgB;YAkBhB,iBAAiB;YAiCjB,cAAc;IA+BrB,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAM,GAAG,MAAM;IAwBpE,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,UAAQ,GAAG,OAAO,CAAC,IAAI,CAAC;CAG1E;AAED,eAAe,mBAAmB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../../../../../../src/acmo/core/storage/storage.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,
|
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;AAEF,eAAO,MAAM,SAAS,GAAU,CAAC,OAAO,MAAM,KAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAYhE,CAAC"}
|
package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/active_offers_button.d.ts
ADDED
@@ -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
|
package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/active_offers_button.d.ts.map
ADDED
@@ -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;AAK1B,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;
|
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
|
package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/custom_scroller.d.ts.map
ADDED
@@ -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":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAYxC,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"}
|