react-native-purchases-ui 8.11.3 → 8.11.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,6 +17,6 @@ Pod::Spec.new do |spec|
17
17
  spec.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
18
18
 
19
19
  spec.dependency "React-Core"
20
- spec.dependency "PurchasesHybridCommonUI", '13.35.0'
20
+ spec.dependency "PurchasesHybridCommonUI", '13.37.0'
21
21
  spec.swift_version = '5.7'
22
22
  end
@@ -59,7 +59,7 @@ android {
59
59
  minSdkVersion getExtOrIntegerDefault("minSdkVersion")
60
60
  targetSdkVersion getExtOrIntegerDefault("targetSdkVersion")
61
61
  versionCode 1
62
- versionName '8.11.3'
62
+ versionName '8.11.5'
63
63
  }
64
64
 
65
65
  buildTypes {
@@ -91,7 +91,7 @@ dependencies {
91
91
  //noinspection GradleDynamicVersion
92
92
  implementation "com.facebook.react:react-native:+"
93
93
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
94
- implementation 'com.revenuecat.purchases:purchases-hybrid-common-ui:13.35.0'
94
+ implementation 'com.revenuecat.purchases:purchases-hybrid-common-ui:13.37.0'
95
95
  implementation 'androidx.compose.ui:ui-android:1.5.4'
96
96
  implementation "androidx.appcompat:appcompat:1.6.1"
97
97
  }
@@ -20,12 +20,12 @@ internal class RNPaywallsModule(
20
20
  const val NAME = "RNPaywalls"
21
21
  }
22
22
 
23
- private val currentActivityFragment: FragmentActivity?
23
+ private val currentFragmentActivity: FragmentActivity?
24
24
  get() {
25
25
  return when (val currentActivity = currentActivity) {
26
26
  is FragmentActivity -> currentActivity
27
27
  else -> {
28
- Log.e(NAME, "RevenueCat paywalls require application to use a FragmentActivity")
28
+ Log.e(NAME, "RevenueCat paywalls require applications to use a FragmentActivity")
29
29
  null
30
30
  }
31
31
  }
@@ -85,12 +85,12 @@ internal class RNPaywallsModule(
85
85
  fontFamilyName: String?,
86
86
  promise: Promise
87
87
  ) {
88
- val fragment = currentActivityFragment ?: return
88
+ val activity = currentFragmentActivity ?: return
89
89
  val fontFamily = fontFamilyName?.let {
90
- FontAssetManager.getPaywallFontFamily(fontFamilyName = it, fragment.resources.assets)
90
+ FontAssetManager.getPaywallFontFamily(fontFamilyName = it, activity.resources.assets)
91
91
  }
92
92
  presentPaywallFromFragment(
93
- fragment = fragment,
93
+ activity = activity,
94
94
  PresentPaywallOptions(
95
95
  requiredEntitlementIdentifier = requiredEntitlementIdentifier,
96
96
  shouldDisplayDismissButton = displayCloseButton,
@@ -37,7 +37,9 @@ abstract class ComposeViewWrapper<T : View> : FrameLayout {
37
37
  override fun onAttachedToWindow() {
38
38
  super.onAttachedToWindow()
39
39
  isAttached = true
40
- requestLayout()
40
+ post {
41
+ requestLayout()
42
+ }
41
43
  }
42
44
 
43
45
  override fun onDetachedFromWindow() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-native-purchases-ui",
3
3
  "title": "React Native Purchases UI",
4
- "version": "8.11.3",
4
+ "version": "8.11.5",
5
5
  "description": "React Native in-app purchases and subscriptions made easy. Supports iOS and Android.",
6
6
  "main": "lib/commonjs/index",
7
7
  "module": "lib/module/index",
@@ -114,7 +114,7 @@
114
114
  ]
115
115
  },
116
116
  "dependencies": {
117
- "@revenuecat/purchases-typescript-internal": "13.35.0",
118
- "react-native-purchases": "8.11.3"
117
+ "@revenuecat/purchases-typescript-internal": "13.37.0",
118
+ "react-native-purchases": "8.11.5"
119
119
  }
120
120
  }