Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Commit

Permalink
Fixing ios paywall view issue (#15)
Browse files Browse the repository at this point in the history
* Fixing ios paywall dismiss issue

* Updating api and version to 0.3.1
  • Loading branch information
mirzemehdi authored May 12, 2024
1 parent d8b057e commit 8280627
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ kotlin.mpp.enableCInteropCommonization=true
#Development
development=true

kmpRevenueCatVersion=0.3.0
kmpRevenueCatVersion=0.3.1
Original file line number Diff line number Diff line change
@@ -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 = ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
})
}
}
2 changes: 1 addition & 1 deletion kmprevenuecat-purchases/kmprevenuecat_purchases.podspec
Original file line number Diff line number Diff line change
@@ -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 = ''
Expand Down
1 change: 0 additions & 1 deletion sampleApp/iosApp/iosApp/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>

<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
Expand Down

0 comments on commit 8280627

Please sign in to comment.