@primer-io/react-native 2.39.1 → 2.40.0

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.
@@ -53,7 +53,7 @@ android {
53
53
  namespace "com.primerioreactnative"
54
54
  compileSdkVersion getExtOrIntegerDefault('compileSdkVersion')
55
55
  defaultConfig {
56
- minSdkVersion 21
56
+ minSdkVersion 23
57
57
  targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
58
58
  buildConfigField("boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString())
59
59
 
@@ -133,7 +133,7 @@ dependencies {
133
133
  implementation 'com.facebook.react:react-native:+'
134
134
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
135
135
  implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.3"
136
- implementation 'io.primer:android:2.44.1'
136
+ implementation 'io.primer:android:2.45.0'
137
137
  testImplementation 'io.mockk:mockk:1.14.2'
138
138
  testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.2'
139
139
  testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.2'
@@ -0,0 +1,11 @@
1
+ @protocol PrimerDelegate;
2
+
3
+ #import <React/RCTBridgeModule.h>
4
+ #import <React/RCTViewManager.h>
5
+
6
+ // When using frameworks the import is different.
7
+ #if __has_include("primer_io_react_native/primer_io_react_native-Swift.h")
8
+ #import <primer_io_react_native/primer_io_react_native-Swift.h>
9
+ #elif __has_include(<primer_io_react_native-Swift.h>)
10
+ #import <primer_io_react_native-Swift.h>
11
+ #endif
@@ -4,8 +4,7 @@
4
4
  //
5
5
 
6
6
  #import "RCTNativePrimer.h"
7
- @protocol PrimerDelegate;
8
- #import "primer_io_react_native-Swift.h"
7
+ #import "PrimerSwiftInterop.h"
9
8
 
10
9
  #ifdef RCT_NEW_ARCH_ENABLED
11
10
  #import <NativePrimerSpec/NativePrimerSpec.h>
@@ -1,2 +1,2 @@
1
1
  // swiftlint:disable:next identifier_name
2
- public let PrimerReactNativeSDKVersion = "2.39.1"
2
+ public let PrimerReactNativeSDKVersion = "2.40.0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer-io/react-native",
3
- "version": "2.39.1",
3
+ "version": "2.40.0",
4
4
  "description": "Primer SDK for RN",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
@@ -14,9 +14,10 @@ Pod::Spec.new do |s|
14
14
  s.source = { :git => "https://github.com/primer-io/primer-sdk-react-native.git", :tag => "#{s.version}" }
15
15
 
16
16
  s.source_files = "ios/**/*.{h,m,mm,swift}"
17
+ s.private_header_files = ['ios/PrimerSwiftInterop.h' ]
17
18
 
18
19
  s.dependency "React-Core"
19
- s.dependency "PrimerSDK", "2.42.0"
20
+ s.dependency "PrimerSDK", "2.42.2"
20
21
 
21
22
  s.pod_target_xcconfig = {
22
23
  "SWIFT_ENABLE_EXPLICIT_MODULES" => "NO"