expo-splash-screen 0.13.4 → 0.14.2

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,24 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 0.14.2 — 2022-02-01
14
+
15
+ ### 🐛 Bug fixes
16
+
17
+ - 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))
18
+
19
+ ## 0.14.1 — 2021-12-22
20
+
21
+ ### 🐛 Bug fixes
22
+
23
+ - Remove duplicated `expo-modules-autolinking` package coming from `expo-splash-screen` dependencies. ([#15685](https://github.com/expo/expo/pull/15685) by [@kudo](https://github.com/kudo))
24
+
25
+ ## 0.14.0 — 2021-12-03
26
+
27
+ ### 🐛 Bug fixes
28
+
29
+ - 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))
30
+
13
31
  ## 0.13.4 — 2021-10-22
14
32
 
15
33
  _This version does not introduce any user-facing changes._
@@ -1,9 +1,9 @@
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.13.4'
6
+ version = '0.14.2'
7
7
 
8
8
  buildscript {
9
9
  // Simple helper that allows the root project to override versions declared by this library.
@@ -20,27 +20,25 @@ buildscript {
20
20
  }
21
21
  }
22
22
 
23
- // Upload android library to maven with javadoc and android sources
24
- configurations {
25
- deployerJars
26
- }
27
-
28
23
  // Creating sources with comments
29
24
  task androidSourcesJar(type: Jar) {
30
25
  classifier = 'sources'
31
26
  from android.sourceSets.main.java.srcDirs
32
27
  }
33
28
 
34
- // Put the androidSources and javadoc to the artifacts
35
- artifacts {
36
- archives androidSourcesJar
37
- }
38
-
39
- uploadArchives {
40
- repositories {
41
- mavenDeployer {
42
- configuration = configurations.deployerJars
43
- repository(url: mavenLocal().url)
29
+ afterEvaluate {
30
+ publishing {
31
+ publications {
32
+ release(MavenPublication) {
33
+ from components.release
34
+ // Add additional sourcesJar to artifacts
35
+ artifact(androidSourcesJar)
36
+ }
37
+ }
38
+ repositories {
39
+ maven {
40
+ url = mavenLocal().url
41
+ }
44
42
  }
45
43
  }
46
44
  }
@@ -57,7 +55,7 @@ android {
57
55
  minSdkVersion safeExtGet('minSdkVersion', 21)
58
56
  targetSdkVersion safeExtGet('targetSdkVersion', 30)
59
57
  versionCode 17
60
- versionName '0.13.4'
58
+ versionName '0.14.2'
61
59
  }
62
60
  lintOptions {
63
61
  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.14.2",
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,11 +38,13 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@expo/configure-splash-screen": "^0.6.0",
41
- "@expo/prebuild-config": "^3.0.6",
42
- "expo-modules-core": "~0.4.4"
41
+ "@expo/prebuild-config": "^3.0.15"
43
42
  },
44
43
  "devDependencies": {
45
44
  "expo-module-scripts": "^2.0.0"
46
45
  },
47
- "gitHead": "33b6a1b7ac70e664ccbe5965e707c0df6d704549"
46
+ "peerDependencies": {
47
+ "expo": "*"
48
+ },
49
+ "gitHead": "ba24eba18bf4f4d4b0d54828992d81a2bb18246a"
48
50
  }
@@ -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);