@tyrads.com/tyrads-sdk 3.3.4 → 4.0.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 +161 -19
- package/ios/Tyrads/AcmoConfig.swift +1 -1
- package/ios/Tyrads/InitModel.swift +29 -15
- package/ios/Tyrads/Tyrads.swift +332 -274
- package/ios/Tyrads/WebViewController.swift +10 -17
- package/ios/Tyrads/core/models/TyradsUserInfo.swift +2 -0
- package/ios/Tyrads/core/utils/AcmoKeyNames.swift +1 -0
- package/ios/Tyrads/helpers/device_details.swift +122 -2
- package/ios/Tyrads/pushNotifications/APNsAppDelegateProxy.swift +37 -0
- package/ios/Tyrads/pushNotifications/APNsNotificationListener.swift +14 -0
- package/ios/Tyrads/pushNotifications/APNsNotificationManager.swift +68 -0
- package/ios/Tyrads/pushNotifications/APNsNotificationReceiver.swift +77 -0
- package/ios/Tyrads/pushNotifications/TyradsAPNsSwizzler.mm +179 -0
- package/ios/TyradsSdk-Bridging-Header.h +3 -0
- package/ios/TyradsSdk.mm +12 -1
- package/ios/TyradsSdk.swift +121 -4
- package/lib/commonjs/acmo/core/components/countdown-timer.js +48 -0
- package/lib/commonjs/acmo/core/components/countdown-timer.js.map +1 -0
- package/lib/commonjs/acmo/core/components/snap-carousel.js +86 -0
- package/lib/commonjs/acmo/core/components/snap-carousel.js.map +1 -0
- package/lib/commonjs/acmo/core/constants/api-endpoints.js +18 -0
- package/lib/commonjs/acmo/core/constants/api-endpoints.js.map +1 -0
- package/lib/commonjs/acmo/core/helpers/colors.js +20 -0
- package/lib/commonjs/acmo/core/helpers/colors.js.map +1 -0
- package/lib/commonjs/acmo/core/helpers/logger.js +18 -0
- package/lib/commonjs/acmo/core/helpers/logger.js.map +1 -0
- package/lib/commonjs/acmo/core/helpers/patches.js +7 -0
- package/lib/commonjs/acmo/core/helpers/patches.js.map +1 -0
- package/lib/commonjs/acmo/core/network/http-client.js +91 -0
- package/lib/commonjs/acmo/core/network/http-client.js.map +1 -0
- package/lib/commonjs/acmo/core/network/network-common.js +111 -0
- package/lib/commonjs/acmo/core/network/network-common.js.map +1 -0
- package/lib/commonjs/acmo/core/services/localization_service.js +7 -13
- package/lib/commonjs/acmo/core/services/localization_service.js.map +1 -1
- package/lib/commonjs/acmo/core/types/activated-campaings.d.js +2 -0
- package/lib/commonjs/acmo/core/types/activated-campaings.d.js.map +1 -0
- package/lib/commonjs/acmo/core/tyrads-sdk-core.js +203 -0
- package/lib/commonjs/acmo/core/tyrads-sdk-core.js.map +1 -0
- package/lib/commonjs/acmo/modules/inapp-notifications/components/gradient_card.js +98 -0
- package/lib/commonjs/acmo/modules/inapp-notifications/components/gradient_card.js.map +1 -0
- package/lib/commonjs/acmo/modules/inapp-notifications/components/modal-wrapper.js +55 -0
- package/lib/commonjs/acmo/modules/inapp-notifications/components/modal-wrapper.js.map +1 -0
- package/lib/commonjs/acmo/modules/inapp-notifications/controller.js +141 -0
- package/lib/commonjs/acmo/modules/inapp-notifications/controller.js.map +1 -0
- package/lib/commonjs/acmo/modules/inapp-notifications/currency-sales/currency-sales-notif.js +183 -0
- package/lib/commonjs/acmo/modules/inapp-notifications/currency-sales/currency-sales-notif.js.map +1 -0
- package/lib/commonjs/acmo/modules/inapp-notifications/inapp-notification-host.js +37 -0
- package/lib/commonjs/acmo/modules/inapp-notifications/inapp-notification-host.js.map +1 -0
- package/lib/commonjs/acmo/modules/inapp-notifications/inapp-notification-manager.js +39 -0
- package/lib/commonjs/acmo/modules/inapp-notifications/inapp-notification-manager.js.map +1 -0
- package/lib/commonjs/acmo/modules/inapp-notifications/limited-time-offer/components/limited-time-offer-card.js +206 -0
- package/lib/commonjs/acmo/modules/inapp-notifications/limited-time-offer/components/limited-time-offer-card.js.map +1 -0
- package/lib/commonjs/acmo/modules/inapp-notifications/limited-time-offer/limited-time-notif.js +155 -0
- package/lib/commonjs/acmo/modules/inapp-notifications/limited-time-offer/limited-time-notif.js.map +1 -0
- package/lib/commonjs/acmo/modules/inapp-notifications/repository.js +52 -0
- package/lib/commonjs/acmo/modules/inapp-notifications/repository.js.map +1 -0
- package/lib/commonjs/acmo/modules/inapp-notifications/tyrads-global-host.js +37 -0
- package/lib/commonjs/acmo/modules/inapp-notifications/tyrads-global-host.js.map +1 -0
- package/lib/commonjs/acmo/modules/premium-widgets/components/active_offers_button.js.map +1 -0
- package/lib/commonjs/acmo/modules/{dashboard → premium-widgets}/components/custom_card.js +1 -2
- package/lib/commonjs/acmo/modules/premium-widgets/components/custom_card.js.map +1 -0
- package/lib/commonjs/acmo/modules/{dashboard → premium-widgets}/components/custom_scroller.js +20 -11
- package/lib/commonjs/acmo/modules/premium-widgets/components/custom_scroller.js.map +1 -0
- package/lib/commonjs/acmo/modules/premium-widgets/components/custom_shimmer.js.map +1 -0
- package/lib/commonjs/acmo/modules/{dashboard → premium-widgets}/components/offer_card.js +12 -12
- package/lib/commonjs/acmo/modules/premium-widgets/components/offer_card.js.map +1 -0
- package/lib/commonjs/acmo/modules/{dashboard → premium-widgets}/components/offer_list_item.js +3 -3
- package/lib/commonjs/acmo/modules/premium-widgets/components/offer_list_item.js.map +1 -0
- package/lib/commonjs/acmo/modules/premium-widgets/components/premium_empty_widget.js.map +1 -0
- package/lib/commonjs/acmo/modules/premium-widgets/components/premium_header.js.map +1 -0
- package/lib/commonjs/acmo/modules/{dashboard → premium-widgets}/components/premium_loading.js +3 -3
- package/lib/commonjs/acmo/modules/premium-widgets/components/premium_loading.js.map +1 -0
- package/lib/commonjs/acmo/modules/premium-widgets/controller.js +30 -0
- package/lib/commonjs/acmo/modules/premium-widgets/controller.js.map +1 -0
- package/lib/commonjs/acmo/modules/{dashboard/top_offers.js → premium-widgets/premium_offers_widget.js} +67 -30
- package/lib/commonjs/acmo/modules/premium-widgets/premium_offers_widget.js.map +1 -0
- package/lib/commonjs/acmo/modules/premium-widgets/premium_offers_widget_wrapper.js +49 -0
- package/lib/commonjs/acmo/modules/premium-widgets/premium_offers_widget_wrapper.js.map +1 -0
- package/lib/commonjs/acmo/modules/premium-widgets/repository.js +103 -0
- package/lib/commonjs/acmo/modules/premium-widgets/repository.js.map +1 -0
- package/lib/commonjs/acmo/modules/push-notifications/apns-manager.js +227 -0
- package/lib/commonjs/acmo/modules/push-notifications/apns-manager.js.map +1 -0
- package/lib/commonjs/acmo/modules/push-notifications/fcm-manager.js +148 -0
- package/lib/commonjs/acmo/modules/push-notifications/fcm-manager.js.map +1 -0
- package/lib/commonjs/acmo_config.js +6 -5
- package/lib/commonjs/acmo_config.js.map +1 -1
- package/lib/commonjs/assets/images/alarm-clock.png +0 -0
- package/lib/commonjs/assets/images/circle-x.png +0 -0
- package/lib/commonjs/assets/images/coin.png +0 -0
- package/lib/commonjs/index.js +33 -106
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/acmo/core/components/countdown-timer.js +42 -0
- package/lib/module/acmo/core/components/countdown-timer.js.map +1 -0
- package/lib/module/acmo/core/components/snap-carousel.js +81 -0
- package/lib/module/acmo/core/components/snap-carousel.js.map +1 -0
- package/lib/module/acmo/core/constants/api-endpoints.js +14 -0
- package/lib/module/acmo/core/constants/api-endpoints.js.map +1 -0
- package/lib/module/acmo/core/helpers/colors.js +15 -0
- package/lib/module/acmo/core/helpers/colors.js.map +1 -0
- package/lib/module/acmo/core/helpers/logger.js +14 -0
- package/lib/module/acmo/core/helpers/logger.js.map +1 -0
- package/lib/module/acmo/core/helpers/patches.js +7 -0
- package/lib/module/acmo/core/helpers/patches.js.map +1 -0
- package/lib/module/acmo/core/network/http-client.js +86 -0
- package/lib/module/acmo/core/network/http-client.js.map +1 -0
- package/lib/module/acmo/core/network/network-common.js +106 -0
- package/lib/module/acmo/core/network/network-common.js.map +1 -0
- package/lib/module/acmo/core/services/localization_service.js +7 -13
- package/lib/module/acmo/core/services/localization_service.js.map +1 -1
- package/lib/module/acmo/core/types/activated-campaings.d.js +2 -0
- package/lib/module/acmo/core/types/activated-campaings.d.js.map +1 -0
- package/lib/module/acmo/core/tyrads-sdk-core.js +197 -0
- package/lib/module/acmo/core/tyrads-sdk-core.js.map +1 -0
- package/lib/module/acmo/modules/inapp-notifications/components/gradient_card.js +92 -0
- package/lib/module/acmo/modules/inapp-notifications/components/gradient_card.js.map +1 -0
- package/lib/module/acmo/modules/inapp-notifications/components/modal-wrapper.js +49 -0
- package/lib/module/acmo/modules/inapp-notifications/components/modal-wrapper.js.map +1 -0
- package/lib/module/acmo/modules/inapp-notifications/controller.js +136 -0
- package/lib/module/acmo/modules/inapp-notifications/controller.js.map +1 -0
- package/lib/module/acmo/modules/inapp-notifications/currency-sales/currency-sales-notif.js +176 -0
- package/lib/module/acmo/modules/inapp-notifications/currency-sales/currency-sales-notif.js.map +1 -0
- package/lib/module/acmo/modules/inapp-notifications/inapp-notification-host.js +32 -0
- package/lib/module/acmo/modules/inapp-notifications/inapp-notification-host.js.map +1 -0
- package/lib/module/acmo/modules/inapp-notifications/inapp-notification-manager.js +35 -0
- package/lib/module/acmo/modules/inapp-notifications/inapp-notification-manager.js.map +1 -0
- package/lib/module/acmo/modules/inapp-notifications/limited-time-offer/components/limited-time-offer-card.js +200 -0
- package/lib/module/acmo/modules/inapp-notifications/limited-time-offer/components/limited-time-offer-card.js.map +1 -0
- package/lib/module/acmo/modules/inapp-notifications/limited-time-offer/limited-time-notif.js +149 -0
- package/lib/module/acmo/modules/inapp-notifications/limited-time-offer/limited-time-notif.js.map +1 -0
- package/lib/module/acmo/modules/inapp-notifications/repository.js +47 -0
- package/lib/module/acmo/modules/inapp-notifications/repository.js.map +1 -0
- package/lib/module/acmo/modules/inapp-notifications/tyrads-global-host.js +32 -0
- package/lib/module/acmo/modules/inapp-notifications/tyrads-global-host.js.map +1 -0
- package/lib/module/acmo/modules/premium-widgets/components/active_offers_button.js.map +1 -0
- package/lib/module/acmo/modules/{dashboard → premium-widgets}/components/custom_card.js +1 -2
- package/lib/module/acmo/modules/premium-widgets/components/custom_card.js.map +1 -0
- package/lib/module/acmo/modules/{dashboard → premium-widgets}/components/custom_scroller.js +20 -11
- package/lib/module/acmo/modules/premium-widgets/components/custom_scroller.js.map +1 -0
- package/lib/module/acmo/modules/premium-widgets/components/custom_shimmer.js.map +1 -0
- package/lib/module/acmo/modules/{dashboard → premium-widgets}/components/offer_card.js +12 -12
- package/lib/module/acmo/modules/premium-widgets/components/offer_card.js.map +1 -0
- package/lib/module/acmo/modules/{dashboard → premium-widgets}/components/offer_list_item.js +3 -3
- package/lib/module/acmo/modules/premium-widgets/components/offer_list_item.js.map +1 -0
- package/lib/module/acmo/modules/premium-widgets/components/premium_empty_widget.js.map +1 -0
- package/lib/module/acmo/modules/premium-widgets/components/premium_header.js.map +1 -0
- package/lib/module/acmo/modules/{dashboard → premium-widgets}/components/premium_loading.js +1 -1
- package/lib/module/acmo/modules/premium-widgets/components/premium_loading.js.map +1 -0
- package/lib/module/acmo/modules/premium-widgets/controller.js +25 -0
- package/lib/module/acmo/modules/premium-widgets/controller.js.map +1 -0
- package/lib/module/acmo/modules/{dashboard/top_offers.js → premium-widgets/premium_offers_widget.js} +69 -32
- package/lib/module/acmo/modules/premium-widgets/premium_offers_widget.js.map +1 -0
- package/lib/module/acmo/modules/premium-widgets/premium_offers_widget_wrapper.js +41 -0
- package/lib/module/acmo/modules/premium-widgets/premium_offers_widget_wrapper.js.map +1 -0
- package/lib/module/acmo/modules/premium-widgets/repository.js +98 -0
- package/lib/module/acmo/modules/premium-widgets/repository.js.map +1 -0
- package/lib/module/acmo/modules/push-notifications/apns-manager.js +222 -0
- package/lib/module/acmo/modules/push-notifications/apns-manager.js.map +1 -0
- package/lib/module/acmo/modules/push-notifications/fcm-manager.js +143 -0
- package/lib/module/acmo/modules/push-notifications/fcm-manager.js.map +1 -0
- package/lib/module/acmo_config.js +6 -5
- package/lib/module/acmo_config.js.map +1 -1
- package/lib/module/assets/images/alarm-clock.png +0 -0
- package/lib/module/assets/images/circle-x.png +0 -0
- package/lib/module/assets/images/coin.png +0 -0
- package/lib/module/index.js +16 -106
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/commonjs/src/acmo/core/components/countdown-timer.d.ts +8 -0
- package/lib/typescript/commonjs/src/acmo/core/components/countdown-timer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/core/components/snap-carousel.d.ts +26 -0
- package/lib/typescript/commonjs/src/acmo/core/components/snap-carousel.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/core/constants/api-endpoints.d.ts +12 -0
- package/lib/typescript/commonjs/src/acmo/core/constants/api-endpoints.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/core/helpers/colors.d.ts +2 -0
- package/lib/typescript/commonjs/src/acmo/core/helpers/colors.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/core/helpers/logger.d.ts +6 -0
- package/lib/typescript/commonjs/src/acmo/core/helpers/logger.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/core/network/http-client.d.ts +28 -0
- package/lib/typescript/commonjs/src/acmo/core/network/http-client.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/core/network/network-common.d.ts +13 -0
- package/lib/typescript/commonjs/src/acmo/core/network/network-common.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/core/services/localization_service.d.ts +0 -1
- package/lib/typescript/commonjs/src/acmo/core/services/localization_service.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/acmo/core/types/external_types.d.ts +5 -0
- package/lib/typescript/commonjs/src/acmo/core/types/external_types.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/acmo/core/tyrads-sdk-core.d.ts +46 -0
- package/lib/typescript/commonjs/src/acmo/core/tyrads-sdk-core.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/components/gradient_card.d.ts +17 -0
- package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/components/gradient_card.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/components/modal-wrapper.d.ts +10 -0
- package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/components/modal-wrapper.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/controller.d.ts +22 -0
- package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/controller.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/currency-sales/currency-sales-notif.d.ts +6 -0
- package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/currency-sales/currency-sales-notif.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/inapp-notification-host.d.ts +7 -0
- package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/inapp-notification-host.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/inapp-notification-manager.d.ts +14 -0
- package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/inapp-notification-manager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/limited-time-offer/components/limited-time-offer-card.d.ts +4 -0
- package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/limited-time-offer/components/limited-time-offer-card.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/limited-time-offer/limited-time-notif.d.ts +7 -0
- package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/limited-time-offer/limited-time-notif.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/repository.d.ts +8 -0
- package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/repository.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/tyrads-global-host.d.ts +6 -0
- package/lib/typescript/commonjs/src/acmo/modules/inapp-notifications/tyrads-global-host.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/components/active_offers_button.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/components/custom_card.d.ts.map +1 -0
- package/lib/typescript/{module/src/acmo/modules/dashboard → commonjs/src/acmo/modules/premium-widgets}/components/custom_scroller.d.ts +3 -0
- package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/components/custom_scroller.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/components/custom_shimmer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/components/offer_card.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/components/offer_list_item.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/components/premium_empty_widget.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/components/premium_header.d.ts.map +1 -0
- package/lib/typescript/{module/src/acmo/modules/dashboard → commonjs/src/acmo/modules/premium-widgets}/components/premium_loading.d.ts +1 -1
- package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/components/premium_loading.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/controller.d.ts +14 -0
- package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/controller.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/{dashboard/top_offers.d.ts → premium-widgets/premium_offers_widget.d.ts} +3 -3
- package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/premium_offers_widget.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/premium_offers_widget_wrapper.d.ts +9 -0
- package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/premium_offers_widget_wrapper.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/repository.d.ts +13 -0
- package/lib/typescript/commonjs/src/acmo/modules/premium-widgets/repository.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/push-notifications/apns-manager.d.ts +40 -0
- package/lib/typescript/commonjs/src/acmo/modules/push-notifications/apns-manager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo/modules/push-notifications/fcm-manager.d.ts +32 -0
- package/lib/typescript/commonjs/src/acmo/modules/push-notifications/fcm-manager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/acmo_config.d.ts +1 -0
- package/lib/typescript/commonjs/src/acmo_config.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +5 -11
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/acmo/core/components/countdown-timer.d.ts +8 -0
- package/lib/typescript/module/src/acmo/core/components/countdown-timer.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/core/components/snap-carousel.d.ts +26 -0
- package/lib/typescript/module/src/acmo/core/components/snap-carousel.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/core/constants/api-endpoints.d.ts +12 -0
- package/lib/typescript/module/src/acmo/core/constants/api-endpoints.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/core/helpers/colors.d.ts +2 -0
- package/lib/typescript/module/src/acmo/core/helpers/colors.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/core/helpers/logger.d.ts +6 -0
- package/lib/typescript/module/src/acmo/core/helpers/logger.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/core/network/http-client.d.ts +28 -0
- package/lib/typescript/module/src/acmo/core/network/http-client.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/core/network/network-common.d.ts +13 -0
- package/lib/typescript/module/src/acmo/core/network/network-common.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/core/services/localization_service.d.ts +0 -1
- package/lib/typescript/module/src/acmo/core/services/localization_service.d.ts.map +1 -1
- package/lib/typescript/module/src/acmo/core/types/external_types.d.ts +5 -0
- package/lib/typescript/module/src/acmo/core/types/external_types.d.ts.map +1 -1
- package/lib/typescript/module/src/acmo/core/tyrads-sdk-core.d.ts +46 -0
- package/lib/typescript/module/src/acmo/core/tyrads-sdk-core.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/inapp-notifications/components/gradient_card.d.ts +17 -0
- package/lib/typescript/module/src/acmo/modules/inapp-notifications/components/gradient_card.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/inapp-notifications/components/modal-wrapper.d.ts +10 -0
- package/lib/typescript/module/src/acmo/modules/inapp-notifications/components/modal-wrapper.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/inapp-notifications/controller.d.ts +22 -0
- package/lib/typescript/module/src/acmo/modules/inapp-notifications/controller.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/inapp-notifications/currency-sales/currency-sales-notif.d.ts +6 -0
- package/lib/typescript/module/src/acmo/modules/inapp-notifications/currency-sales/currency-sales-notif.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/inapp-notifications/inapp-notification-host.d.ts +7 -0
- package/lib/typescript/module/src/acmo/modules/inapp-notifications/inapp-notification-host.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/inapp-notifications/inapp-notification-manager.d.ts +14 -0
- package/lib/typescript/module/src/acmo/modules/inapp-notifications/inapp-notification-manager.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/inapp-notifications/limited-time-offer/components/limited-time-offer-card.d.ts +4 -0
- package/lib/typescript/module/src/acmo/modules/inapp-notifications/limited-time-offer/components/limited-time-offer-card.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/inapp-notifications/limited-time-offer/limited-time-notif.d.ts +7 -0
- package/lib/typescript/module/src/acmo/modules/inapp-notifications/limited-time-offer/limited-time-notif.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/inapp-notifications/repository.d.ts +8 -0
- package/lib/typescript/module/src/acmo/modules/inapp-notifications/repository.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/inapp-notifications/tyrads-global-host.d.ts +6 -0
- package/lib/typescript/module/src/acmo/modules/inapp-notifications/tyrads-global-host.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/premium-widgets/components/active_offers_button.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/premium-widgets/components/custom_card.d.ts.map +1 -0
- package/lib/typescript/{commonjs/src/acmo/modules/dashboard → module/src/acmo/modules/premium-widgets}/components/custom_scroller.d.ts +3 -0
- package/lib/typescript/module/src/acmo/modules/premium-widgets/components/custom_scroller.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/premium-widgets/components/custom_shimmer.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/premium-widgets/components/offer_card.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/premium-widgets/components/offer_list_item.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/premium-widgets/components/premium_empty_widget.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/premium-widgets/components/premium_header.d.ts.map +1 -0
- package/lib/typescript/{commonjs/src/acmo/modules/dashboard → module/src/acmo/modules/premium-widgets}/components/premium_loading.d.ts +1 -1
- package/lib/typescript/module/src/acmo/modules/premium-widgets/components/premium_loading.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/premium-widgets/controller.d.ts +14 -0
- package/lib/typescript/module/src/acmo/modules/premium-widgets/controller.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/{dashboard/top_offers.d.ts → premium-widgets/premium_offers_widget.d.ts} +3 -3
- package/lib/typescript/module/src/acmo/modules/premium-widgets/premium_offers_widget.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/premium-widgets/premium_offers_widget_wrapper.d.ts +9 -0
- package/lib/typescript/module/src/acmo/modules/premium-widgets/premium_offers_widget_wrapper.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/premium-widgets/repository.d.ts +13 -0
- package/lib/typescript/module/src/acmo/modules/premium-widgets/repository.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/push-notifications/apns-manager.d.ts +40 -0
- package/lib/typescript/module/src/acmo/modules/push-notifications/apns-manager.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo/modules/push-notifications/fcm-manager.d.ts +32 -0
- package/lib/typescript/module/src/acmo/modules/push-notifications/fcm-manager.d.ts.map +1 -0
- package/lib/typescript/module/src/acmo_config.d.ts +1 -0
- package/lib/typescript/module/src/acmo_config.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +5 -11
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/package.json +5 -3
- package/readme.md +27 -14
- package/src/acmo/core/components/countdown-timer.tsx +52 -0
- package/src/acmo/core/components/snap-carousel.tsx +106 -0
- package/src/acmo/core/constants/api-endpoints.ts +12 -0
- package/src/acmo/core/helpers/colors.ts +16 -0
- package/src/acmo/core/helpers/logger.ts +11 -0
- package/src/acmo/core/helpers/patches.js +6 -0
- package/src/acmo/core/network/http-client.ts +89 -0
- package/src/acmo/core/network/network-common.ts +128 -0
- package/src/acmo/core/services/localization_service.ts +7 -14
- package/src/acmo/core/types/activated-campaings.d.ts +101 -0
- package/src/acmo/core/types/external_types.ts +7 -1
- package/src/acmo/core/types/types.d.ts +112 -76
- package/src/acmo/core/tyrads-sdk-core.tsx +256 -0
- package/src/acmo/modules/inapp-notifications/components/gradient_card.tsx +87 -0
- package/src/acmo/modules/inapp-notifications/components/modal-wrapper.tsx +59 -0
- package/src/acmo/modules/inapp-notifications/controller.ts +183 -0
- package/src/acmo/modules/inapp-notifications/currency-sales/currency-sales-notif.tsx +164 -0
- package/src/acmo/modules/inapp-notifications/inapp-notification-host.tsx +32 -0
- package/src/acmo/modules/inapp-notifications/inapp-notification-manager.ts +40 -0
- package/src/acmo/modules/inapp-notifications/limited-time-offer/components/limited-time-offer-card.tsx +188 -0
- package/src/acmo/modules/inapp-notifications/limited-time-offer/limited-time-notif.tsx +149 -0
- package/src/acmo/modules/inapp-notifications/repository.ts +49 -0
- package/src/acmo/modules/inapp-notifications/tyrads-global-host.tsx +25 -0
- package/src/acmo/modules/{dashboard → premium-widgets}/components/custom_card.tsx +1 -2
- package/src/acmo/modules/{dashboard → premium-widgets}/components/custom_scroller.tsx +24 -10
- package/src/acmo/modules/{dashboard → premium-widgets}/components/offer_card.tsx +11 -11
- package/src/acmo/modules/{dashboard → premium-widgets}/components/offer_list_item.tsx +3 -3
- package/src/acmo/modules/{dashboard → premium-widgets}/components/premium_loading.tsx +1 -1
- package/src/acmo/modules/premium-widgets/controller.ts +39 -0
- package/src/acmo/modules/{dashboard/top_offers.tsx → premium-widgets/premium_offers_widget.tsx} +67 -45
- package/src/acmo/modules/premium-widgets/premium_offers_widget_wrapper.tsx +39 -0
- package/src/acmo/modules/premium-widgets/repository.ts +107 -0
- package/src/acmo/modules/push-notifications/apns-manager.ts +254 -0
- package/src/acmo/modules/push-notifications/fcm-manager.ts +162 -0
- package/src/acmo_config.ts +6 -5
- package/src/assets/images/alarm-clock.png +0 -0
- package/src/assets/images/circle-x.png +0 -0
- package/src/assets/images/coin.png +0 -0
- package/src/index.tsx +19 -127
- package/ios/Tyrads/user/AcmoUserUpdatePage.swift +0 -302
- package/ios/Tyrads/user/AcmoUsersUpdateController.swift +0 -26
- package/ios/Tyrads/user/Repository.swift +0 -89
- package/lib/commonjs/acmo/core/helpers/native_methods.js +0 -48
- package/lib/commonjs/acmo/core/helpers/native_methods.js.map +0 -1
- package/lib/commonjs/acmo/modules/dashboard/components/active_offers_button.js.map +0 -1
- package/lib/commonjs/acmo/modules/dashboard/components/custom_card.js.map +0 -1
- package/lib/commonjs/acmo/modules/dashboard/components/custom_scroller.js.map +0 -1
- package/lib/commonjs/acmo/modules/dashboard/components/custom_shimmer.js.map +0 -1
- package/lib/commonjs/acmo/modules/dashboard/components/offer_card.js.map +0 -1
- package/lib/commonjs/acmo/modules/dashboard/components/offer_list_item.js.map +0 -1
- package/lib/commonjs/acmo/modules/dashboard/components/premium_empty_widget.js.map +0 -1
- package/lib/commonjs/acmo/modules/dashboard/components/premium_header.js.map +0 -1
- package/lib/commonjs/acmo/modules/dashboard/components/premium_loading.js.map +0 -1
- package/lib/commonjs/acmo/modules/dashboard/repository.js +0 -147
- package/lib/commonjs/acmo/modules/dashboard/repository.js.map +0 -1
- package/lib/commonjs/acmo/modules/dashboard/top_offers.js.map +0 -1
- package/lib/module/acmo/core/helpers/native_methods.js +0 -44
- package/lib/module/acmo/core/helpers/native_methods.js.map +0 -1
- package/lib/module/acmo/modules/dashboard/components/active_offers_button.js.map +0 -1
- package/lib/module/acmo/modules/dashboard/components/custom_card.js.map +0 -1
- package/lib/module/acmo/modules/dashboard/components/custom_scroller.js.map +0 -1
- package/lib/module/acmo/modules/dashboard/components/custom_shimmer.js.map +0 -1
- package/lib/module/acmo/modules/dashboard/components/offer_card.js.map +0 -1
- package/lib/module/acmo/modules/dashboard/components/offer_list_item.js.map +0 -1
- package/lib/module/acmo/modules/dashboard/components/premium_empty_widget.js.map +0 -1
- package/lib/module/acmo/modules/dashboard/components/premium_header.js.map +0 -1
- package/lib/module/acmo/modules/dashboard/components/premium_loading.js.map +0 -1
- package/lib/module/acmo/modules/dashboard/repository.js +0 -140
- package/lib/module/acmo/modules/dashboard/repository.js.map +0 -1
- package/lib/module/acmo/modules/dashboard/top_offers.js.map +0 -1
- package/lib/typescript/commonjs/src/acmo/core/helpers/native_methods.d.ts +0 -10
- package/lib/typescript/commonjs/src/acmo/core/helpers/native_methods.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/active_offers_button.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/custom_card.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/custom_scroller.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/custom_shimmer.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_card.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/offer_list_item.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_empty_widget.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_header.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/components/premium_loading.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/repository.d.ts +0 -3
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/repository.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/acmo/modules/dashboard/top_offers.d.ts.map +0 -1
- package/lib/typescript/module/src/acmo/core/helpers/native_methods.d.ts +0 -10
- package/lib/typescript/module/src/acmo/core/helpers/native_methods.d.ts.map +0 -1
- package/lib/typescript/module/src/acmo/modules/dashboard/components/active_offers_button.d.ts.map +0 -1
- package/lib/typescript/module/src/acmo/modules/dashboard/components/custom_card.d.ts.map +0 -1
- package/lib/typescript/module/src/acmo/modules/dashboard/components/custom_scroller.d.ts.map +0 -1
- package/lib/typescript/module/src/acmo/modules/dashboard/components/custom_shimmer.d.ts.map +0 -1
- package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_card.d.ts.map +0 -1
- package/lib/typescript/module/src/acmo/modules/dashboard/components/offer_list_item.d.ts.map +0 -1
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_empty_widget.d.ts.map +0 -1
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_header.d.ts.map +0 -1
- package/lib/typescript/module/src/acmo/modules/dashboard/components/premium_loading.d.ts.map +0 -1
- package/lib/typescript/module/src/acmo/modules/dashboard/repository.d.ts +0 -3
- package/lib/typescript/module/src/acmo/modules/dashboard/repository.d.ts.map +0 -1
- package/lib/typescript/module/src/acmo/modules/dashboard/top_offers.d.ts.map +0 -1
- package/src/acmo/core/helpers/native_methods.ts +0 -59
- package/src/acmo/modules/dashboard/repository.ts +0 -170
- /package/lib/commonjs/acmo/modules/{dashboard → premium-widgets}/components/active_offers_button.js +0 -0
- /package/lib/commonjs/acmo/modules/{dashboard → premium-widgets}/components/custom_shimmer.js +0 -0
- /package/lib/commonjs/acmo/modules/{dashboard → premium-widgets}/components/premium_empty_widget.js +0 -0
- /package/lib/commonjs/acmo/modules/{dashboard → premium-widgets}/components/premium_header.js +0 -0
- /package/lib/module/acmo/modules/{dashboard → premium-widgets}/components/active_offers_button.js +0 -0
- /package/lib/module/acmo/modules/{dashboard → premium-widgets}/components/custom_shimmer.js +0 -0
- /package/lib/module/acmo/modules/{dashboard → premium-widgets}/components/premium_empty_widget.js +0 -0
- /package/lib/module/acmo/modules/{dashboard → premium-widgets}/components/premium_header.js +0 -0
- /package/lib/typescript/commonjs/src/acmo/modules/{dashboard → premium-widgets}/components/active_offers_button.d.ts +0 -0
- /package/lib/typescript/commonjs/src/acmo/modules/{dashboard → premium-widgets}/components/custom_card.d.ts +0 -0
- /package/lib/typescript/commonjs/src/acmo/modules/{dashboard → premium-widgets}/components/custom_shimmer.d.ts +0 -0
- /package/lib/typescript/commonjs/src/acmo/modules/{dashboard → premium-widgets}/components/offer_card.d.ts +0 -0
- /package/lib/typescript/commonjs/src/acmo/modules/{dashboard → premium-widgets}/components/offer_list_item.d.ts +0 -0
- /package/lib/typescript/commonjs/src/acmo/modules/{dashboard → premium-widgets}/components/premium_empty_widget.d.ts +0 -0
- /package/lib/typescript/commonjs/src/acmo/modules/{dashboard → premium-widgets}/components/premium_header.d.ts +0 -0
- /package/lib/typescript/module/src/acmo/modules/{dashboard → premium-widgets}/components/active_offers_button.d.ts +0 -0
- /package/lib/typescript/module/src/acmo/modules/{dashboard → premium-widgets}/components/custom_card.d.ts +0 -0
- /package/lib/typescript/module/src/acmo/modules/{dashboard → premium-widgets}/components/custom_shimmer.d.ts +0 -0
- /package/lib/typescript/module/src/acmo/modules/{dashboard → premium-widgets}/components/offer_card.d.ts +0 -0
- /package/lib/typescript/module/src/acmo/modules/{dashboard → premium-widgets}/components/offer_list_item.d.ts +0 -0
- /package/lib/typescript/module/src/acmo/modules/{dashboard → premium-widgets}/components/premium_empty_widget.d.ts +0 -0
- /package/lib/typescript/module/src/acmo/modules/{dashboard → premium-widgets}/components/premium_header.d.ts +0 -0
- /package/src/acmo/modules/{dashboard → premium-widgets}/components/active_offers_button.tsx +0 -0
- /package/src/acmo/modules/{dashboard → premium-widgets}/components/custom_shimmer.tsx +0 -0
- /package/src/acmo/modules/{dashboard → premium-widgets}/components/premium_empty_widget.tsx +0 -0
- /package/src/acmo/modules/{dashboard → premium-widgets}/components/premium_header.tsx +0 -0
package/src/index.tsx
CHANGED
|
@@ -1,92 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AppRegistry } from 'react-native';
|
|
2
|
+
import TyradsSdkCore from './acmo/core/tyrads-sdk-core';
|
|
3
|
+
import TyradsGlobalHost from './acmo/modules/inapp-notifications/tyrads-global-host';
|
|
4
|
+
import type { TyradsConfig, TyradsMediaSourceInfo, TyradsUserInfo } from './acmo/core/types/external_types'
|
|
2
5
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { changeProviderLanguage, LocalizationProvider, updateProviderLanguage } from './acmo/modules/localization/localization_context';
|
|
7
|
-
import PremiumWidgetsLoading from './acmo/modules/dashboard/components/premium_loading';
|
|
8
|
-
import TyradsNativeMethods from './acmo/core/helpers/native_methods';
|
|
9
|
-
import type { TyradsMediaSourceInfo, TyradsUserInfo } from './acmo/core/types/external_types';
|
|
10
|
-
export type { TyradsMediaSourceInfo, TyradsUserInfo } from './acmo/core/types/external_types'
|
|
6
|
+
AppRegistry.setWrapperComponentProvider(() => (props) => (
|
|
7
|
+
<TyradsGlobalHost {...props} />
|
|
8
|
+
));
|
|
11
9
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const LINKING_ERROR =
|
|
16
|
-
`The package 'tyrads-sdk' doesn't seem to be linked. Make sure: \n\n` +
|
|
17
|
-
Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
|
|
18
|
-
'- You rebuilt the app after installing the package\n' +
|
|
19
|
-
'- You are not using Expo Go\n';
|
|
20
|
-
|
|
21
|
-
const TyradsSdk = NativeModules.TyradsSdk
|
|
22
|
-
? NativeModules.TyradsSdk
|
|
23
|
-
: new Proxy(
|
|
24
|
-
{},
|
|
25
|
-
{
|
|
26
|
-
get() {
|
|
27
|
-
throw new Error(LINKING_ERROR);
|
|
28
|
-
},
|
|
29
|
-
}
|
|
30
|
-
);
|
|
31
|
-
|
|
32
|
-
const tyradsEmitter = new NativeEventEmitter(TyradsSdk);
|
|
33
|
-
|
|
34
|
-
let languageChangedSubscription: any = null;
|
|
10
|
+
export type { TyradsConfig, TyradsMediaSourceInfo, TyradsUserInfo } from './acmo/core/types/external_types'
|
|
11
|
+
export { PremiumWidgetStyles } from './acmo/modules/premium-widgets/premium_offers_widget';
|
|
12
|
+
export { PremiumOffersWidget, PremiumOffersWidgetLoading } from './acmo/modules/premium-widgets/premium_offers_widget_wrapper';
|
|
35
13
|
|
|
36
14
|
const Tyrads = {
|
|
37
|
-
init: async (apiKey: string, apiSecret: string, encKey?: string, engagementId?: string, mediaSourceInfo?: TyradsMediaSourceInfo, userInfo?: TyradsUserInfo,) => {
|
|
38
|
-
|
|
39
|
-
if (mediaSourceInfo) {
|
|
40
|
-
TyradsNativeMethods.setMediaSourceInfo(mediaSourceInfo);
|
|
41
|
-
}
|
|
42
|
-
if (userInfo) {
|
|
43
|
-
TyradsNativeMethods.setUserInfo(userInfo);
|
|
44
|
-
}
|
|
45
|
-
const data = await TyradsSdk.init(apiKey, apiSecret, encKey, engagementId);
|
|
46
|
-
|
|
47
|
-
await saveData("credentials", {
|
|
48
|
-
'X-API-Key': apiKey,
|
|
49
|
-
'X-API-Secret': apiSecret
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
let languageCode = "en";
|
|
53
|
-
try {
|
|
54
|
-
const parsed = typeof data === "string" ? JSON.parse(data) : data;
|
|
55
|
-
if (parsed?.languageCode) {
|
|
56
|
-
languageCode = parsed.languageCode;
|
|
57
|
-
}
|
|
58
|
-
} catch { }
|
|
59
|
-
|
|
60
|
-
TyradsSdk.startObserving();
|
|
61
|
-
languageChangedSubscription?.remove();
|
|
62
|
-
languageChangedSubscription = tyradsEmitter.addListener(
|
|
63
|
-
'LanguageChanged',
|
|
64
|
-
async (lang: string) => {
|
|
65
|
-
console.log('LanguageChanged event from Android SDK:', lang);
|
|
66
|
-
await changeProviderLanguage(lang);
|
|
67
|
-
}
|
|
68
|
-
);
|
|
69
|
-
|
|
70
|
-
await saveData("language", languageCode);
|
|
71
|
-
await Localization.getInstance().init(languageCode);
|
|
72
|
-
await updateProviderLanguage(languageCode);
|
|
73
|
-
|
|
74
|
-
return data;
|
|
15
|
+
init: async (apiKey: string, apiSecret: string, encKey?: string, engagementId?: string, placementId?: string, mediaSourceInfo?: TyradsMediaSourceInfo, userInfo?: TyradsUserInfo, config?: TyradsConfig) => {
|
|
16
|
+
return await TyradsSdkCore.init(apiKey, apiSecret, encKey, engagementId, placementId, mediaSourceInfo, userInfo, config);
|
|
75
17
|
},
|
|
18
|
+
|
|
76
19
|
loginUser: async (userId: string) => {
|
|
77
|
-
|
|
78
|
-
const data = await TyradsSdk.loginUser(userId);
|
|
79
|
-
if (typeof data === "object") {
|
|
80
|
-
await saveData('apiHeaders', JSON.stringify(data));
|
|
81
|
-
await saveData('language', data.languageCode);
|
|
82
|
-
} else if (typeof data === "string") {
|
|
83
|
-
await saveData('apiHeaders', data);
|
|
84
|
-
await saveData('language', JSON.parse(data).languageCode);
|
|
85
|
-
}
|
|
86
|
-
return data;
|
|
87
|
-
} catch (err) {
|
|
88
|
-
return null;
|
|
89
|
-
}
|
|
20
|
+
return await TyradsSdkCore.loginUser(userId);
|
|
90
21
|
},
|
|
91
22
|
|
|
92
23
|
showOffers: async ({
|
|
@@ -94,53 +25,14 @@ const Tyrads = {
|
|
|
94
25
|
route,
|
|
95
26
|
campaignID,
|
|
96
27
|
}: { launchMode?: number; route?: string; campaignID?: number | null } = {}) => {
|
|
97
|
-
|
|
98
|
-
if (campaignID == null) {
|
|
99
|
-
return await TyradsSdk.showOffers(launchMode, route);
|
|
100
|
-
}
|
|
101
|
-
return await TyradsSdk.showOfferDetails(launchMode, route, campaignID);
|
|
102
|
-
} else {
|
|
103
|
-
if (campaignID == null) {
|
|
104
|
-
return await TyradsSdk.showOffers(route);
|
|
105
|
-
}
|
|
106
|
-
return await TyradsSdk.showOfferDetails(route, campaignID);
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
topPremiumOffers: ({
|
|
110
|
-
widgetStyle,
|
|
111
|
-
launchMode = 2,
|
|
112
|
-
}: {
|
|
113
|
-
widgetStyle?: PremiumWidgetStyles;
|
|
114
|
-
launchMode?: number;
|
|
115
|
-
} = {}) => {
|
|
116
|
-
const handleNavigation = (route?: string, campaignID?: number | null) => {
|
|
117
|
-
Tyrads.showOffers({ route: route, campaignID: campaignID, launchMode: launchMode });
|
|
118
|
-
};
|
|
119
|
-
return (
|
|
120
|
-
<LocalizationProvider>
|
|
121
|
-
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
|
|
122
|
-
<TopOffers
|
|
123
|
-
widgetStyle={widgetStyle}
|
|
124
|
-
onNavigate={handleNavigation}
|
|
125
|
-
/>
|
|
126
|
-
</View>
|
|
127
|
-
</LocalizationProvider>
|
|
128
|
-
);
|
|
129
|
-
},
|
|
130
|
-
topPremiumOffersLoading: (
|
|
131
|
-
{ widgetStyle = PremiumWidgetStyles.list }: {
|
|
132
|
-
widgetStyle?: PremiumWidgetStyles;
|
|
133
|
-
}
|
|
134
|
-
) => {
|
|
135
|
-
return (
|
|
136
|
-
<PremiumWidgetsLoading
|
|
137
|
-
widgetStyle={widgetStyle}
|
|
138
|
-
/>
|
|
139
|
-
);
|
|
28
|
+
return await TyradsSdkCore.showOffers({ launchMode, route, campaignID });
|
|
140
29
|
},
|
|
30
|
+
|
|
31
|
+
|
|
141
32
|
changeLanguage: async (lang: string) => {
|
|
142
|
-
return await
|
|
33
|
+
return await TyradsSdkCore.changeLanguage(lang);
|
|
143
34
|
},
|
|
144
35
|
};
|
|
145
36
|
|
|
37
|
+
|
|
146
38
|
export default Tyrads;
|
|
@@ -1,302 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// AcmoUserUpdatePage.swift
|
|
3
|
-
// Pods
|
|
4
|
-
//
|
|
5
|
-
// Created by Basharat Mehdi on 30/09/25.
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
import SwiftUI
|
|
9
|
-
|
|
10
|
-
struct AcmoUsersUpdatePage: View {
|
|
11
|
-
@Environment(\.presentationMode) var presentationMode
|
|
12
|
-
|
|
13
|
-
var localization: LocalizationService = LocalizationService.shared
|
|
14
|
-
|
|
15
|
-
var onSubmit: (() -> Void)?
|
|
16
|
-
|
|
17
|
-
public init(onSubmit: (() -> Void)? = nil) {
|
|
18
|
-
self.onSubmit = onSubmit
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@State private var selectedGender: String? = nil
|
|
22
|
-
@State private var selectedAge: String = "18"
|
|
23
|
-
@State private var isSubmitting = false
|
|
24
|
-
@State private var showError = false
|
|
25
|
-
@State private var errorMessage = ""
|
|
26
|
-
|
|
27
|
-
var body: some View {
|
|
28
|
-
ZStack{
|
|
29
|
-
VStack {
|
|
30
|
-
HStack {
|
|
31
|
-
Spacer()
|
|
32
|
-
Button(action: {
|
|
33
|
-
Tyrads.instance.setSkipUserUpdate(true)
|
|
34
|
-
Tyrads.instance.setNewUser(false)
|
|
35
|
-
presentationMode.wrappedValue.dismiss()
|
|
36
|
-
onSubmit?()
|
|
37
|
-
}) {
|
|
38
|
-
Text(localization.translate("data.shared.button.skip"))
|
|
39
|
-
.font(.system(size: 14))
|
|
40
|
-
.fontWeight(.semibold)
|
|
41
|
-
.frame(minWidth: 80, minHeight: 35)
|
|
42
|
-
.foregroundColor(Color(hex: Tyrads.instance.mainColor ?? "#000000"))
|
|
43
|
-
.overlay(
|
|
44
|
-
RoundedRectangle(cornerRadius: 50)
|
|
45
|
-
.stroke(Color(hex: Tyrads.instance.mainColor ?? "#000000"), lineWidth: 2)
|
|
46
|
-
).padding(.horizontal, 16)
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
ScrollView {
|
|
51
|
-
VStack(spacing: 40) {
|
|
52
|
-
Text(localization.translate("data.initialization.userInfo.title"))
|
|
53
|
-
.font(.system(size: 16, weight: .semibold))
|
|
54
|
-
.multilineTextAlignment(.center)
|
|
55
|
-
.foregroundColor(Color(hex: Tyrads.instance.mainColor ?? "#000000"))
|
|
56
|
-
Spacer()
|
|
57
|
-
.frame(height: 20)
|
|
58
|
-
|
|
59
|
-
VStack(spacing: 25) {
|
|
60
|
-
Text(localization.translate(
|
|
61
|
-
"data.initialization.userInfo.chooseGender.label"))
|
|
62
|
-
.font(.system(size: 16, weight: .semibold))
|
|
63
|
-
.foregroundColor(Color(hex: Tyrads.instance.mainColor ?? "#000000"))
|
|
64
|
-
|
|
65
|
-
GenderSelectView(selectedGender: $selectedGender, localization: localization)
|
|
66
|
-
Spacer().frame(height: 50)
|
|
67
|
-
|
|
68
|
-
Text(localization.translate(
|
|
69
|
-
"data.initialization.userInfo.chooseAge.label"))
|
|
70
|
-
.font(.system(size: 16, weight: .semibold))
|
|
71
|
-
.foregroundColor(Color(hex: Tyrads.instance.mainColor ?? "#000000"))
|
|
72
|
-
|
|
73
|
-
AgeSelectView(selectedAge: $selectedAge)
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
Spacer().frame(height: 10)
|
|
77
|
-
|
|
78
|
-
Button(action: {
|
|
79
|
-
submit()
|
|
80
|
-
}) {
|
|
81
|
-
Text(isSubmitting ? "Submitting..." : localization.translate(
|
|
82
|
-
"data.initialization.userInfo.cta.continue"))
|
|
83
|
-
.font(.system(size: 15, weight: .semibold))
|
|
84
|
-
.foregroundColor(.white)
|
|
85
|
-
.frame(maxWidth: .infinity)
|
|
86
|
-
.frame(height: 44)
|
|
87
|
-
.background(Color(hex: Tyrads.instance.mainColor ?? "#000000"))
|
|
88
|
-
.cornerRadius(4)
|
|
89
|
-
}
|
|
90
|
-
.disabled(isSubmitting)
|
|
91
|
-
}
|
|
92
|
-
.padding(.horizontal, 20)
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
.alert(isPresented: $showError) {
|
|
96
|
-
Alert(title: Text("Error"), message: Text(errorMessage), dismissButton: .default(Text("OK")))
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
func submit() {
|
|
102
|
-
guard let gender = selectedGender, !gender.isEmpty else {
|
|
103
|
-
errorMessage = "Please select gender to proceed."
|
|
104
|
-
showError = true
|
|
105
|
-
return
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
isSubmitting = true
|
|
109
|
-
errorMessage = ""
|
|
110
|
-
showError = false
|
|
111
|
-
|
|
112
|
-
Task {
|
|
113
|
-
do {
|
|
114
|
-
try await UserRepository.shared.updateUser(
|
|
115
|
-
userID: Tyrads.instance.publisherUserID,
|
|
116
|
-
gender: gender,
|
|
117
|
-
age: selectedAge
|
|
118
|
-
)
|
|
119
|
-
|
|
120
|
-
await MainActor.run {
|
|
121
|
-
self.isSubmitting = false
|
|
122
|
-
Tyrads.instance.setNewUser(false)
|
|
123
|
-
self.presentationMode.wrappedValue.dismiss()
|
|
124
|
-
self.onSubmit?()
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
} catch {
|
|
128
|
-
await MainActor.run {
|
|
129
|
-
self.isSubmitting = false
|
|
130
|
-
self.errorMessage = "Failed to update user data: \(error.localizedDescription)"
|
|
131
|
-
self.showError = true
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
struct GenderSelectView: View {
|
|
139
|
-
@Binding var selectedGender: String?
|
|
140
|
-
let localization: LocalizationService
|
|
141
|
-
|
|
142
|
-
var body: some View {
|
|
143
|
-
HStack(spacing: 20) {
|
|
144
|
-
GenderButton(title: localization.translate("data.initialization.userInfo.gender.male"), selectedGender: $selectedGender,
|
|
145
|
-
localization: localization
|
|
146
|
-
)
|
|
147
|
-
GenderButton(title: localization.translate("data.initialization.userInfo.gender.female"), selectedGender: $selectedGender, localization: localization)
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
struct GenderButton: View {
|
|
153
|
-
|
|
154
|
-
func decodeBase64Image(_ base64: String) -> UIImage? {
|
|
155
|
-
guard let data = Data(base64Encoded: base64) else { return nil }
|
|
156
|
-
return UIImage(data: data)
|
|
157
|
-
}
|
|
158
|
-
let title: String
|
|
159
|
-
@Binding var selectedGender: String?
|
|
160
|
-
let localization: LocalizationService
|
|
161
|
-
|
|
162
|
-
var body: some View {
|
|
163
|
-
Button(action: {
|
|
164
|
-
selectedGender = title
|
|
165
|
-
}) {
|
|
166
|
-
VStack{
|
|
167
|
-
if let image = decodeBase64Image(title == localization.translate("data.initialization.userInfo.gender.male") ? AcmoAssets.maleBase64 : AcmoAssets.femaleBase64) {
|
|
168
|
-
Image(uiImage: image)
|
|
169
|
-
.renderingMode(.template)
|
|
170
|
-
.resizable()
|
|
171
|
-
.scaledToFit()
|
|
172
|
-
.foregroundColor(selectedGender == title ? .white : Color(hex: "#667085"))
|
|
173
|
-
.frame(width: 24, height: 24)
|
|
174
|
-
}
|
|
175
|
-
Text(title)
|
|
176
|
-
.foregroundColor(selectedGender == title ? .white : Color(hex: "#667085"))
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
.frame(width: 100, height: 102)
|
|
180
|
-
.background(selectedGender == title ? Color(hex: Tyrads.instance.mainColor ?? "#000000") : Color.white)
|
|
181
|
-
.cornerRadius(4)
|
|
182
|
-
.shadow(color: Color.black.opacity(0.25), radius: 4, x: 0, y: 1)
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
struct AgeSelectView: View {
|
|
187
|
-
@Binding var selectedAge: String
|
|
188
|
-
private let ages = Array(13..<109).map { String($0) }
|
|
189
|
-
|
|
190
|
-
var body: some View {
|
|
191
|
-
HorizontalAgePicker(selectedAge: $selectedAge)
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
struct HorizontalAgePicker: View {
|
|
196
|
-
@Binding var selectedAge: String
|
|
197
|
-
private let ages = Array(13...108).map { String($0) }
|
|
198
|
-
|
|
199
|
-
var body: some View {
|
|
200
|
-
GeometryReader { geometry in
|
|
201
|
-
let screenCenter = geometry.size.width / 2
|
|
202
|
-
|
|
203
|
-
if #available(iOS 14.0, *) {
|
|
204
|
-
ScrollViewReader{ proxy in
|
|
205
|
-
ScrollView(.horizontal, showsIndicators: false) {
|
|
206
|
-
HStack(spacing: 4) {
|
|
207
|
-
Spacer()
|
|
208
|
-
.frame(width: screenCenter - 30)
|
|
209
|
-
|
|
210
|
-
ForEach(ages, id: \.self) { age in
|
|
211
|
-
GeometryReader { geo in
|
|
212
|
-
let itemCenter = geo.frame(in: .global).midX
|
|
213
|
-
let distance = abs(itemCenter - screenCenter)
|
|
214
|
-
let scale = max(0.8, 1.2 - distance / 200)
|
|
215
|
-
|
|
216
|
-
var fontSize: CGFloat {
|
|
217
|
-
selectedAge == age ? 30 : 17
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
var fontWeight: Font.Weight {
|
|
221
|
-
selectedAge == age ? .semibold : .regular
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
Text(age)
|
|
225
|
-
.font(.system(size: fontSize, weight: fontWeight))
|
|
226
|
-
.frame(width: 90, height: 58)
|
|
227
|
-
.background(selectedAge == age ? Color(hex: "#F6F6F6") : .clear)
|
|
228
|
-
.foregroundColor(selectedAge == age ? Color(hex: Tyrads.instance.mainColor ?? "#FFFFFF") : .gray)
|
|
229
|
-
.cornerRadius(10)
|
|
230
|
-
.animation(.easeOut(duration: 0.2), value: scale)
|
|
231
|
-
.onAppear {
|
|
232
|
-
DispatchQueue.main.async {
|
|
233
|
-
proxy.scrollTo("18", anchor: .center)
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
.onChange(of: distance) { _ in
|
|
237
|
-
if distance < 20 {
|
|
238
|
-
if selectedAge != age {
|
|
239
|
-
DispatchQueue.main.async {
|
|
240
|
-
selectedAge = age
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
}
|
|
247
|
-
.frame(width: 60, height: 74)
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
Spacer()
|
|
251
|
-
.frame(width: screenCenter - 30)
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
} else {
|
|
256
|
-
ScrollView(.horizontal, showsIndicators: false) {
|
|
257
|
-
HStack(spacing: 4) {
|
|
258
|
-
Spacer()
|
|
259
|
-
.frame(width: screenCenter - 30)
|
|
260
|
-
|
|
261
|
-
ForEach(ages, id: \.self) { age in
|
|
262
|
-
GeometryReader { geo in
|
|
263
|
-
let itemCenter = geo.frame(in: .global).midX
|
|
264
|
-
let distance = abs(itemCenter - screenCenter)
|
|
265
|
-
let scale = max(0.8, 1.2 - distance / 200)
|
|
266
|
-
|
|
267
|
-
var fontSize: CGFloat {
|
|
268
|
-
selectedAge == age ? 30 : 17
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
var fontWeight: Font.Weight {
|
|
272
|
-
selectedAge == age ? .semibold : .regular
|
|
273
|
-
}
|
|
274
|
-
Text(age)
|
|
275
|
-
.font(.system(size: selectedAge == age ? 30 : 20, weight: .semibold))
|
|
276
|
-
.frame(width: 90, height: 58)
|
|
277
|
-
.background(selectedAge == age ? Color("#F6F6F6") : .clear)
|
|
278
|
-
.foregroundColor(selectedAge == age ? Color(hex: Tyrads.instance.mainColor ?? "#FFFFFF") : .black)
|
|
279
|
-
.cornerRadius(10)
|
|
280
|
-
.animation(.easeOut(duration: 0.2), value: scale)
|
|
281
|
-
.onAppear {
|
|
282
|
-
if age == ages.first {
|
|
283
|
-
selectedAge = age
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
}
|
|
288
|
-
.frame(width: 60, height: 74)
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
Spacer()
|
|
292
|
-
.frame(width: screenCenter - 30)
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
.frame(height: 100)
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// AcmoUserUpdatePageController.swift
|
|
3
|
-
// Pods
|
|
4
|
-
//
|
|
5
|
-
// Created by Basharat Mehdi on 30/09/25.
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
import UIKit
|
|
9
|
-
import SwiftUI
|
|
10
|
-
|
|
11
|
-
public typealias UserUpdateCompletion = () -> Void
|
|
12
|
-
class AcmoUsersUpdateController: UIHostingController<AcmoUsersUpdatePage> {
|
|
13
|
-
public init(onSubmit: UserUpdateCompletion? = nil) {
|
|
14
|
-
let rootView = AcmoUsersUpdatePage(onSubmit: onSubmit)
|
|
15
|
-
super.init(rootView: rootView)
|
|
16
|
-
self.modalPresentationStyle = .fullScreen
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@MainActor required dynamic init?(coder aDecoder: NSCoder) {
|
|
20
|
-
fatalError("init(coder:) has not been implemented")
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
override func viewWillDisappear(_ animated: Bool) {
|
|
24
|
-
super.viewWillDisappear(animated)
|
|
25
|
-
}
|
|
26
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Repository.swift
|
|
3
|
-
// Pods
|
|
4
|
-
//
|
|
5
|
-
// Created by Basharat Mehdi on 01/10/25.
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
import Foundation
|
|
9
|
-
import UIKit
|
|
10
|
-
|
|
11
|
-
public class UserRepository {
|
|
12
|
-
|
|
13
|
-
public static let shared = UserRepository()
|
|
14
|
-
|
|
15
|
-
private init() {}
|
|
16
|
-
|
|
17
|
-
public func updateUser(userID: String, gender: String, age: String) async throws {
|
|
18
|
-
let sdk = Tyrads.instance
|
|
19
|
-
|
|
20
|
-
guard let ageInt = Int(age) else {
|
|
21
|
-
print("ERROR: Failed to convert age string '\(age)' to integer.")
|
|
22
|
-
throw NSError(domain: "TyradsSdk", code: 4, userInfo: [NSLocalizedDescriptionKey: "Invalid age format."])
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
let fd: [String: Any] = [
|
|
26
|
-
"gender": gender == "Male" ? 1 : 2,
|
|
27
|
-
"age": ageInt,
|
|
28
|
-
]
|
|
29
|
-
|
|
30
|
-
let fullURLString = AcmoConfig.BASE_URL + "update-user"
|
|
31
|
-
|
|
32
|
-
print("--- USER UPDATE REQUEST ---")
|
|
33
|
-
print("UserID: \(userID)")
|
|
34
|
-
print("URL: \(fullURLString)")
|
|
35
|
-
print("Data Sent: \(fd)")
|
|
36
|
-
|
|
37
|
-
let requestBody = sdk.isSecure && !(sdk.encKey ?? "").isEmpty ? try AcmoEncrypt(sdk.encKey!).encryptDataAESGCM(data: fd) : fd
|
|
38
|
-
|
|
39
|
-
guard let url = URL(string: fullURLString) else {
|
|
40
|
-
throw NSError(domain: "TyradsSdk", code: 1, userInfo: [NSLocalizedDescriptionKey: "Invalid URL for user update"])
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
var request = URLRequest(url: url)
|
|
44
|
-
request.httpMethod = "PUT"
|
|
45
|
-
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
|
|
46
|
-
request.setValue(sdk.apiKey, forHTTPHeaderField: "X-API-Key")
|
|
47
|
-
request.setValue(sdk.apiSecret, forHTTPHeaderField: "X-API-Secret")
|
|
48
|
-
request.setValue(userID, forHTTPHeaderField: "X-User-ID")
|
|
49
|
-
request.setValue(AcmoConfig.SDK_PLATFORM, forHTTPHeaderField: "X-SDK-Platform")
|
|
50
|
-
request.setValue(AcmoConfig.SDK_VERSION, forHTTPHeaderField: "X-SDK-Version")
|
|
51
|
-
request.setValue(sdk.isSecure ? "BASIC" : "PLAIN", forHTTPHeaderField: "X-Secure-Mode")
|
|
52
|
-
|
|
53
|
-
print("X-API-Key: \(sdk.apiKey)")
|
|
54
|
-
print("X-API-Secret: \(sdk.apiSecret)")
|
|
55
|
-
print("X-Publisher-User-Id: \(userID)")
|
|
56
|
-
print("Request Body: \(requestBody)")
|
|
57
|
-
|
|
58
|
-
do {
|
|
59
|
-
request.httpBody = try JSONSerialization.data(withJSONObject: requestBody)
|
|
60
|
-
} catch {
|
|
61
|
-
print("ERROR: Failed to serialize request body: \(error)")
|
|
62
|
-
throw error
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
let (data, response) = try await URLSession.shared.data(for: request)
|
|
66
|
-
|
|
67
|
-
let responseString = String(data: data, encoding: .utf8) ?? "No readable response data"
|
|
68
|
-
|
|
69
|
-
guard let httpResponse = response as? HTTPURLResponse else {
|
|
70
|
-
print("ERROR: Response was not HTTPURLResponse.")
|
|
71
|
-
throw NSError(domain: "TyradsSdk", code: 0, userInfo: [NSLocalizedDescriptionKey: "Non-HTTP response received."])
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
print("Response Status Code: \(httpResponse.statusCode)")
|
|
75
|
-
print("Response Body: \(responseString)")
|
|
76
|
-
|
|
77
|
-
guard (200...299).contains(httpResponse.statusCode) else {
|
|
78
|
-
let statusCode = httpResponse.statusCode
|
|
79
|
-
sdk.log("User update failed with status: \(statusCode)")
|
|
80
|
-
|
|
81
|
-
let fullErrorDescription = "Failed to update user demographics."
|
|
82
|
-
throw NSError(domain: "TyradsSdk", code: statusCode,
|
|
83
|
-
userInfo: [NSLocalizedDescriptionKey: "Failed to update user demographics."])
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
print("User has been updated please check")
|
|
87
|
-
sdk.log("User update successful.")
|
|
88
|
-
}
|
|
89
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _reactNative = require("react-native");
|
|
8
|
-
var _acmo_config = require("../../../acmo_config.js");
|
|
9
|
-
const LINKING_ERROR = `The package 'tyrads-sdk' doesn't seem to be linked. Make sure: \n\n` + _reactNative.Platform.select({
|
|
10
|
-
ios: "- You have run 'pod install'\n",
|
|
11
|
-
default: ''
|
|
12
|
-
}) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n';
|
|
13
|
-
const TyradsSdk = _reactNative.NativeModules.TyradsSdk ? _reactNative.NativeModules.TyradsSdk : new Proxy({}, {
|
|
14
|
-
get() {
|
|
15
|
-
throw new Error(LINKING_ERROR);
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
const TyradsNativeMethods = {
|
|
19
|
-
setSDKVersion: () => {
|
|
20
|
-
const version = _acmo_config.AcmoConfig.SDK_VERSION;
|
|
21
|
-
TyradsSdk.setSDKVersion(version);
|
|
22
|
-
},
|
|
23
|
-
setMediaSourceInfo: mediaSourceInfo => {
|
|
24
|
-
TyradsSdk.setMediaSourceInfo(mediaSourceInfo);
|
|
25
|
-
},
|
|
26
|
-
setUserInfo: userInfo => {
|
|
27
|
-
TyradsSdk.setUserInfo(userInfo);
|
|
28
|
-
},
|
|
29
|
-
isPrivacyAccepted: async () => {
|
|
30
|
-
try {
|
|
31
|
-
return await TyradsSdk.isPrivacyAccepted();
|
|
32
|
-
} catch (err) {
|
|
33
|
-
console.error("Error checking privacy acceptance:", err);
|
|
34
|
-
return false;
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
checkOnboardingProcess: async () => {
|
|
38
|
-
try {
|
|
39
|
-
const result = await TyradsSdk.checkOnboardingProcess();
|
|
40
|
-
return result === true;
|
|
41
|
-
} catch (err) {
|
|
42
|
-
console.error("Error showing privacy flow:", err);
|
|
43
|
-
return false;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
var _default = exports.default = TyradsNativeMethods;
|
|
48
|
-
//# sourceMappingURL=native_methods.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_acmo_config","LINKING_ERROR","Platform","select","ios","default","TyradsSdk","NativeModules","Proxy","get","Error","TyradsNativeMethods","setSDKVersion","version","AcmoConfig","SDK_VERSION","setMediaSourceInfo","mediaSourceInfo","setUserInfo","userInfo","isPrivacyAccepted","err","console","error","checkOnboardingProcess","result","_default","exports"],"sourceRoot":"../../../../../src","sources":["acmo/core/helpers/native_methods.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAGA,MAAME,aAAa,GACjB,qEAAqE,GACrEC,qBAAQ,CAACC,MAAM,CAAC;EAAEC,GAAG,EAAE,gCAAgC;EAAEC,OAAO,EAAE;AAAG,CAAC,CAAC,GACvE,sDAAsD,GACtD,+BAA+B;AAEjC,MAAMC,SAAS,GAAGC,0BAAa,CAACD,SAAS,GACrCC,0BAAa,CAACD,SAAS,GACvB,IAAIE,KAAK,CACT,CAAC,CAAC,EACF;EACEC,GAAGA,CAAA,EAAG;IACJ,MAAM,IAAIC,KAAK,CAACT,aAAa,CAAC;EAChC;AACF,CACF,CAAC;AAGH,MAAMU,mBAAmB,GAAG;EAE1BC,aAAa,EAAEA,CAAA,KAAM;IACnB,MAAMC,OAAO,GAAGC,uBAAU,CAACC,WAAW;IACtCT,SAAS,CAACM,aAAa,CAACC,OAAO,CAAC;EAClC,CAAC;EAEDG,kBAAkB,EAAGC,eAAsC,IAAK;IAC9DX,SAAS,CAACU,kBAAkB,CAACC,eAAe,CAAC;EAC/C,CAAC;EAEDC,WAAW,EAAGC,QAAwB,IAAK;IACzCb,SAAS,CAACY,WAAW,CAACC,QAAQ,CAAC;EACjC,CAAC;EAGDC,iBAAiB,EAAE,MAAAA,CAAA,KAAY;IAC7B,IAAI;MACF,OAAO,MAAMd,SAAS,CAACc,iBAAiB,CAAC,CAAC;IAC5C,CAAC,CAAC,OAAOC,GAAG,EAAE;MACZC,OAAO,CAACC,KAAK,CAAC,oCAAoC,EAAEF,GAAG,CAAC;MACxD,OAAO,KAAK;IACd;EACF,CAAC;EAEDG,sBAAsB,EAAE,MAAAA,CAAA,KAAY;IAClC,IAAI;MACF,MAAMC,MAAM,GAAG,MAAMnB,SAAS,CAACkB,sBAAsB,CAAC,CAAC;MACvD,OAAOC,MAAM,KAAK,IAAI;IACxB,CAAC,CAAC,OAAOJ,GAAG,EAAE;MACZC,OAAO,CAACC,KAAK,CAAC,6BAA6B,EAAEF,GAAG,CAAC;MACjD,OAAO,KAAK;IACd;EACF;AACF,CAAC;AAAC,IAAAK,QAAA,GAAAC,OAAA,CAAAtB,OAAA,GAEaM,mBAAmB","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_localization_context","_jsxRuntime","e","__esModule","default","ActiveOffersButton","premiumColor","activeCount","onPress","t","useLocalization","jsx","TouchableOpacity","style","styles","button","borderColor","children","jsxs","View","flexDirection","alignItems","Text","buttonText","color","activeCountContainer","activeCountText","StyleSheet","create","borderRadius","paddingHorizontal","paddingVertical","height","justifyContent","marginHorizontal","marginBottom","borderWidth","fontSize","fontWeight","marginLeft","width","backgroundColor","_default","exports"],"sourceRoot":"../../../../../../src","sources":["acmo/modules/dashboard/components/active_offers_button.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,qBAAA,GAAAF,OAAA;AAA0E,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAA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E;IACNc,YAAY,EAAE,EAAE;IAChBC,iBAAiB,EAAE,EAAE;IACrBC,eAAe,EAAE,CAAC;IAClBC,MAAM,EAAE,EAAE;IACVC,cAAc,EAAE,QAAQ;IACxBZ,UAAU,EAAE,QAAQ;IACpBa,gBAAgB,EAAE,EAAE;IACpBC,YAAY,EAAE,EAAE;IAChBC,WAAW,EAAE;EACf,CAAC;EACDb,UAAU,EAAE;IACVc,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACd,CAAC;EACDb,oBAAoB,EAAE;IACpBc,UAAU,EAAE,CAAC;IACbC,KAAK,EAAE,EAAE;IACTR,MAAM,EAAE,EAAE;IACVS,eAAe,EAAE,SAAS;IAC1BpB,UAAU,EAAE,QAAQ;IACpBY,cAAc,EAAE,QAAQ;IACxBJ,YAAY,EAAE;EAChB,CAAC;EACDH,eAAe,EAAE;IACfF,KAAK,EAAE,OAAO;IACda,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE;EACd;AACF,CAAC,CAAC;AAAC,IAAAI,QAAA,GAAAC,OAAA,CAAAvC,OAAA,GAEYC,kBAAkB","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_jsxRuntime","e","__esModule","default","CustomCard","children","style","jsx","View","styles","card","StyleSheet","create","backgroundColor","borderRadius","paddingTop","paddingBottom","shadowColor","alignSelf","shadowOffset","width","height","shadowOpacity","shadowRadius","elevation","_default","exports"],"sourceRoot":"../../../../../../src","sources":["acmo/modules/dashboard/components/custom_card.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAAgE,IAAAE,WAAA,GAAAF,OAAA;AAAA,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAOhE,MAAMG,UAAqC,GAAGA,CAAC;EAAEC,QAAQ;EAAEC;AAAM,CAAC,KAAK;EACrE,oBAAO,IAAAN,WAAA,CAAAO,GAAA,EAACR,YAAA,CAAAS,IAAI;IAACF,KAAK,EAAE,CAACG,MAAM,CAACC,IAAI,EAAEJ,KAAK,CAAE;IAAAD,QAAA,EAAEA;EAAQ,CAAO,CAAC;AAC7D,CAAC;AAED,MAAMI,MAAM,GAAGE,uBAAU,CAACC,MAAM,CAAC;EAC/BF,IAAI,EAAE;IACJG,eAAe,EAAE,OAAO;IACxBC,YAAY,EAAE,EAAE;IAChBC,UAAU,EAAE,CAAC;IACbC,aAAa,EAAE,CAAC;IAChBC,WAAW,EAAE,MAAM;IACnBC,SAAS,EAAE,QAAQ;IACnBC,YAAY,EAAE;MAAEC,KAAK,EAAE,CAAC;MAAEC,MAAM,EAAE;IAAE,CAAC;IACrCC,aAAa,EAAE,IAAI;IACnBC,YAAY,EAAE,GAAG;IACjBC,SAAS,EAAE;EACb;AACF,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAvB,OAAA,GAEYC,UAAU","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","AcmoScrollPager","totalPages","delayInMillis","content","viewportFraction","scaleFactor","spacing","indicatorStyle","activeIndicatorColor","inactiveIndicatorColor","scrollX","useRef","Animated","Value","current","scrollViewRef","currentPage","setCurrentPage","useState","containerWidth","setContainerWidth","intervalRef","onContainerLayout","width","nativeEvent","layout","useEffect","itemWidth","offset","setInterval","next","scrollTo","x","animated","clearInterval","handleScroll","event","contentOffset","useNativeDriver","listener","index","Math","round","renderIndicators","jsx","View","style","styles","indicatorContainer","children","Array","from","length","_","indicator","backgroundColor","onLayout","itemOffset","sidePadding","jsxs","alignItems","ScrollView","ref","horizontal","pagingEnabled","snapToInterval","decelerationRate","showsHorizontalScrollIndicator","scrollEventThrottle","onScroll","contentContainerStyle","paddingHorizontal","inputRange","scale","interpolate","outputRange","extrapolate","transform","StyleSheet","create","flexDirection","justifyContent","marginTop","marginBottom","height","borderRadius","marginHorizontal","_default","exports"],"sourceRoot":"../../../../../../src","sources":["acmo/modules/dashboard/components/custom_scroller.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAOsB,IAAAE,WAAA,GAAAF,OAAA;AAAA,SAAAD,wBAAAI,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAN,uBAAA,YAAAA,CAAAI,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAA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