expo-splash-screen 0.17.4 → 0.18.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 CHANGED
@@ -10,7 +10,17 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
- ## 0.17.42022-11-08
13
+ ## 0.18.02023-02-03
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - Fixed `No native splash screen registered for given view controller. Call 'SplashScreen.show' for given view controller first.` warning being displayed on iOS when app is started in background. ([#20064](https://github.com/expo/expo/pull/20064) by [@grigorigoldman](https://github.com/grigorigoldman))
18
+
19
+ ### 💡 Others
20
+
21
+ - On Android bump `compileSdkVersion` and `targetSdkVersion` to `33`. ([#20721](https://github.com/expo/expo/pull/20721) by [@lukmccall](https://github.com/lukmccall))
22
+
23
+ ## 0.17.4 - 2022-11-08
14
24
 
15
25
  ### 🐛 Bug fixes
16
26
 
@@ -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.17.4'
6
+ version = '0.18.0'
7
7
 
8
8
  buildscript {
9
9
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
@@ -59,7 +59,7 @@ afterEvaluate {
59
59
  }
60
60
 
61
61
  android {
62
- compileSdkVersion safeExtGet("compileSdkVersion", 31)
62
+ compileSdkVersion safeExtGet("compileSdkVersion", 33)
63
63
 
64
64
  compileOptions {
65
65
  sourceCompatibility JavaVersion.VERSION_11
@@ -72,9 +72,9 @@ android {
72
72
 
73
73
  defaultConfig {
74
74
  minSdkVersion safeExtGet('minSdkVersion', 21)
75
- targetSdkVersion safeExtGet("targetSdkVersion", 31)
75
+ targetSdkVersion safeExtGet("targetSdkVersion", 33)
76
76
  versionCode 17
77
- versionName '0.17.4'
77
+ versionName '0.18.0'
78
78
  }
79
79
  lintOptions {
80
80
  abortOnError false
@@ -114,7 +114,7 @@ EX_REGISTER_SINGLETON_MODULE(SplashScreen);
114
114
 
115
115
  - (void)onAppContentDidAppear:(UIViewController *)viewController
116
116
  {
117
- if (![self.splashScreenControllers objectForKey:viewController]) {
117
+ if ([self isAppActive] && ![self.splashScreenControllers objectForKey:viewController]) {
118
118
  EXLogWarn(@"No native splash screen registered for given view controller. Call 'SplashScreen.show' for given view controller first.");
119
119
  }
120
120
  BOOL needsHide = [[self.splashScreenControllers objectForKey:viewController] needsHideOnAppContentDidAppear];
@@ -128,7 +128,7 @@ EX_REGISTER_SINGLETON_MODULE(SplashScreen);
128
128
 
129
129
  - (void)onAppContentWillReload:(UIViewController *)viewController
130
130
  {
131
- if (![self.splashScreenControllers objectForKey:viewController]) {
131
+ if ([self isAppActive] && ![self.splashScreenControllers objectForKey:viewController]) {
132
132
  EXLogWarn(@"No native splash screen registered for given view controller. Call 'SplashScreen.show' for given view controller first.");
133
133
  }
134
134
  BOOL needsShow = [[self.splashScreenControllers objectForKey:viewController] needsShowOnAppContentWillReload];
@@ -142,6 +142,10 @@ EX_REGISTER_SINGLETON_MODULE(SplashScreen);
142
142
  }
143
143
  }
144
144
 
145
+ - (BOOL)isAppActive {
146
+ return UIApplication.sharedApplication.applicationState == UIApplicationStateActive;
147
+ }
148
+
145
149
  # pragma mark - UIApplicationDelegate
146
150
 
147
151
  - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-splash-screen",
3
- "version": "0.17.4",
3
+ "version": "0.18.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/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": "5.0.6"
41
+ "@expo/prebuild-config": "6.0.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "expo-module-scripts": "^3.0.0"
@@ -46,5 +46,5 @@
46
46
  "peerDependencies": {
47
47
  "expo": "*"
48
48
  },
49
- "gitHead": "4cfefb886fd394c376290f24dabf987cdd6e6ca0"
49
+ "gitHead": "1815e2eaad8c753588c7b1eb74420174a28e01f4"
50
50
  }
@@ -1,40 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>AvailableLibraries</key>
6
- <array>
7
- <dict>
8
- <key>LibraryIdentifier</key>
9
- <string>ios-arm64</string>
10
- <key>LibraryPath</key>
11
- <string>EXSplashScreen.framework</string>
12
- <key>SupportedArchitectures</key>
13
- <array>
14
- <string>arm64</string>
15
- </array>
16
- <key>SupportedPlatform</key>
17
- <string>ios</string>
18
- </dict>
19
- <dict>
20
- <key>LibraryIdentifier</key>
21
- <string>ios-arm64_x86_64-simulator</string>
22
- <key>LibraryPath</key>
23
- <string>EXSplashScreen.framework</string>
24
- <key>SupportedArchitectures</key>
25
- <array>
26
- <string>arm64</string>
27
- <string>x86_64</string>
28
- </array>
29
- <key>SupportedPlatform</key>
30
- <string>ios</string>
31
- <key>SupportedPlatformVariant</key>
32
- <string>simulator</string>
33
- </dict>
34
- </array>
35
- <key>CFBundlePackageType</key>
36
- <string>XFWK</string>
37
- <key>XCFrameworkFormatVersion</key>
38
- <string>1.0</string>
39
- </dict>
40
- </plist>