expo-splash-screen 0.14.1 → 0.15.1
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 +20 -0
- package/README.md +3 -3
- package/android/build.gradle +42 -25
- package/android/src/main/java/expo/modules/splashscreen/singletons/SplashScreen.kt +2 -2
- package/build/ExpoSplashScreen.d.ts +1 -0
- package/build/ExpoSplashScreen.d.ts.map +1 -0
- package/build/ExpoSplashScreen.web.d.ts +1 -0
- package/build/ExpoSplashScreen.web.d.ts.map +1 -0
- package/build/SplashScreen.d.ts +1 -0
- package/build/SplashScreen.d.ts.map +1 -0
- package/build/index.d.ts +1 -0
- package/build/index.d.ts.map +1 -0
- package/ios/EXSplashScreen/EXSplashScreenViewNativeProvider.m +3 -3
- package/ios/EXSplashScreen.xcframework/ios-arm64/EXSplashScreen.framework/EXSplashScreen +0 -0
- package/ios/EXSplashScreen.xcframework/ios-arm64/EXSplashScreen.framework/Info.plist +0 -0
- package/ios/EXSplashScreen.xcframework/ios-arm64_x86_64-simulator/EXSplashScreen.framework/EXSplashScreen +0 -0
- package/ios/EXSplashScreen.xcframework/ios-arm64_x86_64-simulator/EXSplashScreen.framework/Info.plist +0 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,26 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 0.15.1 — 2022-04-27
|
|
14
|
+
|
|
15
|
+
_This version does not introduce any user-facing changes._
|
|
16
|
+
|
|
17
|
+
## 0.15.0 — 2022-04-18
|
|
18
|
+
|
|
19
|
+
### 💡 Others
|
|
20
|
+
|
|
21
|
+
- Updated `@expo/config-plugins` from `4.0.2` to `4.0.14` ([#15621](https://github.com/expo/expo/pull/15621) by [@EvanBacon](https://github.com/EvanBacon))
|
|
22
|
+
|
|
23
|
+
### ⚠️ Notices
|
|
24
|
+
|
|
25
|
+
- On Android bump `compileSdkVersion` to `31`, `targetSdkVersion` to `31` and `Java` version to `11`. ([#16941](https://github.com/expo/expo/pull/16941) by [@bbarthec](https://github.com/bbarthec))
|
|
26
|
+
|
|
27
|
+
## 0.14.2 - 2022-02-01
|
|
28
|
+
|
|
29
|
+
### 🐛 Bug fixes
|
|
30
|
+
|
|
31
|
+
- Fix `Plugin with id 'maven' not found` build error from Android Gradle 7. ([#16080](https://github.com/expo/expo/pull/16080) by [@kudo](https://github.com/kudo))
|
|
32
|
+
|
|
13
33
|
## 0.14.1 — 2021-12-22
|
|
14
34
|
|
|
15
35
|
### 🐛 Bug fixes
|
package/README.md
CHANGED
|
@@ -229,7 +229,7 @@ const styles = StyleSheet.create({
|
|
|
229
229
|
|
|
230
230
|
## 💻 Installation in managed Expo projects
|
|
231
231
|
|
|
232
|
-
Refer to [the SplashScreen section of the Expo documentation](https://docs.expo.
|
|
232
|
+
Refer to [the SplashScreen section of the Expo documentation](https://docs.expo.dev/versions/latest/sdk/splash-screen/).
|
|
233
233
|
|
|
234
234
|
## 🖥 Installation in bare React Native projects
|
|
235
235
|
|
|
@@ -247,7 +247,7 @@ Run `npx pod-install` after installing the package.
|
|
|
247
247
|
|
|
248
248
|
### Automatic configuration
|
|
249
249
|
|
|
250
|
-
The easiest way to configure the splash screen in bare React Native projects is with the expo-splash-screen command. See the [README](https://github.com/expo/expo-cli/tree/
|
|
250
|
+
The easiest way to configure the splash screen in bare React Native projects is with the expo-splash-screen command. See the [README](https://github.com/expo/expo-cli/tree/main/unlinked-packages/configure-splash-screen) for more information, or run `yarn expo-splash-screen --help` in your project.
|
|
251
251
|
|
|
252
252
|
### Manual Configuration
|
|
253
253
|
|
|
@@ -501,7 +501,7 @@ To achieve fully-native splash screen behavior, `expo-splash-screen` needs to be
|
|
|
501
501
|
|
|
502
502
|
### Automatic configuration
|
|
503
503
|
|
|
504
|
-
The easiest way to configure the splash screen in bare React Native projects is with the expo-splash-screen command. See the [README](https://github.com/expo/expo-cli/tree/
|
|
504
|
+
The easiest way to configure the splash screen in bare React Native projects is with the expo-splash-screen command. See the [README](https://github.com/expo/expo-cli/tree/main/unlinked-packages/configure-splash-screen) for more information, or run `yarn expo-splash-screen --help` in your project.
|
|
505
505
|
|
|
506
506
|
### Manual Configuration
|
|
507
507
|
|
package/android/build.gradle
CHANGED
|
@@ -1,63 +1,80 @@
|
|
|
1
1
|
apply plugin: 'com.android.library'
|
|
2
2
|
apply plugin: 'kotlin-android'
|
|
3
|
-
apply plugin: 'maven'
|
|
3
|
+
apply plugin: 'maven-publish'
|
|
4
4
|
|
|
5
5
|
group = 'host.exp.exponent'
|
|
6
|
-
version = '0.
|
|
6
|
+
version = '0.15.1'
|
|
7
7
|
|
|
8
8
|
buildscript {
|
|
9
|
+
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
10
|
+
if (expoModulesCorePlugin.exists()) {
|
|
11
|
+
apply from: expoModulesCorePlugin
|
|
12
|
+
applyKotlinExpoModulesCorePlugin()
|
|
13
|
+
}
|
|
14
|
+
|
|
9
15
|
// Simple helper that allows the root project to override versions declared by this library.
|
|
10
16
|
ext.safeExtGet = { prop, fallback ->
|
|
11
17
|
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
|
12
18
|
}
|
|
13
19
|
|
|
20
|
+
// Ensures backward compatibility
|
|
21
|
+
ext.getKotlinVersion = {
|
|
22
|
+
if (ext.has("kotlinVersion")) {
|
|
23
|
+
ext.kotlinVersion()
|
|
24
|
+
} else {
|
|
25
|
+
ext.safeExtGet("kotlinVersion", "1.6.10")
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
14
29
|
repositories {
|
|
15
30
|
mavenCentral()
|
|
16
31
|
}
|
|
17
32
|
|
|
18
33
|
dependencies {
|
|
19
|
-
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${
|
|
34
|
+
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${getKotlinVersion()}")
|
|
20
35
|
}
|
|
21
36
|
}
|
|
22
37
|
|
|
23
|
-
// Upload android library to maven with javadoc and android sources
|
|
24
|
-
configurations {
|
|
25
|
-
deployerJars
|
|
26
|
-
}
|
|
27
|
-
|
|
28
38
|
// Creating sources with comments
|
|
29
39
|
task androidSourcesJar(type: Jar) {
|
|
30
40
|
classifier = 'sources'
|
|
31
41
|
from android.sourceSets.main.java.srcDirs
|
|
32
42
|
}
|
|
33
43
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
+
afterEvaluate {
|
|
45
|
+
publishing {
|
|
46
|
+
publications {
|
|
47
|
+
release(MavenPublication) {
|
|
48
|
+
from components.release
|
|
49
|
+
// Add additional sourcesJar to artifacts
|
|
50
|
+
artifact(androidSourcesJar)
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
repositories {
|
|
54
|
+
maven {
|
|
55
|
+
url = mavenLocal().url
|
|
56
|
+
}
|
|
44
57
|
}
|
|
45
58
|
}
|
|
46
59
|
}
|
|
47
60
|
|
|
48
61
|
android {
|
|
49
|
-
compileSdkVersion safeExtGet(
|
|
62
|
+
compileSdkVersion safeExtGet("compileSdkVersion", 31)
|
|
50
63
|
|
|
51
64
|
compileOptions {
|
|
52
|
-
sourceCompatibility JavaVersion.
|
|
53
|
-
targetCompatibility JavaVersion.
|
|
65
|
+
sourceCompatibility JavaVersion.VERSION_11
|
|
66
|
+
targetCompatibility JavaVersion.VERSION_11
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
kotlinOptions {
|
|
70
|
+
jvmTarget = JavaVersion.VERSION_11.majorVersion
|
|
54
71
|
}
|
|
55
72
|
|
|
56
73
|
defaultConfig {
|
|
57
74
|
minSdkVersion safeExtGet('minSdkVersion', 21)
|
|
58
|
-
targetSdkVersion safeExtGet(
|
|
75
|
+
targetSdkVersion safeExtGet("targetSdkVersion", 31)
|
|
59
76
|
versionCode 17
|
|
60
|
-
versionName '0.
|
|
77
|
+
versionName '0.15.1'
|
|
61
78
|
}
|
|
62
79
|
lintOptions {
|
|
63
80
|
abortOnError false
|
|
@@ -70,6 +87,6 @@ dependencies {
|
|
|
70
87
|
//noinspection GradleDynamicVersion
|
|
71
88
|
implementation 'com.facebook.react:react-native:+'
|
|
72
89
|
implementation 'androidx.appcompat:appcompat:1.2.0'
|
|
73
|
-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${
|
|
74
|
-
implementation "org.jetbrains.kotlin:kotlin-reflect:${
|
|
90
|
+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${getKotlinVersion()}"
|
|
91
|
+
implementation "org.jetbrains.kotlin:kotlin-reflect:${getKotlinVersion()}"
|
|
75
92
|
}
|
|
@@ -118,7 +118,7 @@ object SplashScreen : SingletonModule {
|
|
|
118
118
|
failureCallback: (reason: String) -> Unit
|
|
119
119
|
) {
|
|
120
120
|
if (!controllers.containsKey(activity)) {
|
|
121
|
-
return failureCallback("No native splash screen registered for provided activity. Please configure your application's main Activity to call 'SplashScreen.show' (https://github.com/expo/expo/tree/
|
|
121
|
+
return failureCallback("No native splash screen registered for provided activity. Please configure your application's main Activity to call 'SplashScreen.show' (https://github.com/expo/expo/tree/main/packages/expo-splash-screen#-configure-android).")
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
controllers[activity]?.preventAutoHide(successCallback, failureCallback)
|
|
@@ -140,7 +140,7 @@ object SplashScreen : SingletonModule {
|
|
|
140
140
|
failureCallback: (reason: String) -> Unit
|
|
141
141
|
) {
|
|
142
142
|
if (!controllers.containsKey(activity)) {
|
|
143
|
-
return failureCallback("No native splash screen registered for provided activity. Please configure your application's main Activity to call 'SplashScreen.show' (https://github.com/expo/expo/tree/
|
|
143
|
+
return failureCallback("No native splash screen registered for provided activity. Please configure your application's main Activity to call 'SplashScreen.show' (https://github.com/expo/expo/tree/main/packages/expo-splash-screen#-configure-android).")
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
controllers[activity]?.hideSplashScreen(successCallback, failureCallback)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExpoSplashScreen.d.ts","sourceRoot":"","sources":["../src/ExpoSplashScreen.ts"],"names":[],"mappings":";AAEA,wBAAyD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExpoSplashScreen.web.d.ts","sourceRoot":"","sources":["../src/ExpoSplashScreen.web.ts"],"names":[],"mappings":";;;;;AAAA,wBAUE"}
|
package/build/SplashScreen.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SplashScreen.d.ts","sourceRoot":"","sources":["../src/SplashScreen.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,OAAO,CAAC,CAK7D;AAGD;;;;GAIG;AACH,wBAAsB,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC,CAKlD;AAED;;;GAGG;AACH,wBAAgB,IAAI,IAAI,IAAI,CAG3B;AAED;;;GAGG;AACH,wBAAgB,eAAe,IAAI,IAAI,CAKtC"}
|
package/build/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
return splashScreenView;
|
|
22
22
|
} @catch (NSException *_) {
|
|
23
23
|
@throw [NSException exceptionWithName:@"ERR_INVALID_SPLASH_SCREEN"
|
|
24
|
-
reason:[NSString stringWithFormat:@"'%@.storyboard'does not contain proper ViewController. Add correct ViewController to your '%@.storyboard' file (https://github.com/expo/expo/tree/
|
|
24
|
+
reason:[NSString stringWithFormat:@"'%@.storyboard'does not contain proper ViewController. Add correct ViewController to your '%@.storyboard' file (https://github.com/expo/expo/tree/main/packages/expo-splash-screen#-configure-ios).", splashScreenFilename, splashScreenFilename]
|
|
25
25
|
userInfo:nil];
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
if (views) {
|
|
36
36
|
if (!views.firstObject) {
|
|
37
37
|
@throw [NSException exceptionWithName:@"ERR_INVALID_SPLASH_SCREEN"
|
|
38
|
-
reason:[NSString stringWithFormat:@"'%@.xib' does not contain any views. Add a view to the '%@.xib' or create '%@.storyboard' (https://github.com/expo/expo/tree/
|
|
38
|
+
reason:[NSString stringWithFormat:@"'%@.xib' does not contain any views. Add a view to the '%@.xib' or create '%@.storyboard' (https://github.com/expo/expo/tree/main/packages/expo-splash-screen#-configure-ios).", splashScreenFilename, splashScreenFilename, splashScreenFilename]
|
|
39
39
|
userInfo:nil];
|
|
40
40
|
}
|
|
41
41
|
UIView *view = views.firstObject;
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
@throw [NSException exceptionWithName:@"ERR_NO_SPLASH_SCREEN"
|
|
47
|
-
reason:[NSString stringWithFormat:@"Couln't locate neither '%@.storyboard' file nor '%@.xib' file. Create one of these in the project to make 'expo-splash-screen' work (https://github.com/expo/expo/tree/
|
|
47
|
+
reason:[NSString stringWithFormat:@"Couln't locate neither '%@.storyboard' file nor '%@.xib' file. Create one of these in the project to make 'expo-splash-screen' work (https://github.com/expo/expo/tree/main/packages/expo-splash-screen#-configure-ios).", splashScreenFilename, splashScreenFilename]
|
|
48
48
|
userInfo:nil];
|
|
49
49
|
}
|
|
50
50
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-splash-screen",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.1",
|
|
4
4
|
"description": "Provides a module to allow keeping the native Splash Screen visible until you choose to hide it.",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@expo/configure-splash-screen": "^0.6.0",
|
|
41
|
-
"@expo/prebuild-config": "
|
|
41
|
+
"@expo/prebuild-config": "~4.0.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"expo-module-scripts": "^2.0.0"
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"expo": "*"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "4f7771b63a73f5ffd12aaaeca58cd0d540b93885"
|
|
50
50
|
}
|