expo-modules-core 0.13.2 → 0.13.4
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
|
+
## 0.13.4 — 2022-11-02
|
|
14
|
+
|
|
15
|
+
### 🐛 Bug fixes
|
|
16
|
+
|
|
17
|
+
- Fixed build errors when testing on React Native nightly builds. ([#19369](https://github.com/expo/expo/pull/19369) by [@kudo](https://github.com/kudo))
|
|
18
|
+
|
|
19
|
+
## 0.13.3 — 2022-10-30
|
|
20
|
+
|
|
21
|
+
### 🎉 New features
|
|
22
|
+
|
|
23
|
+
- Added `AppContext.hasActiveReactInstance` on Android. ([#19723](https://github.com/expo/expo/pull/19723) by [@lukmccall](https://github.com/lukmccall))
|
|
24
|
+
|
|
13
25
|
## 0.13.2 — 2022-10-28
|
|
14
26
|
|
|
15
27
|
### 🐛 Bug fixes
|
package/android/build.gradle
CHANGED
|
@@ -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 = '0.13.
|
|
9
|
+
version = '0.13.4'
|
|
10
10
|
|
|
11
11
|
buildscript {
|
|
12
12
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
@@ -67,7 +67,12 @@ file("$REACT_NATIVE_DIR/ReactAndroid/gradle.properties").withInputStream { react
|
|
|
67
67
|
def FOLLY_VERSION = reactProperties.getProperty("FOLLY_VERSION")
|
|
68
68
|
def BOOST_VERSION = reactProperties.getProperty("BOOST_VERSION")
|
|
69
69
|
def DOUBLE_CONVERSION_VERSION = reactProperties.getProperty("DOUBLE_CONVERSION_VERSION")
|
|
70
|
-
def
|
|
70
|
+
def REACT_NATIVE_VERSION = reactProperties.getProperty("VERSION_NAME")
|
|
71
|
+
if (REACT_NATIVE_VERSION.startsWith("0.0.0-")) {
|
|
72
|
+
// react-native nightly build published as `0.0.0-20221002-2027-2319f75c8` form, but its semantic is latest
|
|
73
|
+
REACT_NATIVE_VERSION = "9999.9999.9999"
|
|
74
|
+
}
|
|
75
|
+
def REACT_NATIVE_TARGET_VERSION = REACT_NATIVE_VERSION.split("\\.")[1].toInteger()
|
|
71
76
|
|
|
72
77
|
def reactNativeThirdParty = new File("$REACT_NATIVE_DIR/ReactAndroid/src/main/jni/third-party")
|
|
73
78
|
|
|
@@ -186,7 +191,7 @@ android {
|
|
|
186
191
|
targetSdkVersion safeExtGet("targetSdkVersion", 31)
|
|
187
192
|
consumerProguardFiles 'proguard-rules.pro'
|
|
188
193
|
versionCode 1
|
|
189
|
-
versionName "0.13.
|
|
194
|
+
versionName "0.13.4"
|
|
190
195
|
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled.toString()
|
|
191
196
|
|
|
192
197
|
testInstrumentationRunner "expo.modules.TestRunner"
|
|
@@ -164,13 +164,15 @@ class AppContext(
|
|
|
164
164
|
* A directory for storing user documents and other permanent files.
|
|
165
165
|
*/
|
|
166
166
|
val persistentFilesDirectory: File
|
|
167
|
-
get() = appDirectories?.persistentFilesDirectory
|
|
167
|
+
get() = appDirectories?.persistentFilesDirectory
|
|
168
|
+
?: throw ModuleNotFoundException("expo.modules.interfaces.filesystem.AppDirectories")
|
|
168
169
|
|
|
169
170
|
/**
|
|
170
171
|
* A directory for storing temporary files that can be removed at any time by the device's operating system.
|
|
171
172
|
*/
|
|
172
173
|
val cacheDirectory: File
|
|
173
|
-
get() = appDirectories?.cacheDirectory
|
|
174
|
+
get() = appDirectories?.cacheDirectory
|
|
175
|
+
?: throw ModuleNotFoundException("expo.modules.interfaces.filesystem.AppDirectories")
|
|
174
176
|
|
|
175
177
|
/**
|
|
176
178
|
* Provides access to the permissions manager from the legacy module registry
|
|
@@ -226,6 +228,12 @@ class AppContext(
|
|
|
226
228
|
val reactContext: Context?
|
|
227
229
|
get() = reactContextHolder.get()
|
|
228
230
|
|
|
231
|
+
/**
|
|
232
|
+
* @return true if there is an non-null, alive react native instance
|
|
233
|
+
*/
|
|
234
|
+
val hasActiveReactInstance: Boolean
|
|
235
|
+
get() = reactContextHolder.get()?.hasActiveReactInstance() ?: false
|
|
236
|
+
|
|
229
237
|
/**
|
|
230
238
|
* Provides access to the event emitter
|
|
231
239
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-modules-core",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.4",
|
|
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": "
|
|
45
|
+
"gitHead": "1a87dcc55895a9e16e3d4fd0fa78f2244c1d961f"
|
|
46
46
|
}
|