From 8280627d463d2b2b787f2c51dec9e701edbb877c Mon Sep 17 00:00:00 2001 From: Mirzamehdi Karimov <32781662+mirzemehdi@users.noreply.github.com> Date: Sun, 12 May 2024 17:38:30 +0200 Subject: [PATCH] Fixing ios paywall view issue (#15) * Fixing ios paywall dismiss issue * Updating api and version to 0.3.1 --- gradle.properties | 2 +- kmprevenuecat-purchases-ui/kmprevenuecat_purchases_ui.podspec | 2 +- .../kotlin/com/mmk/kmprevenuecat/purchases/ui/Paywall.kt | 3 +-- kmprevenuecat-purchases/kmprevenuecat_purchases.podspec | 2 +- sampleApp/iosApp/iosApp/Info.plist | 1 - 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/gradle.properties b/gradle.properties index 9bb4229..919dab7 100644 --- a/gradle.properties +++ b/gradle.properties @@ -18,4 +18,4 @@ kotlin.mpp.enableCInteropCommonization=true #Development development=true -kmpRevenueCatVersion=0.3.0 \ No newline at end of file +kmpRevenueCatVersion=0.3.1 \ No newline at end of file diff --git a/kmprevenuecat-purchases-ui/kmprevenuecat_purchases_ui.podspec b/kmprevenuecat-purchases-ui/kmprevenuecat_purchases_ui.podspec index ba85c79..53188bb 100644 --- a/kmprevenuecat-purchases-ui/kmprevenuecat_purchases_ui.podspec +++ b/kmprevenuecat-purchases-ui/kmprevenuecat_purchases_ui.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |spec| spec.name = 'kmprevenuecat_purchases_ui' - spec.version = '0.3.0' + spec.version = '0.3.1' spec.homepage = '' spec.source = { :http=> ''} spec.authors = '' diff --git a/kmprevenuecat-purchases-ui/src/iosMain/kotlin/com/mmk/kmprevenuecat/purchases/ui/Paywall.kt b/kmprevenuecat-purchases-ui/src/iosMain/kotlin/com/mmk/kmprevenuecat/purchases/ui/Paywall.kt index c3ddce9..43428da 100644 --- a/kmprevenuecat-purchases-ui/src/iosMain/kotlin/com/mmk/kmprevenuecat/purchases/ui/Paywall.kt +++ b/kmprevenuecat-purchases-ui/src/iosMain/kotlin/com/mmk/kmprevenuecat/purchases/ui/Paywall.kt @@ -21,12 +21,11 @@ public actual fun Paywall( dismissRequestedHandler = null, shouldBlockTouchEvents = false ).apply { - updateWithDisplayCloseButton(shouldDisplayDismissButton) setDelegate(listener?.asRCPaywallViewControllerDelegate(onDismiss)) }.also { if (it.isBeingPresented().not()) rootViewController?.presentViewController(it, true, completion = { - if (it.isBeingPresented().not()) onDismiss() + println("Paywall PresentViewController completion is called") }) } } \ No newline at end of file diff --git a/kmprevenuecat-purchases/kmprevenuecat_purchases.podspec b/kmprevenuecat-purchases/kmprevenuecat_purchases.podspec index f91a8fc..2060cc2 100644 --- a/kmprevenuecat-purchases/kmprevenuecat_purchases.podspec +++ b/kmprevenuecat-purchases/kmprevenuecat_purchases.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |spec| spec.name = 'kmprevenuecat_purchases' - spec.version = '0.3.0' + spec.version = '0.3.1' spec.homepage = '' spec.source = { :http=> ''} spec.authors = '' diff --git a/sampleApp/iosApp/iosApp/Info.plist b/sampleApp/iosApp/iosApp/Info.plist index b2d1cc8..0c379ca 100644 --- a/sampleApp/iosApp/iosApp/Info.plist +++ b/sampleApp/iosApp/iosApp/Info.plist @@ -2,7 +2,6 @@ - CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleExecutable