expo-modules-core 1.0.2 → 1.0.3

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,12 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 1.0.3 — 2022-11-14
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - Fixed failed resolution of 'java.nio.file.Path' on Android.
18
+
13
19
  ## 1.0.2 — 2022-11-08
14
20
 
15
21
  ### 💡 Others
@@ -6,7 +6,7 @@ apply plugin: 'maven-publish'
6
6
  apply plugin: "de.undercouch.download"
7
7
 
8
8
  group = 'host.exp.exponent'
9
- version = '1.0.2'
9
+ version = '1.0.3'
10
10
 
11
11
  buildscript {
12
12
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
@@ -191,7 +191,7 @@ android {
191
191
  targetSdkVersion safeExtGet("targetSdkVersion", 31)
192
192
  consumerProguardFiles 'proguard-rules.pro'
193
193
  versionCode 1
194
- versionName "1.0.2"
194
+ versionName "1.0.3"
195
195
  buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled.toString()
196
196
 
197
197
  testInstrumentationRunner "expo.modules.TestRunner"
@@ -145,7 +145,7 @@ object TypeConverterProviderImpl : TypeConverterProvider {
145
145
  isOptional, ExpectedType(CppType.BOOLEAN)
146
146
  ) { it.asBoolean() }
147
147
 
148
- return mapOf(
148
+ val converters = mapOf(
149
149
  Int::class.createType(nullable = isOptional) to intTypeConverter,
150
150
  java.lang.Integer::class.createType(nullable = isOptional) to intTypeConverter,
151
151
 
@@ -229,9 +229,16 @@ object TypeConverterProviderImpl : TypeConverterProvider {
229
229
  URI::class.createType(nullable = isOptional) to JavaURITypeConverter(isOptional),
230
230
 
231
231
  File::class.createType(nullable = isOptional) to FileTypeConverter(isOptional),
232
- Path::class.createType(nullable = isOptional) to PathTypeConverter(isOptional),
233
232
 
234
233
  Any::class.createType(nullable = isOptional) to AnyTypeConverter(isOptional),
235
234
  )
235
+
236
+ if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) {
237
+ return converters + mapOf(
238
+ Path::class.createType(nullable = isOptional) to PathTypeConverter(isOptional),
239
+ )
240
+ }
241
+
242
+ return converters
236
243
  }
237
244
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-modules-core",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "The core of Expo Modules architecture",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -42,5 +42,5 @@
42
42
  "@testing-library/react-hooks": "^7.0.1",
43
43
  "expo-module-scripts": "^3.0.0"
44
44
  },
45
- "gitHead": "4cfefb886fd394c376290f24dabf987cdd6e6ca0"
45
+ "gitHead": "764c38217ab6bda6d6fe32858cef1a13b89a20a6"
46
46
  }