@primer-io/react-native 2.33.0 → 2.34.1

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.
@@ -182,7 +182,7 @@ dependencies {
182
182
  api 'com.facebook.react:react-native:+'
183
183
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
184
184
  implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.3"
185
- implementation 'io.primer:android:2.40.1'
185
+ implementation 'io.primer:android:2.41.0'
186
186
  testImplementation 'io.mockk:mockk:1.14.2'
187
187
  testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.2'
188
188
  testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.2'
@@ -256,7 +256,7 @@ class PrimerRNHeadlessUniversalCheckoutKlarnaComponent(
256
256
  Json.encodeToString(paymentCategory.toHashMap() as Map<String, String>),
257
257
  )
258
258
 
259
- val activity = currentActivity
259
+ val activity = reactContext.currentActivity
260
260
 
261
261
  if (activity == null) {
262
262
  val exception = ErrorTypeRN.NativeBridgeFailed errorTo MISSING_ACTIVITY_ERROR
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer-io/react-native",
3
- "version": "2.33.0",
3
+ "version": "2.34.1",
4
4
  "description": "Primer SDK for RN",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -16,5 +16,5 @@ Pod::Spec.new do |s|
16
16
  s.source_files = "ios/**/*.{h,m,mm,swift}"
17
17
 
18
18
  s.dependency "React-Core"
19
- s.dependency "PrimerSDK", "2.38.2"
19
+ s.dependency "PrimerSDK", "2.39.0"
20
20
  end