diff --git a/apiTester/src/commonMain/kotlin/com/revenuecat/purchases/kmp/apitester/OfferingsAPI.kt b/apiTester/src/commonMain/kotlin/com/revenuecat/purchases/kmp/apitester/OfferingsAPI.kt index 8a0221a2..a7da4526 100644 --- a/apiTester/src/commonMain/kotlin/com/revenuecat/purchases/kmp/apitester/OfferingsAPI.kt +++ b/apiTester/src/commonMain/kotlin/com/revenuecat/purchases/kmp/apitester/OfferingsAPI.kt @@ -5,7 +5,6 @@ import com.revenuecat.purchases.kmp.Offerings import com.revenuecat.purchases.kmp.all import com.revenuecat.purchases.kmp.current import com.revenuecat.purchases.kmp.get -import com.revenuecat.purchases.kmp.getCurrentOfferingForPlacement import com.revenuecat.purchases.kmp.getOffering @Suppress("unused", "UNUSED_VARIABLE") @@ -16,7 +15,6 @@ private class OfferingsAPI { val all: Map = all val o1: Offering? = getOffering("") val o2: Offering? = this[""] - val o3: Offering? = getCurrentOfferingForPlacement("") } } } diff --git a/core/api/core.api b/core/api/core.api index 2ea24d79..e6ce3c2e 100644 --- a/core/api/core.api +++ b/core/api/core.api @@ -95,7 +95,6 @@ public final class com/revenuecat/purchases/kmp/OfferingsKt { public final class com/revenuecat/purchases/kmp/Offerings_androidKt { public static final fun getAll (Lcom/revenuecat/purchases/Offerings;)Ljava/util/Map; public static final fun getCurrent (Lcom/revenuecat/purchases/Offerings;)Lcom/revenuecat/purchases/Offering; - public static final fun getCurrentOfferingForPlacement (Lcom/revenuecat/purchases/Offerings;Ljava/lang/String;)Lcom/revenuecat/purchases/Offering; } public final class com/revenuecat/purchases/kmp/PackageKt { diff --git a/core/api/core.klib.api b/core/api/core.klib.api index 83e2d1ab..5c37c27a 100644 --- a/core/api/core.klib.api +++ b/core/api/core.klib.api @@ -531,7 +531,6 @@ final fun (cocoapods.PurchasesHybridCommon/RCOffering).com.revenuecat.purchases. final fun (cocoapods.PurchasesHybridCommon/RCOffering).com.revenuecat.purchases.kmp/getMetadataString(kotlin/String, kotlin/String): kotlin/String // com.revenuecat.purchases.kmp/getMetadataString|getMetadataString@cocoapods.PurchasesHybridCommon.RCOffering(kotlin.String;kotlin.String){}[0] final fun (cocoapods.PurchasesHybridCommon/RCOffering).com.revenuecat.purchases.kmp/getPackage(kotlin/String): cocoapods.PurchasesHybridCommon/RCPackage? // com.revenuecat.purchases.kmp/getPackage|getPackage@cocoapods.PurchasesHybridCommon.RCOffering(kotlin.String){}[0] final fun (cocoapods.PurchasesHybridCommon/RCOfferings).com.revenuecat.purchases.kmp/get(kotlin/String): cocoapods.PurchasesHybridCommon/RCOffering? // com.revenuecat.purchases.kmp/get|get@cocoapods.PurchasesHybridCommon.RCOfferings(kotlin.String){}[0] -final fun (cocoapods.PurchasesHybridCommon/RCOfferings).com.revenuecat.purchases.kmp/getCurrentOfferingForPlacement(kotlin/String): cocoapods.PurchasesHybridCommon/RCOffering? // com.revenuecat.purchases.kmp/getCurrentOfferingForPlacement|getCurrentOfferingForPlacement@cocoapods.PurchasesHybridCommon.RCOfferings(kotlin.String){}[0] final fun (cocoapods.PurchasesHybridCommon/RCOfferings).com.revenuecat.purchases.kmp/getOffering(kotlin/String): cocoapods.PurchasesHybridCommon/RCOffering? // com.revenuecat.purchases.kmp/getOffering|getOffering@cocoapods.PurchasesHybridCommon.RCOfferings(kotlin.String){}[0] final fun (cocoapods.PurchasesHybridCommon/RCStoreProductDiscount).com.revenuecat.purchases.kmp.models/price(cocoapods.PurchasesHybridCommon/RCStoreProduct): com.revenuecat.purchases.kmp.models/Price // com.revenuecat.purchases.kmp.models/price|price@cocoapods.PurchasesHybridCommon.RCStoreProductDiscount(cocoapods.PurchasesHybridCommon.RCStoreProduct){}[0] final fun (com.revenuecat.purchases.kmp.i18n/Locale).com.revenuecat.purchases.kmp.i18n/toNsLocale(): platform.Foundation/NSLocale // com.revenuecat.purchases.kmp.i18n/toNsLocale|toNsLocale@com.revenuecat.purchases.kmp.i18n.Locale(){}[0] diff --git a/core/src/androidMain/kotlin/com/revenuecat/purchases/kmp/Offerings.android.kt b/core/src/androidMain/kotlin/com/revenuecat/purchases/kmp/Offerings.android.kt index 698be58b..984db72f 100644 --- a/core/src/androidMain/kotlin/com/revenuecat/purchases/kmp/Offerings.android.kt +++ b/core/src/androidMain/kotlin/com/revenuecat/purchases/kmp/Offerings.android.kt @@ -11,6 +11,3 @@ public actual val Offerings.current: Offering? public actual val Offerings.all: Map get() = all - -public actual fun Offerings.getCurrentOfferingForPlacement(placementId: String): Offering? = - getCurrentOfferingForPlacement(placementId) diff --git a/core/src/commonMain/kotlin/com/revenuecat/purchases/kmp/Offerings.kt b/core/src/commonMain/kotlin/com/revenuecat/purchases/kmp/Offerings.kt index 80addb15..2d95be9f 100644 --- a/core/src/commonMain/kotlin/com/revenuecat/purchases/kmp/Offerings.kt +++ b/core/src/commonMain/kotlin/com/revenuecat/purchases/kmp/Offerings.kt @@ -16,13 +16,6 @@ public expect val Offerings.current: Offering? */ public expect val Offerings.all: Map -/** - * Retrieves an specific offering by a placement identifier. - * For more info see https://www.revenuecat.com/docs/tools/targeting - * @param placementId Placement identifier - */ -public expect fun Offerings.getCurrentOfferingForPlacement(placementId: String): Offering? - /** * Retrieves an specific offering by its identifier. * @param identifier Offering identifier diff --git a/core/src/iosMain/kotlin/com/revenuecat/purchases/kmp/Offerings.ios.kt b/core/src/iosMain/kotlin/com/revenuecat/purchases/kmp/Offerings.ios.kt index b98ae443..8580f6f0 100644 --- a/core/src/iosMain/kotlin/com/revenuecat/purchases/kmp/Offerings.ios.kt +++ b/core/src/iosMain/kotlin/com/revenuecat/purchases/kmp/Offerings.ios.kt @@ -12,6 +12,3 @@ public actual val Offerings.all: Map get() = all().mapEntries { (offeringId, offering) -> offeringId as String to offering as Offering } - -public actual fun Offerings.getCurrentOfferingForPlacement(placementId: String): Offering? = - TODO() // FIXME no public api available through ObjC in PHC?