expo-splash-screen 0.16.1 → 0.17.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,6 +10,22 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 0.17.0 — 2022-10-25
14
+
15
+ ### 🛠 Breaking changes
16
+
17
+ - Bumped iOS deployment target to 13.0 and deprecated support for iOS 12. ([#18873](https://github.com/expo/expo/pull/18873) by [@tsapeta](https://github.com/tsapeta))
18
+
19
+ ### 💡 Others
20
+
21
+ - [plugin] Migrate import from @expo/config-plugins to expo/config-plugins and @expo/config-types to expo/config. ([#18855](https://github.com/expo/expo/pull/18855) by [@brentvatne](https://github.com/brentvatne))
22
+
23
+ ## 0.16.2 - 2022-08-22
24
+
25
+ ### 🐛 Bug fixes
26
+
27
+ - Fixed `'SplashScreen.show' has already been called for given view controller.` warning being displayed when using `expo-dev-client` on iOS. ([#18682](https://github.com/expo/expo/pull/18682) by [@lukmccall](https://github.com/lukmccall))
28
+
13
29
  ## 0.16.1 — 2022-07-16
14
30
 
15
31
  ### 🐛 Bug fixes
@@ -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.16.1'
6
+ version = '0.17.0'
7
7
 
8
8
  buildscript {
9
9
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
@@ -74,7 +74,7 @@ android {
74
74
  minSdkVersion safeExtGet('minSdkVersion', 21)
75
75
  targetSdkVersion safeExtGet("targetSdkVersion", 31)
76
76
  versionCode 17
77
- versionName '0.16.1'
77
+ versionName '0.17.0'
78
78
  }
79
79
  lintOptions {
80
80
  abortOnError false
@@ -188,7 +188,10 @@ EX_REGISTER_SINGLETON_MODULE(SplashScreen);
188
188
  {
189
189
  if (object == UIApplication.sharedApplication.keyWindow && [keyPath isEqualToString:kRootViewController]) {
190
190
  UIViewController *newRootViewController = change[@"new"];
191
- if (newRootViewController != nil) {
191
+ // For unknown reasons, this function may be sometimes called twice with the same changes.
192
+ // What leads to warnings like this one: `'SplashScreen.show' has already been called for given view controller`.
193
+ // To prevent this weird behaviour, we check if the value was really changed.
194
+ if (newRootViewController != nil && newRootViewController != self.observingRootViewController) {
192
195
  [self removeRootViewControllerListener];
193
196
  [self showSplashScreenFor:newRootViewController options:EXSplashScreenDefault];
194
197
  [self addRootViewControllerListener];
@@ -10,7 +10,7 @@ Pod::Spec.new do |s|
10
10
  s.license = package['license']
11
11
  s.author = package['author']
12
12
  s.homepage = package['homepage']
13
- s.platform = :ios, '12.0'
13
+ s.platform = :ios, '13.0'
14
14
  s.source = { git: 'https://github.com/expo/expo.git' }
15
15
  s.static_framework = true
16
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-splash-screen",
3
- "version": "0.16.1",
3
+ "version": "0.17.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",
@@ -41,10 +41,10 @@
41
41
  "@expo/prebuild-config": "~5.0.0"
42
42
  },
43
43
  "devDependencies": {
44
- "expo-module-scripts": "^2.0.0"
44
+ "expo-module-scripts": "^3.0.0"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "expo": "*"
48
48
  },
49
- "gitHead": "c6678c65b68e45062d49a2deea8e822f69388278"
49
+ "gitHead": "eab2b09c735fb0fc2bf734a3f29a6593adba3838"
50
50
  }
@@ -1,3 +1,3 @@
1
- import { ConfigPlugin } from '@expo/config-plugins';
1
+ import { ConfigPlugin } from 'expo/config-plugins';
2
2
  declare const _default: ConfigPlugin<void>;
3
3
  export default _default;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const config_plugins_1 = require("@expo/config-plugins");
4
3
  const withAndroidSplashScreen_1 = require("@expo/prebuild-config/build/plugins/unversioned/expo-splash-screen/withAndroidSplashScreen");
5
4
  const withIosSplashScreen_1 = require("@expo/prebuild-config/build/plugins/unversioned/expo-splash-screen/withIosSplashScreen");
5
+ const config_plugins_1 = require("expo/config-plugins");
6
6
  const pkg = require('expo-splash-screen/package.json');
7
7
  const withSplashScreen = (config) => {
8
8
  // For simplicity, we'll version the unversioned code in expo-splash-screen.
@@ -1,6 +1,6 @@
1
- import { ConfigPlugin, createRunOncePlugin } from '@expo/config-plugins';
2
1
  import { withAndroidSplashScreen } from '@expo/prebuild-config/build/plugins/unversioned/expo-splash-screen/withAndroidSplashScreen';
3
2
  import { withIosSplashScreen } from '@expo/prebuild-config/build/plugins/unversioned/expo-splash-screen/withIosSplashScreen';
3
+ import { ConfigPlugin, createRunOncePlugin } from 'expo/config-plugins';
4
4
 
5
5
  const pkg = require('expo-splash-screen/package.json');
6
6