expo-modules-core 2.3.6 → 2.3.8

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.
package/CHANGELOG.md CHANGED
@@ -10,6 +10,18 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 2.3.8 — 2025-04-23
14
+
15
+ ### 💡 Others
16
+
17
+ - Droped support for Kotlin < `2.0.0`.
18
+
19
+ ## 2.3.7 — 2025-04-22
20
+
21
+ ### 🐛 Bug fixes
22
+
23
+ - Fixed adding SwiftUI views to navigation header ([#36305](https://github.com/expo/expo/pull/36305) by [@jakex7](https://github.com/jakex7))
24
+
13
25
  ## 2.3.6 — 2025-04-21
14
26
 
15
27
  ### 🐛 Bug fixes
@@ -2,28 +2,22 @@ import expo.modules.plugin.gradle.ExpoModuleExtension
2
2
  import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
3
3
 
4
4
  buildscript {
5
- ext.KOTLIN_MAJOR_VERSION = kotlinVersion.split("\\.")[0].toInteger()
6
-
7
- if (KOTLIN_MAJOR_VERSION >= 2) {
8
- repositories {
9
- mavenCentral()
10
- }
5
+ repositories {
6
+ mavenCentral()
7
+ }
11
8
 
12
- dependencies {
13
- classpath("org.jetbrains.kotlin.plugin.compose:org.jetbrains.kotlin.plugin.compose.gradle.plugin:${kotlinVersion}")
14
- }
9
+ dependencies {
10
+ classpath("org.jetbrains.kotlin.plugin.compose:org.jetbrains.kotlin.plugin.compose.gradle.plugin:${kotlinVersion}")
15
11
  }
16
12
  }
17
13
 
18
14
  apply plugin: 'com.android.library'
19
15
  apply plugin: 'expo-module-gradle-plugin'
16
+ apply plugin: 'org.jetbrains.kotlin.plugin.compose'
20
17
 
21
- if (KOTLIN_MAJOR_VERSION >= 2) {
22
- apply plugin: 'org.jetbrains.kotlin.plugin.compose'
23
- }
24
18
 
25
19
  group = 'host.exp.exponent'
26
- version = '2.3.6'
20
+ version = '2.3.8'
27
21
 
28
22
  // List of features that are required by linked modules
29
23
  def coreFeatures = project.findProperty("coreFeatures") ?: []
@@ -76,7 +70,7 @@ android {
76
70
  defaultConfig {
77
71
  consumerProguardFiles 'proguard-rules.pro'
78
72
  versionCode 1
79
- versionName "2.3.6"
73
+ versionName "2.3.8"
80
74
  buildConfigField "String", "EXPO_MODULES_CORE_VERSION", "\"${versionName}\""
81
75
  buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled.toString()
82
76
 
@@ -107,12 +101,6 @@ android {
107
101
  compose true
108
102
  }
109
103
 
110
- if (KOTLIN_MAJOR_VERSION < 2) {
111
- composeOptions {
112
- kotlinCompilerExtensionVersion = "1.5.14"
113
- }
114
- }
115
-
116
104
  packagingOptions {
117
105
  // Gradle will add cmake target dependencies into packaging.
118
106
  // Theses files are intermediated linking files to build modules-core and should not be in final package.
@@ -1,7 +1,7 @@
1
1
  public protocol ReactNativeFactoryProvider: AnyObject {
2
2
  /**
3
3
  To decouple RCTAppDelegate dependency from expo-modules-core,
4
- expo-modules-core don't include the concrete `RCTReactNativeFactory` type and let the callsite to include the type
4
+ expo-modules-core doesn't include the concrete `RCTReactNativeFactory` type and let the callsite to include the type
5
5
  */
6
6
  associatedtype ReactNativeFactoryType
7
7
  var reactNativeFactory: ReactNativeFactoryType? { get }
@@ -196,7 +196,15 @@ extension ExpoSwiftUI {
196
196
  super.didMoveToWindow()
197
197
 
198
198
  if window != nil, let parentController = reactViewController() {
199
+ #if !os(macOS)
200
+ if parentController as? UINavigationController == nil {
201
+ // Swift automatically adds the hostingController in the correct place when the parentController
202
+ // is UINavigationController, since it's children are supposed to be only screens
203
+ parentController.addChild(hostingController)
204
+ }
205
+ #else
199
206
  parentController.addChild(hostingController)
207
+ #endif
200
208
  addSubview(hostingController.view)
201
209
  #if os(iOS) || os(tvOS)
202
210
  hostingController.didMove(toParent: parentController)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-modules-core",
3
- "version": "2.3.6",
3
+ "version": "2.3.8",
4
4
  "description": "The core of Expo Modules architecture",
5
5
  "main": "src/index.ts",
6
6
  "types": "build/index.d.ts",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "devDependencies": {
44
44
  "@testing-library/react-native": "^13.1.0",
45
- "expo-module-scripts": "^4.1.2"
45
+ "expo-module-scripts": "^4.1.4"
46
46
  },
47
- "gitHead": "f1394f21ff2719a9a3037d7511db170704e5c492"
47
+ "gitHead": "dd4ea2ac865a2b0c1f4ea3fc5879d90679099862"
48
48
  }