@@ -38,9 +38,7 @@ class ReceiptManager(
3838 private var delegate : ProductsFetcher ? ,
3939 private val billing : Billing ,
4040 private val ioScope : IOScope = IOScope (),
41- // private val receiptData: () -> ByteArray? = ReceiptLogic::getReceiptData
4241) {
43- var latestSubscriptionStateValue: LatestSubscriptionState ? = null
4442 var latestSubscriptionWillAutoRenew: Boolean? = null
4543 var latestSubscriptionPeriodType: LatestPeriodType ? = null
4644 var transactionReceipts: MutableList <TransactionReceipt > = mutableListOf ()
@@ -52,9 +50,7 @@ class ReceiptManager(
5250 val subscriptions : List <SubscriptionTransaction >,
5351 )
5452
55- var purchasedSubscriptionGroupIds: Set <String >? = null
5653 private var _purchases : MutableSet <InAppPurchase > = mutableSetOf ()
57- private var receiptRefreshCompletion: ((Boolean ) -> Unit )? = null
5854 private val latestSubscriptionState: MutableStateFlow <LatestSubscriptionState > =
5955 MutableStateFlow (LatestSubscriptionState .UNKNOWN )
6056
@@ -499,16 +495,6 @@ class ReceiptManager(
499495 }
500496 }
501497
502- suspend fun loadIntroOfferEligibility (storeProducts : Set <StoreProduct >) {
503- // Android doesn't have a direct equivalent to iOS intro offer eligibility
504- // This would need to be implemented based on purchase history analysis
505- Logger .debug(
506- logLevel = LogLevel .debug,
507- scope = LogScope .receipts,
508- message = " loadIntroOfferEligibility called for ${storeProducts.size} products" ,
509- )
510- }
511-
512498 suspend fun isEligibleForIntroOffer (storeProduct : StoreProduct ): Boolean {
513499 // Check if user has never purchased this subscription before
514500 val hasExistingPurchase =
0 commit comments