@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,185 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import {
|
3
|
-
View,
|
4
|
-
Text,
|
5
|
-
Image,
|
6
|
-
StyleSheet,
|
7
|
-
Dimensions,
|
8
|
-
TouchableOpacity,
|
9
|
-
} from 'react-native';
|
10
|
-
import AutoScrollPagerWithIndicators from './auto_scroller';
|
11
|
-
import numeral from 'numeral';
|
12
|
-
import { useTranslation } from 'react-i18next';
|
13
|
-
|
14
|
-
const { width } = Dimensions.get('window');
|
15
|
-
|
16
|
-
interface PremiumOption4Props {
|
17
|
-
data: TransformedCampaign[];
|
18
|
-
premiumColor?: string;
|
19
|
-
onCampaignPress?: (campaignId: number) => void;
|
20
|
-
}
|
21
|
-
|
22
|
-
const PremiumOption4: React.FC<PremiumOption4Props> = ({ data, onCampaignPress, premiumColor }) => {
|
23
|
-
return (
|
24
|
-
<AutoScrollPagerWithIndicators
|
25
|
-
totalPages={data.length}
|
26
|
-
premiumColor={premiumColor}
|
27
|
-
content={(page) => (
|
28
|
-
<View key={page}>
|
29
|
-
{
|
30
|
-
data[page] && (
|
31
|
-
<OfferBanner details={data[page]} index={page} premiumColor={premiumColor} onCampaignPress={onCampaignPress} />
|
32
|
-
)
|
33
|
-
}
|
34
|
-
</View>
|
35
|
-
)}
|
36
|
-
/>
|
37
|
-
);
|
38
|
-
};
|
39
|
-
|
40
|
-
interface OfferBannerProps {
|
41
|
-
details: TransformedCampaign;
|
42
|
-
index: number;
|
43
|
-
onCampaignPress?: (campaignId: number) => void;
|
44
|
-
premiumColor?: string;
|
45
|
-
}
|
46
|
-
|
47
|
-
const OfferBanner: React.FC<OfferBannerProps> = ({ details, index, onCampaignPress, premiumColor }) => {
|
48
|
-
const { t } = useTranslation();
|
49
|
-
return (
|
50
|
-
<View style={styles.outerContainer}>
|
51
|
-
<View style={styles.bannerContainer}>
|
52
|
-
<Image style={styles.bannerImage} source={{ uri: details.fileUrl }} resizeMode="cover" />
|
53
|
-
|
54
|
-
<View style={styles.starContainer}>
|
55
|
-
<Image
|
56
|
-
source={require('../../../../assets/images/premium_star.png')}
|
57
|
-
style={[styles.starIcon, { tintColor: premiumColor || '#1C90DF' }]}
|
58
|
-
/>
|
59
|
-
<Text style={styles.index} numberOfLines={1} ellipsizeMode="tail">
|
60
|
-
{index + 1}
|
61
|
-
</Text>
|
62
|
-
</View>
|
63
|
-
</View>
|
64
|
-
<View style={styles.titleContainer}>
|
65
|
-
<View style={{ flexDirection: 'row', flex: 8, width: '70%' }}>
|
66
|
-
<Image style={styles.gameIcon} source={{ uri: details.thumbnail }} resizeMode="cover" />
|
67
|
-
<View style={{ marginLeft: 10 }}>
|
68
|
-
<Text style={styles.titleText}>{details.title}</Text>
|
69
|
-
<View style={styles.rewardDetails}>
|
70
|
-
<Image
|
71
|
-
source={{ uri: details.currency.adUnitCurrencyIcon }}
|
72
|
-
resizeMode="contain"
|
73
|
-
style={styles.coinIcon}
|
74
|
-
/>
|
75
|
-
<Text style={styles.points}>{numeral(details.points).format("0.00a").toUpperCase()}</Text>
|
76
|
-
<Text style={styles.points}>{''}{details.currency.adUnitCurrencyName}</Text>
|
77
|
-
<Text style={styles.rewards}>
|
78
|
-
{' '}
|
79
|
-
{details.rewards} {t('dashboard.rewards', { count: details.rewards })}
|
80
|
-
</Text>
|
81
|
-
</View>
|
82
|
-
</View>
|
83
|
-
</View>
|
84
|
-
<TouchableOpacity
|
85
|
-
onPress={() => onCampaignPress && onCampaignPress(details.campaignId)}
|
86
|
-
style={[styles.playButton, { backgroundColor: premiumColor || '#1C90DF' }]}
|
87
|
-
>
|
88
|
-
<Text style={styles.playButtonText}>{t('dashboard.play_button')}</Text>
|
89
|
-
</TouchableOpacity>
|
90
|
-
</View>
|
91
|
-
</View>
|
92
|
-
);
|
93
|
-
};
|
94
|
-
|
95
|
-
const styles = StyleSheet.create({
|
96
|
-
outerContainer: {},
|
97
|
-
bannerContainer: {
|
98
|
-
width: width,
|
99
|
-
height: 190,
|
100
|
-
},
|
101
|
-
bannerImage: {
|
102
|
-
flex: 1,
|
103
|
-
borderRadius: 8,
|
104
|
-
},
|
105
|
-
starContainer: {
|
106
|
-
position: 'absolute',
|
107
|
-
top: 10,
|
108
|
-
left: 10,
|
109
|
-
backgroundColor: 'rgba(0,0,0,0)',
|
110
|
-
},
|
111
|
-
starIcon: {
|
112
|
-
width: 30,
|
113
|
-
height: 30,
|
114
|
-
},
|
115
|
-
index: {
|
116
|
-
position: 'absolute',
|
117
|
-
top: 0,
|
118
|
-
left: 0,
|
119
|
-
right: 0,
|
120
|
-
bottom: 0,
|
121
|
-
textAlign: 'center',
|
122
|
-
textAlignVertical: 'center',
|
123
|
-
color: 'white',
|
124
|
-
fontSize: 14,
|
125
|
-
fontWeight: 'bold',
|
126
|
-
},
|
127
|
-
titleContainer: {
|
128
|
-
flex: 1,
|
129
|
-
width: '91.5%',
|
130
|
-
flexDirection: 'row',
|
131
|
-
justifyContent: 'space-between',
|
132
|
-
alignItems: 'center',
|
133
|
-
padding: 8,
|
134
|
-
backgroundColor: 'rgba(0,0,0,0.5)',
|
135
|
-
position: 'absolute',
|
136
|
-
bottom: 0,
|
137
|
-
left: 0,
|
138
|
-
right: 0,
|
139
|
-
},
|
140
|
-
titleText: {
|
141
|
-
color: 'white',
|
142
|
-
fontSize: 14,
|
143
|
-
fontWeight: 'bold',
|
144
|
-
marginBottom: 4,
|
145
|
-
},
|
146
|
-
gameIcon: {
|
147
|
-
width: 35,
|
148
|
-
height: 35,
|
149
|
-
borderRadius: 8,
|
150
|
-
},
|
151
|
-
coinIcon: {
|
152
|
-
width: 16,
|
153
|
-
height: 16,
|
154
|
-
},
|
155
|
-
points: {
|
156
|
-
fontSize: 12,
|
157
|
-
marginLeft: 4,
|
158
|
-
fontWeight: 'bold',
|
159
|
-
color: 'white',
|
160
|
-
},
|
161
|
-
rewardDetails: {
|
162
|
-
flexDirection: 'row',
|
163
|
-
alignItems: 'center',
|
164
|
-
},
|
165
|
-
rewards: {
|
166
|
-
fontSize: 10,
|
167
|
-
fontStyle: 'italic',
|
168
|
-
color: 'lightgray',
|
169
|
-
},
|
170
|
-
playButton: {
|
171
|
-
paddingHorizontal: 12,
|
172
|
-
paddingVertical: 2,
|
173
|
-
height: 31,
|
174
|
-
borderRadius: 8,
|
175
|
-
alignItems: 'center',
|
176
|
-
justifyContent: 'center',
|
177
|
-
},
|
178
|
-
playButtonText: {
|
179
|
-
fontSize: 16,
|
180
|
-
fontWeight: 'bold',
|
181
|
-
color: 'white',
|
182
|
-
},
|
183
|
-
});
|
184
|
-
|
185
|
-
export default PremiumOption4;
|
package/src/i18n.ts
DELETED
@@ -1,115 +0,0 @@
|
|
1
|
-
import i18n from 'i18next';
|
2
|
-
import { initReactI18next } from 'react-i18next';
|
3
|
-
import AsyncStorage from '@react-native-async-storage/async-storage';
|
4
|
-
|
5
|
-
|
6
|
-
const resources = {
|
7
|
-
en: {
|
8
|
-
translation: {
|
9
|
-
"dashboard": {
|
10
|
-
"suggested_offers": "Suggested Offers",
|
11
|
-
"more_offers": "More Offers",
|
12
|
-
"my_games": "My Games",
|
13
|
-
"play_button": "Play Now",
|
14
|
-
"top_ranking": "Top {{number}}",
|
15
|
-
"rewards_one": "Reward",
|
16
|
-
"rewards_other": "Rewards"
|
17
|
-
},
|
18
|
-
|
19
|
-
|
20
|
-
}
|
21
|
-
},
|
22
|
-
es: {
|
23
|
-
translation: {
|
24
|
-
"dashboard": {
|
25
|
-
"suggested_offers": "Ofertas sugeridas",
|
26
|
-
"more_offers": "Más ofertas",
|
27
|
-
"my_games": "Mis juegos",
|
28
|
-
"play_button": "Jugar Ahora",
|
29
|
-
"top_ranking": "Los mejores {{number}}",
|
30
|
-
"rewards_one": "Recompensa",
|
31
|
-
"rewards_other": "Recompensas"
|
32
|
-
},
|
33
|
-
|
34
|
-
}
|
35
|
-
},
|
36
|
-
id: {
|
37
|
-
translation: {
|
38
|
-
"dashboard": {
|
39
|
-
"suggested_offers": "Penawaran yang Disarankan",
|
40
|
-
"more_offers": "Penawaran Lainnya",
|
41
|
-
"my_games": "Permainan Saya",
|
42
|
-
"play_button": "Mainkan Sekarang",
|
43
|
-
"top_ranking": "Top {{number}}",
|
44
|
-
"rewards_one": "Hadiah",
|
45
|
-
"rewards_other": "Hadiah"
|
46
|
-
},
|
47
|
-
}
|
48
|
-
},
|
49
|
-
in: {
|
50
|
-
translation: {
|
51
|
-
"dashboard": {
|
52
|
-
"suggested_offers": "Penawaran yang Disarankan",
|
53
|
-
"more_offers": "Penawaran Lainnya",
|
54
|
-
"my_games": "Permainan Saya",
|
55
|
-
"play_button": "Mainkan Sekarang",
|
56
|
-
"top_ranking": "Top {{number}}",
|
57
|
-
"rewards_one": "Hadiah",
|
58
|
-
"rewards_other": "Hadiah"
|
59
|
-
},
|
60
|
-
}
|
61
|
-
},
|
62
|
-
ja: {
|
63
|
-
translation: {
|
64
|
-
"dashboard": {
|
65
|
-
"suggested_offers": "おすすめのオファー",
|
66
|
-
"more_offers": "その他のオファー",
|
67
|
-
"my_games": "マイゲーム",
|
68
|
-
"play_button": "プレイ する",
|
69
|
-
"top_ranking": "トップ {{number}}",
|
70
|
-
"rewards_one": "報酬",
|
71
|
-
"rewards_other": "報酬"
|
72
|
-
},
|
73
|
-
}
|
74
|
-
},
|
75
|
-
ko: {
|
76
|
-
translation: {
|
77
|
-
"dashboard": {
|
78
|
-
"suggested_offers": "추천 제안",
|
79
|
-
"more_offers": "더 많은 제안",
|
80
|
-
"my_games": "내 게임",
|
81
|
-
"play_button": "플레이 하고",
|
82
|
-
"top_ranking": "상위 {{number}}",
|
83
|
-
"rewards_one": "보상",
|
84
|
-
"rewards_other": "보상들"
|
85
|
-
},
|
86
|
-
}
|
87
|
-
}
|
88
|
-
};
|
89
|
-
|
90
|
-
const initializeI18n = async () => {
|
91
|
-
try {
|
92
|
-
const language:any = await AsyncStorage.getItem('language');
|
93
|
-
const storedLanguage: string = JSON.parse(language);
|
94
|
-
console.log('storedLanguage', storedLanguage);
|
95
|
-
|
96
|
-
const initialLanguage = storedLanguage;
|
97
|
-
await i18n
|
98
|
-
.use(initReactI18next)
|
99
|
-
.init({
|
100
|
-
resources,
|
101
|
-
fallbackLng: 'en',
|
102
|
-
lng: initialLanguage,
|
103
|
-
debug: __DEV__,
|
104
|
-
interpolation: {
|
105
|
-
escapeValue: false,
|
106
|
-
},
|
107
|
-
});
|
108
|
-
} catch (error) {
|
109
|
-
console.error('Error initializing i18n:', error);
|
110
|
-
}
|
111
|
-
};
|
112
|
-
|
113
|
-
initializeI18n();
|
114
|
-
|
115
|
-
export default i18n;
|