@umituz/react-native-subscription 3.1.35 → 3.1.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/package.json +1 -1
  2. package/src/domains/credits/infrastructure/operations/CreditsWriter.ts +1 -1
  3. package/src/domains/credits/presentation/deduct-credit/useDeductCredit.ts +1 -1
  4. package/src/domains/paywall/components/PaywallScreen.tsx +1 -1
  5. package/src/domains/paywall/hooks/usePaywallActions.ts +1 -1
  6. package/src/domains/paywall/hooks/usePaywallActions.utils.ts +1 -1
  7. package/src/domains/paywall/hooks/usePaywallPurchase.ts +1 -1
  8. package/src/domains/paywall/hooks/usePaywallRestore.ts +1 -1
  9. package/src/domains/revenuecat/core/errors/RevenueCatError.ts +1 -1
  10. package/src/domains/revenuecat/infrastructure/services/ConfigurationStateManager.ts +1 -1
  11. package/src/domains/revenuecat/infrastructure/services/RevenueCatInitializer.ts +1 -1
  12. package/src/domains/revenuecat/infrastructure/services/initializerConstants.ts +1 -1
  13. package/src/domains/revenuecat/infrastructure/services/userSwitchCore.ts +1 -1
  14. package/src/domains/revenuecat/infrastructure/services/userSwitchHelpers.ts +1 -1
  15. package/src/domains/revenuecat/infrastructure/services/userSwitchInitializer.ts +1 -1
  16. package/src/domains/subscription/application/initializer/BackgroundInitializer.ts +1 -1
  17. package/src/domains/subscription/application/sync/CreditDocumentOperations.ts +1 -1
  18. package/src/domains/subscription/application/sync/PurchaseSyncHandler.ts +1 -1
  19. package/src/domains/subscription/application/sync/RenewalSyncHandler.ts +1 -1
  20. package/src/domains/subscription/application/sync/StatusChangeSyncHandler.ts +1 -1
  21. package/src/domains/subscription/application/sync/SyncProcessorLogger.ts +2 -2
  22. package/src/domains/subscription/application/sync/UserIdResolver.ts +1 -1
  23. package/src/domains/subscription/infrastructure/handlers/PackageHandler.ts +1 -1
  24. package/src/domains/subscription/infrastructure/handlers/PurchaseStatusResolver.ts +1 -1
  25. package/src/domains/subscription/infrastructure/hooks/usePurchasePackage.ts +1 -1
  26. package/src/domains/subscription/infrastructure/managers/SubscriptionManager.ts +2 -2
  27. package/src/domains/subscription/infrastructure/managers/initializationHandler.ts +1 -1
  28. package/src/domains/subscription/infrastructure/managers/managerOperations.ts +1 -1
  29. package/src/domains/subscription/infrastructure/managers/packageHandlerFactory.ts +1 -1
  30. package/src/domains/subscription/infrastructure/managers/premiumStatusChecker.ts +1 -1
  31. package/src/domains/subscription/infrastructure/managers/subscriptionManagerUtils.ts +1 -1
  32. package/src/domains/subscription/infrastructure/services/CustomerInfoListenerManager.ts +1 -1
  33. package/src/domains/subscription/infrastructure/services/OfferingsFetcher.ts +1 -1
  34. package/src/domains/subscription/infrastructure/services/PurchaseHandler.ts +2 -2
  35. package/src/domains/subscription/infrastructure/services/RestoreHandler.ts +1 -1
  36. package/src/domains/subscription/infrastructure/services/RevenueCatService.types.ts +2 -2
  37. package/src/domains/subscription/infrastructure/utils/InitializationCache.ts +1 -1
  38. package/src/domains/subscription/infrastructure/utils/PremiumStatusSyncer.ts +1 -1
  39. package/src/domains/subscription/presentation/providers/SubscriptionFlowProvider.tsx +1 -1
  40. package/src/domains/subscription/presentation/screens/SubscriptionDetailScreen.tsx +1 -1
  41. package/src/domains/wallet/presentation/components/TransactionList.tsx +1 -1
  42. package/src/domains/wallet/presentation/hooks/useTransactionHistory.ts +2 -2
  43. package/src/domains/wallet/presentation/screens/WalletScreen.tsx +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-subscription",
3
- "version": "3.1.35",
3
+ "version": "3.1.36",
4
4
  "description": "Complete subscription management with RevenueCat, paywall UI, and credits system for React Native apps",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -4,7 +4,7 @@ import { getDoc, setDoc } from "firebase/firestore";
4
4
  import { SUBSCRIPTION_STATUS } from "../../../subscription/core/SubscriptionConstants";
5
5
  import { resolveSubscriptionStatus } from "../../../subscription/core/SubscriptionStatus";
6
6
  import type { SubscriptionMetadata } from "../../../subscription/core/types/SubscriptionMetadata";
7
- import { toTimestamp } from "../../../../shared/utils/dateConverter";
7
+ import { toTimestamp } from "../../../shared/utils/dateConverter";
8
8
  import { isPast } from "../../../../utils/dateUtils";
9
9
  import { getAppVersion, validatePlatform } from "../../../../utils/appUtils";
10
10
 
@@ -1,6 +1,6 @@
1
1
  import { useCallback, useState } from "react";
2
2
  import { getCreditsRepository } from "../../infrastructure/CreditsRepositoryManager";
3
- import { createLogger } from "../../../../shared/utils/logger";
3
+ import { createLogger } from "../../../shared/utils/logger";
4
4
  import type { UseDeductCreditParams, UseDeductCreditResult } from "./types";
5
5
 
6
6
  const logger = createLogger("useDeductCredit");
@@ -29,7 +29,7 @@ import {
29
29
  } from "../utils/paywallLayoutUtils";
30
30
  import { hasItems } from "../../../shared/utils/arrayUtils";
31
31
  import { PaywallRenderItem } from "./PaywallScreen.renderItem";
32
- import { createLogger } from "../../../../shared/utils/logger";
32
+ import { createLogger } from "../../../shared/utils/logger";
33
33
 
34
34
  const logger = createLogger("PaywallScreen");
35
35
 
@@ -9,7 +9,7 @@ import { useState, useRef, useMemo, useCallback } from "react";
9
9
  import type { UsePaywallActionsParams } from "./usePaywallActions.types";
10
10
  import { usePurchaseHandler } from "./usePaywallPurchase";
11
11
  import { useRestoreHandler } from "./usePaywallRestore";
12
- import { createLogger } from "../../../../shared/utils/logger";
12
+ import { createLogger } from "../../../shared/utils/logger";
13
13
 
14
14
  const logger = createLogger("usePaywallActions");
15
15
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  import { useSubscriptionStatus } from "../../subscription/presentation/useSubscriptionStatus";
7
7
  import { useCredits } from "../../credits/presentation/useCredits";
8
- import { createLogger } from "../../../../shared/utils/logger";
8
+ import { createLogger } from "../../../shared/utils/logger";
9
9
 
10
10
  const logger = createLogger("PremiumVerification");
11
11
 
@@ -7,7 +7,7 @@
7
7
  import { useCallback } from "react";
8
8
  import type { UsePaywallActionsParams } from "./usePaywallActions.types";
9
9
  import { usePremiumVerification } from "./usePaywallActions.utils";
10
- import { createLogger } from "../../../../shared/utils/logger";
10
+ import { createLogger } from "../../../shared/utils/logger";
11
11
 
12
12
  const logger = createLogger("usePurchaseHandler");
13
13
 
@@ -7,7 +7,7 @@
7
7
  import { useCallback } from "react";
8
8
  import type { UsePaywallActionsParams } from "./usePaywallActions.types";
9
9
  import { usePremiumVerification } from "./usePaywallActions.utils";
10
- import { createLogger } from "../../../../shared/utils/logger";
10
+ import { createLogger } from "../../../shared/utils/logger";
11
11
 
12
12
  const logger = createLogger("useRestoreHandler");
13
13
 
@@ -1,4 +1,4 @@
1
- import { BaseError } from "../../../../shared/utils/BaseError";
1
+ import { BaseError } from "../../../shared/utils/BaseError";
2
2
 
3
3
  class RevenueCatError extends BaseError {
4
4
  constructor(message: string, code: string = 'REVENUE_CAT_ERROR', cause?: Error) {
@@ -1,4 +1,4 @@
1
- import type { InitializeResult } from "../../../../shared/application/ports/IRevenueCatService";
1
+ import type { InitializeResult } from "../../../shared/application/ports/IRevenueCatService";
2
2
 
3
3
  class ConfigurationStateManager {
4
4
  private _isPurchasesConfigured = false;
@@ -1,4 +1,4 @@
1
- import type { InitializeResult } from "../../../../shared/application/ports/IRevenueCatService";
1
+ import type { InitializeResult } from "../../../shared/application/ports/IRevenueCatService";
2
2
  import type { InitializerDeps } from "./RevenueCatInitializer.types";
3
3
  import { FAILED_INITIALIZATION_RESULT, CONFIGURATION_RETRY_DELAY_MS, MAX_INIT_RETRIES } from "./initializerConstants";
4
4
  import { configState } from "./ConfigurationStateManager";
@@ -1,4 +1,4 @@
1
- import type { InitializeResult } from "../../../../shared/application/ports/IRevenueCatService";
1
+ import type { InitializeResult } from "../../../shared/application/ports/IRevenueCatService";
2
2
 
3
3
  export const FAILED_INITIALIZATION_RESULT: InitializeResult = {
4
4
  success: false,
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  import Purchases, { type CustomerInfo } from "react-native-purchases";
8
- import type { InitializeResult } from "../../../../shared/application/ports/IRevenueCatService";
8
+ import type { InitializeResult } from "../../../shared/application/ports/IRevenueCatService";
9
9
  import type { InitializerDeps } from "./RevenueCatInitializer.types";
10
10
  import { FAILED_INITIALIZATION_RESULT } from "./initializerConstants";
11
11
  import { UserSwitchMutex } from "./UserSwitchMutex";
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  import Purchases, { type CustomerInfo, type PurchasesOfferings } from "react-native-purchases";
8
- import type { InitializeResult } from "../../../../shared/application/ports/IRevenueCatService";
8
+ import type { InitializeResult } from "../../../shared/application/ports/IRevenueCatService";
9
9
  import type { InitializerDeps } from "./RevenueCatInitializer.types";
10
10
  import { ANONYMOUS_CACHE_KEY } from "../../../subscription/core/SubscriptionConstants";
11
11
  import { createLogger } from "../../../../../shared/utils/logger";
@@ -5,7 +5,7 @@
5
5
  */
6
6
 
7
7
  import Purchases, { type CustomerInfo } from "react-native-purchases";
8
- import type { InitializeResult } from "../../../../shared/application/ports/IRevenueCatService";
8
+ import type { InitializeResult } from "../../../shared/application/ports/IRevenueCatService";
9
9
  import type { InitializerDeps } from "./RevenueCatInitializer.types";
10
10
  import { FAILED_INITIALIZATION_RESULT } from "./initializerConstants";
11
11
  import { getPremiumEntitlement } from "../../core/types/RevenueCatTypes";
@@ -1,7 +1,7 @@
1
1
  import { SubscriptionManager } from "../../infrastructure/managers/SubscriptionManager";
2
2
  import { getCurrentUserId, setupAuthStateListener } from "../SubscriptionAuthListener";
3
3
  import type { SubscriptionInitConfig } from "../SubscriptionInitializerTypes";
4
- import { createLogger } from "../../../../shared/utils/logger";
4
+ import { createLogger } from "../../../shared/utils/logger";
5
5
 
6
6
  const logger = createLogger("BackgroundInitializer");
7
7
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  import { getCreditsRepository } from "../../../credits/infrastructure/CreditsRepositoryManager";
7
7
  import type { PremiumStatusChangedEvent } from "../../core/SubscriptionEvents";
8
- import { createLogger } from "../../../../shared/utils/logger";
8
+ import { createLogger } from "../../../shared/utils/logger";
9
9
 
10
10
  const logger = createLogger("CreditDocumentOperations");
11
11
 
@@ -9,7 +9,7 @@ import { extractRevenueCatData } from "../SubscriptionSyncUtils";
9
9
  import { generatePurchaseId } from "../syncIdGenerators";
10
10
  import type { PurchaseCompletedEvent } from "../../core/SubscriptionEvents";
11
11
  import { UserIdResolver } from "./UserIdResolver";
12
- import { createLogger } from "../../../../shared/utils/logger";
12
+ import { createLogger } from "../../../shared/utils/logger";
13
13
 
14
14
  const logger = createLogger("PurchaseSyncHandler");
15
15
 
@@ -9,7 +9,7 @@ import { extractRevenueCatData } from "../SubscriptionSyncUtils";
9
9
  import { generateRenewalId } from "../syncIdGenerators";
10
10
  import type { RenewalDetectedEvent } from "../../core/SubscriptionEvents";
11
11
  import { UserIdResolver } from "./UserIdResolver";
12
- import { createLogger } from "../../../../shared/utils/logger";
12
+ import { createLogger } from "../../../shared/utils/logger";
13
13
 
14
14
  const logger = createLogger("RenewalSyncHandler");
15
15
 
@@ -8,7 +8,7 @@ import type { PremiumStatusChangedEvent } from "../../core/SubscriptionEvents";
8
8
  import { UserIdResolver } from "./UserIdResolver";
9
9
  import { CreditDocumentOperations } from "./CreditDocumentOperations";
10
10
  import { PurchaseSyncHandler } from "./PurchaseSyncHandler";
11
- import { createLogger } from "../../../../shared/utils/logger";
11
+ import { createLogger } from "../../../shared/utils/logger";
12
12
 
13
13
  const logger = createLogger("StatusChangeSyncHandler");
14
14
 
@@ -3,9 +3,9 @@
3
3
  * Centralized logging for subscription sync operations
4
4
  */
5
5
 
6
- import { subscriptionEventBus, SUBSCRIPTION_EVENTS } from "../../../../shared/infrastructure/SubscriptionEventBus";
6
+ import { subscriptionEventBus, SUBSCRIPTION_EVENTS } from "../../../shared/infrastructure/SubscriptionEventBus";
7
7
  import type { PurchaseCompletedEvent, RenewalDetectedEvent, PremiumStatusChangedEvent } from "../../core/SubscriptionEvents";
8
- import { createLogger } from "../../../../shared/utils/logger";
8
+ import { createLogger } from "../../../shared/utils/logger";
9
9
 
10
10
  const logger = createLogger("SubscriptionSyncProcessor");
11
11
 
@@ -3,7 +3,7 @@
3
3
  * Handles resolution of RevenueCat user ID to credits user ID
4
4
  */
5
5
 
6
- import { createLogger } from "../../../../shared/utils/logger";
6
+ import { createLogger } from "../../../shared/utils/logger";
7
7
 
8
8
  const logger = createLogger("UserIdResolver");
9
9
 
@@ -1,5 +1,5 @@
1
1
  import type { PurchasesPackage, CustomerInfo } from "react-native-purchases";
2
- import type { IRevenueCatService } from "../../../../shared/application/ports/IRevenueCatService";
2
+ import type { IRevenueCatService } from "../../../shared/application/ports/IRevenueCatService";
3
3
  import { PurchaseStatusResolver, type PremiumStatus } from "./PurchaseStatusResolver";
4
4
  import { fetchPackages } from "./package-operations/PackageFetcher";
5
5
  import { executePurchase } from "./package-operations/PackagePurchaser";
@@ -1,6 +1,6 @@
1
1
  import type { CustomerInfo } from "react-native-purchases";
2
2
  import { getPremiumEntitlement } from "../../../revenuecat/core/types/RevenueCatTypes";
3
- import { toDate } from "../../../../shared/utils/dateConverter";
3
+ import { toDate } from "../../../shared/utils/dateConverter";
4
4
  import { detectPackageType } from "../../../../utils/packageTypeDetector";
5
5
  import type { PremiumStatus } from "../../core/types/PremiumStatus";
6
6
 
@@ -7,7 +7,7 @@ import {
7
7
  } from "@umituz/react-native-auth";
8
8
  import { SubscriptionManager } from "../../infrastructure/managers/SubscriptionManager";
9
9
  import { getErrorMessage } from "../../../revenuecat/core/errors/RevenueCatErrorHandler";
10
- import { createLogger } from "../../../../shared/utils/logger";
10
+ import { createLogger } from "../../../shared/utils/logger";
11
11
 
12
12
  const logger = createLogger("usePurchasePackage");
13
13
 
@@ -1,5 +1,5 @@
1
1
  import type { PurchasesPackage } from "react-native-purchases";
2
- import type { IRevenueCatService } from "../../../../shared/application/ports/IRevenueCatService";
2
+ import type { IRevenueCatService } from "../../../shared/application/ports/IRevenueCatService";
3
3
  import type { PackageHandler } from "../handlers/PackageHandler";
4
4
  import { InitializationCache } from "../utils/InitializationCache";
5
5
  import { ensureServiceAvailable, getCurrentUserIdOrThrow } from "./subscriptionManagerUtils";
@@ -10,7 +10,7 @@ import { getPackagesOperation, purchasePackageOperation, restoreOperation } from
10
10
  import { performServiceInitialization } from "./initializationHandler";
11
11
  import { initializationState } from "../state/initializationState";
12
12
  import { ANONYMOUS_CACHE_KEY } from "../../core/SubscriptionConstants";
13
- import { createLogger } from "../../../../shared/utils/logger";
13
+ import { createLogger } from "../../../shared/utils/logger";
14
14
 
15
15
  const logger = createLogger("SubscriptionManager");
16
16
 
@@ -1,4 +1,4 @@
1
- import type { IRevenueCatService } from "../../../../shared/application/ports/IRevenueCatService";
1
+ import type { IRevenueCatService } from "../../../shared/application/ports/IRevenueCatService";
2
2
  import { initializeRevenueCatService, getRevenueCatService } from "../services/revenueCatServiceInstance";
3
3
  import { ensureServiceAvailable } from "./subscriptionManagerUtils";
4
4
  import type { RevenueCatConfig } from "../../../revenuecat/core/types/RevenueCatConfig";
@@ -1,5 +1,5 @@
1
1
  import type { PurchasesPackage } from "react-native-purchases";
2
- import type { IRevenueCatService } from "../../../../shared/application/ports/IRevenueCatService";
2
+ import type { IRevenueCatService } from "../../../shared/application/ports/IRevenueCatService";
3
3
  import type { PackageHandler } from "../handlers/PackageHandler";
4
4
  import type { RestoreResultInfo } from "./SubscriptionManager.types";
5
5
  import { ensureConfigured, getOrCreateService } from "./subscriptionManagerUtils";
@@ -1,4 +1,4 @@
1
- import type { IRevenueCatService } from "../../../../shared/application/ports/IRevenueCatService";
1
+ import type { IRevenueCatService } from "../../../shared/application/ports/IRevenueCatService";
2
2
  import { PackageHandler } from "../handlers/PackageHandler";
3
3
  import { ensureServiceAvailable, ensureConfigured } from "./subscriptionManagerUtils";
4
4
  import type { SubscriptionManagerConfig } from "./SubscriptionManager.types";
@@ -1,4 +1,4 @@
1
- import type { IRevenueCatService } from "../../../../shared/application/ports/IRevenueCatService";
1
+ import type { IRevenueCatService } from "../../../shared/application/ports/IRevenueCatService";
2
2
  import type { PackageHandler } from "../handlers/PackageHandler";
3
3
  import type { PremiumStatus } from "./SubscriptionManager.types";
4
4
 
@@ -1,5 +1,5 @@
1
1
  import type { SubscriptionManagerConfig } from "./SubscriptionManager.types";
2
- import type { IRevenueCatService } from "../../../../shared/application/ports/IRevenueCatService";
2
+ import type { IRevenueCatService } from "../../../shared/application/ports/IRevenueCatService";
3
3
  import { getRevenueCatService } from "../services/revenueCatServiceInstance";
4
4
  import type { InitializationCache } from "../utils/InitializationCache";
5
5
 
@@ -2,7 +2,7 @@ import Purchases, { type CustomerInfo } from "react-native-purchases";
2
2
  import type { RevenueCatConfig } from "../../../revenuecat/core/types/RevenueCatConfig";
3
3
  import { ListenerState } from "./listeners/ListenerState";
4
4
  import { processCustomerInfo } from "./listeners/CustomerInfoHandler";
5
- import { createLogger } from "../../../../shared/utils/logger";
5
+ import { createLogger } from "../../../shared/utils/logger";
6
6
 
7
7
  const logger = createLogger("CustomerInfoListenerManager");
8
8
 
@@ -1,5 +1,5 @@
1
1
  import Purchases, { type PurchasesOffering } from "react-native-purchases";
2
- import { createLogger } from "../../../../shared/utils/logger";
2
+ import { createLogger } from "../../../shared/utils/logger";
3
3
 
4
4
  const logger = createLogger("OfferingsFetcher");
5
5
 
@@ -1,11 +1,11 @@
1
1
  import type { PurchasesPackage } from "react-native-purchases";
2
- import type { PurchaseResult } from "../../../../shared/application/ports/IRevenueCatService";
2
+ import type { PurchaseResult } from "../../../shared/application/ports/IRevenueCatService";
3
3
  import type { RevenueCatConfig } from "../../../revenuecat/core/types/RevenueCatConfig";
4
4
  import { isUserCancelledError, isAlreadyPurchasedError } from "../../../revenuecat/core/types/RevenueCatTypes";
5
5
  import { validatePurchaseReady, isConsumableProduct } from "./purchase/PurchaseValidator";
6
6
  import { executePurchase } from "./purchase/PurchaseExecutor";
7
7
  import { handleAlreadyPurchasedError, handlePurchaseError } from "./purchase/PurchaseErrorHandler";
8
- import { createLogger } from "../../../../shared/utils/logger";
8
+ import { createLogger } from "../../../shared/utils/logger";
9
9
 
10
10
  const logger = createLogger("PurchaseHandler");
11
11
 
@@ -1,5 +1,5 @@
1
1
  import Purchases from "react-native-purchases";
2
- import type { RestoreResult } from "../../../../shared/application/ports/IRevenueCatService";
2
+ import type { RestoreResult } from "../../../shared/application/ports/IRevenueCatService";
3
3
  import {
4
4
  RevenueCatRestoreError,
5
5
  RevenueCatInitializationError,
@@ -1,6 +1,6 @@
1
1
  import Purchases from "react-native-purchases";
2
2
  import type { PurchasesOffering, PurchasesPackage, CustomerInfo } from "react-native-purchases";
3
- import type { IRevenueCatService, InitializeResult, PurchaseResult, RestoreResult } from "../../../../shared/application/ports/IRevenueCatService";
3
+ import type { IRevenueCatService, InitializeResult, PurchaseResult, RestoreResult } from "../../../shared/application/ports/IRevenueCatService";
4
4
  import type { RevenueCatConfig } from "../../../revenuecat/core/types/RevenueCatConfig";
5
5
  import { initializeSDK } from "../../../revenuecat/infrastructure/services/RevenueCatInitializer";
6
6
  import { fetchOfferings } from "./OfferingsFetcher";
@@ -8,7 +8,7 @@ import { handlePurchase } from "./PurchaseHandler";
8
8
  import { handleRestore } from "./RestoreHandler";
9
9
  import { CustomerInfoListenerManager } from "./CustomerInfoListenerManager";
10
10
  import { ServiceStateManager } from "./ServiceStateManager";
11
- import { createLogger } from "../../../../shared/utils/logger";
11
+ import { createLogger } from "../../../shared/utils/logger";
12
12
 
13
13
  const logger = createLogger("RevenueCatService");
14
14
 
@@ -4,7 +4,7 @@ interface CacheEntry {
4
4
  completed: boolean;
5
5
  }
6
6
 
7
- import { createLogger } from "../../../../shared/utils/logger";
7
+ import { createLogger } from "../../../shared/utils/logger";
8
8
 
9
9
  const logger = createLogger("InitializationCache");
10
10
 
@@ -3,7 +3,7 @@ import type { RevenueCatConfig } from "../../../revenuecat/core/types/RevenueCat
3
3
  import type { PurchaseSource } from "../../core/SubscriptionConstants";
4
4
  import type { PackageType } from "../../../revenuecat/core/types/RevenueCatTypes";
5
5
  import { getPremiumEntitlement } from "../../../revenuecat/core/types/RevenueCatTypes";
6
- import { createLogger } from "../../../../shared/utils/logger";
6
+ import { createLogger } from "../../../shared/utils/logger";
7
7
 
8
8
  const logger = createLogger("PremiumStatusSyncer");
9
9
 
@@ -2,7 +2,7 @@ import React, { createContext, useContext, useEffect } from "react";
2
2
  import { useSubscriptionFlowStore, SubscriptionFlowStatus } from "../useSubscriptionFlow";
3
3
  import { useSyncStatusListener } from "../useSyncStatusListener";
4
4
  import { initializationState } from "../../infrastructure/state/initializationState";
5
- import { createLogger } from "../../../../shared/utils/logger";
5
+ import { createLogger } from "../../../shared/utils/logger";
6
6
 
7
7
  const logger = createLogger("SubscriptionFlowProvider");
8
8
 
@@ -5,7 +5,7 @@ import { AtomicIcon, AtomicText } from "@umituz/react-native-design-system/atoms
5
5
  import { NavigationHeader } from "@umituz/react-native-design-system/molecules";
6
6
  import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
7
7
  import { useAuthStore, selectUserId } from "@umituz/react-native-auth";
8
- import { ScreenLayout } from "../../../../shared/presentation/layouts/ScreenLayout";
8
+ import { ScreenLayout } from "../../../shared/presentation/layouts/ScreenLayout";
9
9
  import { getCreditsRepository } from "../../../credits/infrastructure/CreditsRepositoryManager";
10
10
  import { SubscriptionHeader } from "./components/SubscriptionHeader";
11
11
  import { CreditsList } from "./components/CreditsList";
@@ -7,7 +7,7 @@ import { transactionListStyles } from "./TransactionList.styles";
7
7
  import { LoadingState, EmptyState } from "./TransactionListStates";
8
8
  import { DEFAULT_TRANSACTION_LIST_MAX_HEIGHT } from "./TransactionList.constants";
9
9
  import type { TransactionListTranslations, TransactionListProps } from "./TransactionList.types";
10
- import { isEmptyArray } from "../../../../shared/utils/arrayUtils";
10
+ import { isEmptyArray } from "../../../shared/utils/arrayUtils";
11
11
 
12
12
  export type { TransactionListTranslations };
13
13
 
@@ -5,8 +5,8 @@ import type {
5
5
  CreditLog,
6
6
  TransactionRepositoryConfig,
7
7
  } from "../../domain/types/transaction.types";
8
- import { requireFirestore } from "../../../../shared/infrastructure/firestore/collectionUtils";
9
- import { useFirestoreCollectionRealTime } from "../../../../shared/presentation/hooks/useFirestoreRealTime";
8
+ import { requireFirestore } from "../../../shared/infrastructure/firestore/collectionUtils";
9
+ import { useFirestoreCollectionRealTime } from "../../../shared/presentation/hooks/useFirestoreRealTime";
10
10
 
11
11
  export interface UseTransactionHistoryParams {
12
12
  config: TransactionRepositoryConfig;
@@ -2,7 +2,7 @@ import React from "react";
2
2
  import { View, StyleSheet, TouchableOpacity } from "react-native";
3
3
  import { AtomicText, AtomicIcon, AtomicSpinner } from "@umituz/react-native-design-system/atoms";
4
4
  import { useAppDesignTokens } from "@umituz/react-native-design-system/theme";
5
- import { ScreenLayout } from "../../../../shared/presentation/layouts/ScreenLayout";
5
+ import { ScreenLayout } from "../../../shared/presentation/layouts/ScreenLayout";
6
6
  import { useAppNavigation } from "@umituz/react-native-design-system/molecules";
7
7
  import { useWallet } from "../hooks/useWallet";
8
8
  import { getWalletConfig } from "../../infrastructure/config/walletConfig";