expo-splash-screen 0.25.0 → 0.26.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.
- package/CHANGELOG.md +6 -0
- package/android/build.gradle +2 -2
- package/android/src/main/java/expo/modules/splashscreen/NativeResourcesBasedSplashScreenViewProvider.kt +1 -1
- package/android/src/main/java/expo/modules/splashscreen/SplashScreenModule.kt +18 -17
- package/android/src/main/java/expo/modules/splashscreen/SplashScreenReactActivityLifecycleListener.kt +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 0.26.0 — 2023-12-12
|
|
14
|
+
|
|
15
|
+
### 💡 Others
|
|
16
|
+
|
|
17
|
+
- Removed 'The current activity is no longer available' warning on Android. ([#25608](https://github.com/expo/expo/pull/25608) by [@gabrieldonadel](https://github.com/gabrieldonadel))
|
|
18
|
+
|
|
13
19
|
## 0.25.0 — 2023-11-14
|
|
14
20
|
|
|
15
21
|
### 🛠 Breaking changes
|
package/android/build.gradle
CHANGED
|
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
|
|
|
3
3
|
apply plugin: 'maven-publish'
|
|
4
4
|
|
|
5
5
|
group = 'host.exp.exponent'
|
|
6
|
-
version = '0.
|
|
6
|
+
version = '0.26.0'
|
|
7
7
|
|
|
8
8
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
9
9
|
if (expoModulesCorePlugin.exists()) {
|
|
@@ -94,7 +94,7 @@ android {
|
|
|
94
94
|
namespace "expo.modules.splashscreen"
|
|
95
95
|
defaultConfig {
|
|
96
96
|
versionCode 17
|
|
97
|
-
versionName '0.
|
|
97
|
+
versionName '0.26.0'
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
|
|
@@ -7,7 +7,7 @@ import androidx.core.content.ContextCompat
|
|
|
7
7
|
/* ktlint-disable no-unused-imports */
|
|
8
8
|
import expo.modules.splashscreen.SplashScreenImageResizeMode
|
|
9
9
|
import expo.modules.splashscreen.SplashScreenViewProvider
|
|
10
|
-
//
|
|
10
|
+
// EXPO_VERSIONING_NEEDS_PACKAGE_R
|
|
11
11
|
/* ktlint-enable no-unused-imports */
|
|
12
12
|
|
|
13
13
|
/**
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
package expo.modules.splashscreen
|
|
2
2
|
|
|
3
3
|
import expo.modules.kotlin.Promise
|
|
4
|
-
import expo.modules.kotlin.exception.Exceptions
|
|
5
4
|
import expo.modules.kotlin.modules.Module
|
|
6
5
|
import expo.modules.kotlin.modules.ModuleDefinition
|
|
7
6
|
import expo.modules.splashscreen.exceptions.HideAsyncException
|
|
@@ -18,25 +17,27 @@ class SplashScreenModule : Module() {
|
|
|
18
17
|
Name("ExpoSplashScreen")
|
|
19
18
|
|
|
20
19
|
AsyncFunction("preventAutoHideAsync") { promise: Promise ->
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
20
|
+
appContext.currentActivity?.let {
|
|
21
|
+
SplashScreen.preventAutoHide(
|
|
22
|
+
it,
|
|
23
|
+
{ hasEffect -> promise.resolve(hasEffect) },
|
|
24
|
+
{ m -> promise.reject(PreventAutoHideException(m)) }
|
|
25
|
+
)
|
|
26
|
+
} ?: run {
|
|
27
|
+
promise.resolve(false)
|
|
28
|
+
}
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
AsyncFunction("hideAsync") { promise: Promise ->
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
32
|
+
appContext.currentActivity?.let {
|
|
33
|
+
SplashScreen.hide(
|
|
34
|
+
it,
|
|
35
|
+
{ hasEffect -> promise.resolve(hasEffect) },
|
|
36
|
+
{ m -> promise.reject(HideAsyncException(m)) }
|
|
37
|
+
)
|
|
38
|
+
} ?: run {
|
|
39
|
+
promise.resolve(false)
|
|
40
|
+
}
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
43
|
}
|
|
@@ -9,7 +9,7 @@ import expo.modules.splashscreen.singletons.SplashScreen
|
|
|
9
9
|
// this needs to stay for versioning to work
|
|
10
10
|
/* ktlint-disable no-unused-imports */
|
|
11
11
|
import expo.modules.splashscreen.SplashScreenImageResizeMode
|
|
12
|
-
//
|
|
12
|
+
// EXPO_VERSIONING_NEEDS_PACKAGE_R
|
|
13
13
|
/* ktlint-enable no-unused-imports */
|
|
14
14
|
|
|
15
15
|
class SplashScreenReactActivityLifecycleListener(activityContext: Context) : ReactActivityLifecycleListener {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-splash-screen",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"description": "Provides a module to allow keeping the native Splash Screen visible until you choose to hide it.",
|
|
5
5
|
"main": "build",
|
|
6
6
|
"types": "build",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"license": "MIT",
|
|
35
35
|
"homepage": "https://docs.expo.dev/versions/latest/sdk/splash-screen/",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@expo/prebuild-config": "6.
|
|
37
|
+
"@expo/prebuild-config": "6.7.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"expo-module-scripts": "^3.0.0"
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"expo": "*"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "6aca7ce098ddc667776a3d7cf612adbb985e264a"
|
|
46
46
|
}
|