expo-splash-screen 0.27.6 → 0.28.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,11 +10,21 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
- ## 0.27.6 — 2024-09-23
13
+ ## 0.28.0 — 2024-10-22
14
+
15
+ ### 🛠 Breaking changes
16
+
17
+ - Bumped iOS and tvOS deployment target to 15.1. ([#30840](https://github.com/expo/expo/pull/30840) by [@tsapeta](https://github.com/tsapeta))
18
+
19
+ ### 🐛 Bug fixes
20
+
21
+ - Fixed `preventAutoHideAsync()` broken on iOS bridgeless mode. ([#28234](https://github.com/expo/expo/pull/28234) by [@kudo](https://github.com/kudo))
22
+
23
+ ## 0.27.6 - 2024-09-23
14
24
 
15
25
  _This version does not introduce any user-facing changes._
16
26
 
17
- ## 0.27.5 2024-06-06
27
+ ## 0.27.5 - 2024-06-06
18
28
 
19
29
  _This version does not introduce any user-facing changes._
20
30
 
@@ -1,7 +1,7 @@
1
1
  apply plugin: 'com.android.library'
2
2
 
3
3
  group = 'host.exp.exponent'
4
- version = '0.27.6'
4
+ version = '0.28.0'
5
5
 
6
6
  def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
7
7
  apply from: expoModulesCorePlugin
@@ -14,7 +14,7 @@ android {
14
14
  namespace "expo.modules.splashscreen"
15
15
  defaultConfig {
16
16
  versionCode 17
17
- versionName '0.27.6'
17
+ versionName '0.28.0'
18
18
  }
19
19
  }
20
20
 
@@ -3,6 +3,7 @@
3
3
  #import <EXSplashScreen/EXSplashScreenModule.h>
4
4
  #import <EXSplashScreen/EXSplashScreenService.h>
5
5
  #import <React/RCTRootView.h>
6
+ #import <React/RCTSurfaceHostingView.h>
6
7
  #import <ExpoModulesCore/EXAppLifecycleService.h>
7
8
  #import <ExpoModulesCore/EXUtilities.h>
8
9
 
@@ -152,12 +153,12 @@ EX_EXPORT_METHOD_AS(preventAutoHideAsync,
152
153
 
153
154
  for (UIWindow *window in allWindows) {
154
155
  UIViewController *controller = window.rootViewController;
155
- if ([controller.view isKindOfClass:[RCTRootView class]]) {
156
+ if ([self isReactRootView:controller.view]) {
156
157
  return controller;
157
158
  }
158
159
  UIViewController *presentedController = controller.presentedViewController;
159
160
  while (presentedController && ![presentedController isBeingDismissed]) {
160
- if ([presentedController.view isKindOfClass:[RCTRootView class]]) {
161
+ if ([self isReactRootView:presentedController.view]) {
161
162
  return presentedController;
162
163
  }
163
164
  controller = presentedController;
@@ -169,4 +170,9 @@ EX_EXPORT_METHOD_AS(preventAutoHideAsync,
169
170
  return nil;
170
171
  }
171
172
 
173
+ - (BOOL)isReactRootView:(UIView*)view
174
+ {
175
+ return [view isKindOfClass:RCTRootView.class] || [view isKindOfClass:RCTSurfaceHostingView.class];
176
+ }
177
+
172
178
  @end
@@ -46,7 +46,6 @@ EX_REGISTER_SINGLETON_MODULE(SplashScreen);
46
46
  failureCallback:^(NSString *message){ EXLogWarn(@"%@", message); }];
47
47
  }
48
48
 
49
-
50
49
  - (void)showSplashScreenFor:(UIViewController *)viewController
51
50
  options:(EXSplashScreenOptions)options
52
51
  splashScreenViewProvider:(id<EXSplashScreenViewProvider>)splashScreenViewProvider
@@ -40,6 +40,7 @@
40
40
  [EXUtilities performSynchronouslyOnMainThread:^{
41
41
  UIView *rootView = self.rootView;
42
42
  self.splashScreenView.frame = rootView.bounds;
43
+ self.splashScreenView.layer.zPosition = MAXFLOAT;
43
44
  [rootView addSubview:self.splashScreenView];
44
45
  self.splashScreenShown = YES;
45
46
  if (successCallback) {
@@ -10,7 +10,10 @@ 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.platforms = { :ios => '13.4', :tvos => '13.4' }
13
+ s.platforms = {
14
+ :ios => '15.1',
15
+ :tvos => '15.1'
16
+ }
14
17
  s.source = { git: 'https://github.com/expo/expo.git' }
15
18
  s.static_framework = true
16
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-splash-screen",
3
- "version": "0.27.6",
3
+ "version": "0.28.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,13 +34,13 @@
34
34
  "license": "MIT",
35
35
  "homepage": "https://docs.expo.dev/versions/latest/sdk/splash-screen/",
36
36
  "dependencies": {
37
- "@expo/prebuild-config": "7.0.8"
37
+ "@expo/prebuild-config": "8.0.0"
38
38
  },
39
39
  "devDependencies": {
40
- "expo-module-scripts": "^3.0.0"
40
+ "expo-module-scripts": "^4.0.0"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "expo": "*"
44
44
  },
45
- "gitHead": "80602dd9f2501843baf8da0bd9df3f4e6c49edb8"
45
+ "gitHead": "685ebb8a213326cb33c80281ca8756b374ccb63d"
46
46
  }
package/tsconfig.json CHANGED
@@ -5,5 +5,5 @@
5
5
  "outDir": "./build"
6
6
  },
7
7
  "include": ["./src"],
8
- "exclude": ["**/__mocks__/*", "**/__tests__/*"]
8
+ "exclude": ["**/__mocks__/*", "**/__tests__/*", "**/__rsc_tests__/*"]
9
9
  }