From 5520557b3fcc2d80589a45a3364d181beeaefc25 Mon Sep 17 00:00:00 2001 From: NickSxti Date: Fri, 1 May 2026 13:40:48 +0400 Subject: [PATCH] Align onDeferredPurchaseCompleted param name with iOS (purchaseResult) Rename the supertype param from `transaction` to `purchaseResult` in `QonversionEventsListener.onDeferredPurchaseCompleted`. Aligns with iOS naming (RNQonversion.mm uses `purchaseResult`) and the param naming already chosen in react-native-sdk and flutter-sdk overrides. Without this rename, both react-native-sdk and flutter-sdk emit a Kotlin compiler warning on every build: warning: the corresponding parameter in the supertype 'QonversionEventsListener' is named 'transaction'. This may cause problems when calling this function with named arguments. (See react-native-sdk #439 for the original report.) The only call site within sandwich-sdk (QonversionSandwich.kt:512) passes a positional argument, so this is purely a metadata change for existing Java/Kotlin callers. No named-argument callers exist in the Qonversion repos. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../kotlin/io/qonversion/sandwich/QonversionEventsListener.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/sandwich/src/main/kotlin/io/qonversion/sandwich/QonversionEventsListener.kt b/android/sandwich/src/main/kotlin/io/qonversion/sandwich/QonversionEventsListener.kt index 53a12bd..62c2c51 100644 --- a/android/sandwich/src/main/kotlin/io/qonversion/sandwich/QonversionEventsListener.kt +++ b/android/sandwich/src/main/kotlin/io/qonversion/sandwich/QonversionEventsListener.kt @@ -4,5 +4,5 @@ interface QonversionEventsListener { fun onEntitlementsUpdated(entitlements: BridgeData) - fun onDeferredPurchaseCompleted(transaction: BridgeData) + fun onDeferredPurchaseCompleted(purchaseResult: BridgeData) }