expo-modules-core 0.13.2 → 0.13.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
|
+
## 0.13.3 — 2022-10-30
|
|
14
|
+
|
|
15
|
+
### 🎉 New features
|
|
16
|
+
|
|
17
|
+
- Added `AppContext.hasActiveReactInstance` on Android. ([#19723](https://github.com/expo/expo/pull/19723) by [@lukmccall](https://github.com/lukmccall))
|
|
18
|
+
|
|
13
19
|
## 0.13.2 — 2022-10-28
|
|
14
20
|
|
|
15
21
|
### 🐛 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.3'
|
|
10
10
|
|
|
11
11
|
buildscript {
|
|
12
12
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
@@ -186,7 +186,7 @@ android {
|
|
|
186
186
|
targetSdkVersion safeExtGet("targetSdkVersion", 31)
|
|
187
187
|
consumerProguardFiles 'proguard-rules.pro'
|
|
188
188
|
versionCode 1
|
|
189
|
-
versionName "0.13.
|
|
189
|
+
versionName "0.13.3"
|
|
190
190
|
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled.toString()
|
|
191
191
|
|
|
192
192
|
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.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": "
|
|
45
|
+
"gitHead": "779ad6af070d07a14f371e3106f02ddd1b093538"
|
|
46
46
|
}
|