expo-splash-screen 0.13.4 → 0.13.5

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.5 — 2021-11-04
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - Fix `Cannot remove an observer <EXSplashScreenService> for the key path "rootViewController"` exception if applcation keyWindow changed. ([#14982](https://github.com/expo/expo/pull/14982) by [@kudo](https://github.com/kudo))
18
+
13
19
  ## 0.13.4 — 2021-10-22
14
20
 
15
21
  _This version does not introduce any user-facing changes._
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
3
3
  apply plugin: 'maven'
4
4
 
5
5
  group = 'host.exp.exponent'
6
- version = '0.13.4'
6
+ version = '0.13.5'
7
7
 
8
8
  buildscript {
9
9
  // Simple helper that allows the root project to override versions declared by this library.
@@ -57,7 +57,7 @@ android {
57
57
  minSdkVersion safeExtGet('minSdkVersion', 21)
58
58
  targetSdkVersion safeExtGet('targetSdkVersion', 30)
59
59
  versionCode 17
60
- versionName '0.13.4'
60
+ versionName '0.13.5'
61
61
  }
62
62
  lintOptions {
63
63
  abortOnError false
@@ -167,7 +167,8 @@ EX_REGISTER_SINGLETON_MODULE(SplashScreen);
167
167
  {
168
168
  NSAssert([NSThread isMainThread], @"Method must be called on main thread");
169
169
  if (self.observingRootViewController != nil) {
170
- [UIApplication.sharedApplication.keyWindow removeObserver:self forKeyPath:kRootViewController context:nil];
170
+ UIWindow *window = self.observingRootViewController.view.window;
171
+ [window removeObserver:self forKeyPath:kRootViewController context:nil];
171
172
  [self.observingRootViewController removeObserver:self forKeyPath:kView context:nil];
172
173
  self.observingRootViewController = nil;
173
174
  }
@@ -6,30 +6,30 @@
6
6
  <array>
7
7
  <dict>
8
8
  <key>LibraryIdentifier</key>
9
- <string>ios-arm64</string>
9
+ <string>ios-arm64_x86_64-simulator</string>
10
10
  <key>LibraryPath</key>
11
11
  <string>EXSplashScreen.framework</string>
12
12
  <key>SupportedArchitectures</key>
13
13
  <array>
14
14
  <string>arm64</string>
15
+ <string>x86_64</string>
15
16
  </array>
16
17
  <key>SupportedPlatform</key>
17
18
  <string>ios</string>
19
+ <key>SupportedPlatformVariant</key>
20
+ <string>simulator</string>
18
21
  </dict>
19
22
  <dict>
20
23
  <key>LibraryIdentifier</key>
21
- <string>ios-arm64_x86_64-simulator</string>
24
+ <string>ios-arm64</string>
22
25
  <key>LibraryPath</key>
23
26
  <string>EXSplashScreen.framework</string>
24
27
  <key>SupportedArchitectures</key>
25
28
  <array>
26
29
  <string>arm64</string>
27
- <string>x86_64</string>
28
30
  </array>
29
31
  <key>SupportedPlatform</key>
30
32
  <string>ios</string>
31
- <key>SupportedPlatformVariant</key>
32
- <string>simulator</string>
33
33
  </dict>
34
34
  </array>
35
35
  <key>CFBundlePackageType</key>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-splash-screen",
3
- "version": "0.13.4",
3
+ "version": "0.13.5",
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",
@@ -39,10 +39,10 @@
39
39
  "dependencies": {
40
40
  "@expo/configure-splash-screen": "^0.6.0",
41
41
  "@expo/prebuild-config": "^3.0.6",
42
- "expo-modules-core": "~0.4.4"
42
+ "expo-modules-core": "~0.4.7"
43
43
  },
44
44
  "devDependencies": {
45
45
  "expo-module-scripts": "^2.0.0"
46
46
  },
47
- "gitHead": "33b6a1b7ac70e664ccbe5965e707c0df6d704549"
47
+ "gitHead": "1bc71c99227e4b6112e2de0961deea88341b9ba0"
48
48
  }
@@ -7,8 +7,8 @@ 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.
9
9
  // This adds more JS to the package overall, but the trade-off is less copying between expo-cli/expo.
10
- config = withAndroidSplashScreen_1.withAndroidSplashScreen(config);
11
- config = withIosSplashScreen_1.withIosSplashScreen(config);
10
+ config = (0, withAndroidSplashScreen_1.withAndroidSplashScreen)(config);
11
+ config = (0, withIosSplashScreen_1.withIosSplashScreen)(config);
12
12
  return config;
13
13
  };
14
- exports.default = config_plugins_1.createRunOncePlugin(withSplashScreen, pkg.name, pkg.version);
14
+ exports.default = (0, config_plugins_1.createRunOncePlugin)(withSplashScreen, pkg.name, pkg.version);
@@ -1,13 +0,0 @@
1
- {
2
- "extends": "/Users/brentvatne/code/expo/packages/expo-splash-screen/tsconfig.json",
3
- "compilerOptions": {
4
- "module": "esnext",
5
- "typeRoots": [
6
- "./node_modules/@types",
7
- "../node_modules/@types",
8
- "../../node_modules/@types",
9
- "../../../node_modules/@types",
10
- "/Users/brentvatne/code/expo/packages/expo-module-scripts/ts-declarations"
11
- ]
12
- }
13
- }