expo-splash-screen 0.14.2 → 0.15.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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "extends": "/Users/brentvatne/code/expo/packages/expo-splash-screen/tsconfig.json",
2
+ "extends": "/Users/tomasz/Work/expo/packages/expo-splash-screen/tsconfig.json",
3
3
  "compilerOptions": {
4
4
  "module": "esnext",
5
5
  "typeRoots": [
@@ -7,7 +7,7 @@
7
7
  "../node_modules/@types",
8
8
  "../../node_modules/@types",
9
9
  "../../../node_modules/@types",
10
- "/Users/brentvatne/code/expo/packages/expo-module-scripts/ts-declarations"
10
+ "/Users/tomasz/Work/expo/packages/expo-module-scripts/ts-declarations"
11
11
  ]
12
12
  }
13
13
  }
package/CHANGELOG.md CHANGED
@@ -10,7 +10,17 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
- ## 0.14.2 — 2022-02-01
13
+ ## 0.15.0 — 2022-04-18
14
+
15
+ ### 💡 Others
16
+
17
+ - Updated `@expo/config-plugins` from `4.0.2` to `4.0.14` ([#15621](https://github.com/expo/expo/pull/15621) by [@EvanBacon](https://github.com/EvanBacon))
18
+
19
+ ### ⚠️ Notices
20
+
21
+ - On Android bump `compileSdkVersion` to `31`, `targetSdkVersion` to `31` and `Java` version to `11`. ([#16941](https://github.com/expo/expo/pull/16941) by [@bbarthec](https://github.com/bbarthec))
22
+
23
+ ## 0.14.2 - 2022-02-01
14
24
 
15
25
  ### 🐛 Bug fixes
16
26
 
package/README.md CHANGED
@@ -229,7 +229,7 @@ const styles = StyleSheet.create({
229
229
 
230
230
  ## 💻 Installation in managed Expo projects
231
231
 
232
- Refer to [the SplashScreen section of the Expo documentation](https://docs.expo.io/versions/latest/sdk/splash-screen/).
232
+ Refer to [the SplashScreen section of the Expo documentation](https://docs.expo.dev/versions/latest/sdk/splash-screen/).
233
233
 
234
234
  ## 🖥 Installation in bare React Native projects
235
235
 
@@ -247,7 +247,7 @@ Run `npx pod-install` after installing the package.
247
247
 
248
248
  ### Automatic configuration
249
249
 
250
- The easiest way to configure the splash screen in bare React Native projects is with the expo-splash-screen command. See the [README](https://github.com/expo/expo-cli/tree/master/unlinked-packages/configure-splash-screen) for more information, or run `yarn expo-splash-screen --help` in your project.
250
+ The easiest way to configure the splash screen in bare React Native projects is with the expo-splash-screen command. See the [README](https://github.com/expo/expo-cli/tree/main/unlinked-packages/configure-splash-screen) for more information, or run `yarn expo-splash-screen --help` in your project.
251
251
 
252
252
  ### Manual Configuration
253
253
 
@@ -501,7 +501,7 @@ To achieve fully-native splash screen behavior, `expo-splash-screen` needs to be
501
501
 
502
502
  ### Automatic configuration
503
503
 
504
- The easiest way to configure the splash screen in bare React Native projects is with the expo-splash-screen command. See the [README](https://github.com/expo/expo-cli/tree/master/unlinked-packages/configure-splash-screen) for more information, or run `yarn expo-splash-screen --help` in your project.
504
+ The easiest way to configure the splash screen in bare React Native projects is with the expo-splash-screen command. See the [README](https://github.com/expo/expo-cli/tree/main/unlinked-packages/configure-splash-screen) for more information, or run `yarn expo-splash-screen --help` in your project.
505
505
 
506
506
  ### Manual Configuration
507
507
 
@@ -3,20 +3,35 @@ apply plugin: 'kotlin-android'
3
3
  apply plugin: 'maven-publish'
4
4
 
5
5
  group = 'host.exp.exponent'
6
- version = '0.14.2'
6
+ version = '0.15.0'
7
7
 
8
8
  buildscript {
9
+ def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
10
+ if (expoModulesCorePlugin.exists()) {
11
+ apply from: expoModulesCorePlugin
12
+ applyKotlinExpoModulesCorePlugin()
13
+ }
14
+
9
15
  // Simple helper that allows the root project to override versions declared by this library.
10
16
  ext.safeExtGet = { prop, fallback ->
11
17
  rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
12
18
  }
13
19
 
20
+ // Ensures backward compatibility
21
+ ext.getKotlinVersion = {
22
+ if (ext.has("kotlinVersion")) {
23
+ ext.kotlinVersion()
24
+ } else {
25
+ ext.safeExtGet("kotlinVersion", "1.6.10")
26
+ }
27
+ }
28
+
14
29
  repositories {
15
30
  mavenCentral()
16
31
  }
17
32
 
18
33
  dependencies {
19
- classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${safeExtGet('kotlinVersion', '1.4.21')}")
34
+ classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${getKotlinVersion()}")
20
35
  }
21
36
  }
22
37
 
@@ -44,18 +59,22 @@ afterEvaluate {
44
59
  }
45
60
 
46
61
  android {
47
- compileSdkVersion safeExtGet('compileSdkVersion', 30)
62
+ compileSdkVersion safeExtGet("compileSdkVersion", 31)
48
63
 
49
64
  compileOptions {
50
- sourceCompatibility JavaVersion.VERSION_1_8
51
- targetCompatibility JavaVersion.VERSION_1_8
65
+ sourceCompatibility JavaVersion.VERSION_11
66
+ targetCompatibility JavaVersion.VERSION_11
67
+ }
68
+
69
+ kotlinOptions {
70
+ jvmTarget = JavaVersion.VERSION_11.majorVersion
52
71
  }
53
72
 
54
73
  defaultConfig {
55
74
  minSdkVersion safeExtGet('minSdkVersion', 21)
56
- targetSdkVersion safeExtGet('targetSdkVersion', 30)
75
+ targetSdkVersion safeExtGet("targetSdkVersion", 31)
57
76
  versionCode 17
58
- versionName '0.14.2'
77
+ versionName '0.15.0'
59
78
  }
60
79
  lintOptions {
61
80
  abortOnError false
@@ -68,6 +87,6 @@ dependencies {
68
87
  //noinspection GradleDynamicVersion
69
88
  implementation 'com.facebook.react:react-native:+'
70
89
  implementation 'androidx.appcompat:appcompat:1.2.0'
71
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${safeExtGet('kotlinVersion', '1.4.21')}"
72
- implementation "org.jetbrains.kotlin:kotlin-reflect:${safeExtGet('kotlinVersion', '1.4.21')}"
90
+ implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${getKotlinVersion()}"
91
+ implementation "org.jetbrains.kotlin:kotlin-reflect:${getKotlinVersion()}"
73
92
  }
@@ -118,7 +118,7 @@ object SplashScreen : SingletonModule {
118
118
  failureCallback: (reason: String) -> Unit
119
119
  ) {
120
120
  if (!controllers.containsKey(activity)) {
121
- return failureCallback("No native splash screen registered for provided activity. Please configure your application's main Activity to call 'SplashScreen.show' (https://github.com/expo/expo/tree/master/packages/expo-splash-screen#-configure-android).")
121
+ return failureCallback("No native splash screen registered for provided activity. Please configure your application's main Activity to call 'SplashScreen.show' (https://github.com/expo/expo/tree/main/packages/expo-splash-screen#-configure-android).")
122
122
  }
123
123
 
124
124
  controllers[activity]?.preventAutoHide(successCallback, failureCallback)
@@ -140,7 +140,7 @@ object SplashScreen : SingletonModule {
140
140
  failureCallback: (reason: String) -> Unit
141
141
  ) {
142
142
  if (!controllers.containsKey(activity)) {
143
- return failureCallback("No native splash screen registered for provided activity. Please configure your application's main Activity to call 'SplashScreen.show' (https://github.com/expo/expo/tree/master/packages/expo-splash-screen#-configure-android).")
143
+ return failureCallback("No native splash screen registered for provided activity. Please configure your application's main Activity to call 'SplashScreen.show' (https://github.com/expo/expo/tree/main/packages/expo-splash-screen#-configure-android).")
144
144
  }
145
145
 
146
146
  controllers[activity]?.hideSplashScreen(successCallback, failureCallback)
@@ -1,2 +1,3 @@
1
1
  declare const _default: import("expo-modules-core").ProxyNativeModule;
2
2
  export default _default;
3
+ //# sourceMappingURL=ExpoSplashScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpoSplashScreen.d.ts","sourceRoot":"","sources":["../src/ExpoSplashScreen.ts"],"names":[],"mappings":";AAEA,wBAAyD"}
@@ -4,3 +4,4 @@ declare const _default: {
4
4
  hideAsync(): boolean;
5
5
  };
6
6
  export default _default;
7
+ //# sourceMappingURL=ExpoSplashScreen.web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpoSplashScreen.web.d.ts","sourceRoot":"","sources":["../src/ExpoSplashScreen.web.ts"],"names":[],"mappings":";;;;;AAAA,wBAUE"}
@@ -18,3 +18,4 @@ export declare function hide(): void;
18
18
  * @ignore
19
19
  */
20
20
  export declare function preventAutoHide(): void;
21
+ //# sourceMappingURL=SplashScreen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SplashScreen.d.ts","sourceRoot":"","sources":["../src/SplashScreen.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,OAAO,CAAC,CAK7D;AAGD;;;;GAIG;AACH,wBAAsB,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC,CAKlD;AAED;;;GAGG;AACH,wBAAgB,IAAI,IAAI,IAAI,CAG3B;AAED;;;GAGG;AACH,wBAAgB,eAAe,IAAI,IAAI,CAKtC"}
package/build/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from './SplashScreen';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
@@ -21,7 +21,7 @@
21
21
  return splashScreenView;
22
22
  } @catch (NSException *_) {
23
23
  @throw [NSException exceptionWithName:@"ERR_INVALID_SPLASH_SCREEN"
24
- reason:[NSString stringWithFormat:@"'%@.storyboard'does not contain proper ViewController. Add correct ViewController to your '%@.storyboard' file (https://github.com/expo/expo/tree/master/packages/expo-splash-screen#-configure-ios).", splashScreenFilename, splashScreenFilename]
24
+ reason:[NSString stringWithFormat:@"'%@.storyboard'does not contain proper ViewController. Add correct ViewController to your '%@.storyboard' file (https://github.com/expo/expo/tree/main/packages/expo-splash-screen#-configure-ios).", splashScreenFilename, splashScreenFilename]
25
25
  userInfo:nil];
26
26
  }
27
27
  }
@@ -35,7 +35,7 @@
35
35
  if (views) {
36
36
  if (!views.firstObject) {
37
37
  @throw [NSException exceptionWithName:@"ERR_INVALID_SPLASH_SCREEN"
38
- reason:[NSString stringWithFormat:@"'%@.xib' does not contain any views. Add a view to the '%@.xib' or create '%@.storyboard' (https://github.com/expo/expo/tree/master/packages/expo-splash-screen#-configure-ios).", splashScreenFilename, splashScreenFilename, splashScreenFilename]
38
+ reason:[NSString stringWithFormat:@"'%@.xib' does not contain any views. Add a view to the '%@.xib' or create '%@.storyboard' (https://github.com/expo/expo/tree/main/packages/expo-splash-screen#-configure-ios).", splashScreenFilename, splashScreenFilename, splashScreenFilename]
39
39
  userInfo:nil];
40
40
  }
41
41
  UIView *view = views.firstObject;
@@ -44,7 +44,7 @@
44
44
  }
45
45
 
46
46
  @throw [NSException exceptionWithName:@"ERR_NO_SPLASH_SCREEN"
47
- reason:[NSString stringWithFormat:@"Couln't locate neither '%@.storyboard' file nor '%@.xib' file. Create one of these in the project to make 'expo-splash-screen' work (https://github.com/expo/expo/tree/master/packages/expo-splash-screen#-configure-ios).", splashScreenFilename, splashScreenFilename]
47
+ reason:[NSString stringWithFormat:@"Couln't locate neither '%@.storyboard' file nor '%@.xib' file. Create one of these in the project to make 'expo-splash-screen' work (https://github.com/expo/expo/tree/main/packages/expo-splash-screen#-configure-ios).", splashScreenFilename, splashScreenFilename]
48
48
  userInfo:nil];
49
49
  }
50
50
 
@@ -6,30 +6,30 @@
6
6
  <array>
7
7
  <dict>
8
8
  <key>LibraryIdentifier</key>
9
- <string>ios-arm64_x86_64-simulator</string>
9
+ <string>ios-arm64</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>
16
15
  </array>
17
16
  <key>SupportedPlatform</key>
18
17
  <string>ios</string>
19
- <key>SupportedPlatformVariant</key>
20
- <string>simulator</string>
21
18
  </dict>
22
19
  <dict>
23
20
  <key>LibraryIdentifier</key>
24
- <string>ios-arm64</string>
21
+ <string>ios-arm64_x86_64-simulator</string>
25
22
  <key>LibraryPath</key>
26
23
  <string>EXSplashScreen.framework</string>
27
24
  <key>SupportedArchitectures</key>
28
25
  <array>
29
26
  <string>arm64</string>
27
+ <string>x86_64</string>
30
28
  </array>
31
29
  <key>SupportedPlatform</key>
32
30
  <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.14.2",
3
+ "version": "0.15.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",
@@ -46,5 +46,5 @@
46
46
  "peerDependencies": {
47
47
  "expo": "*"
48
48
  },
49
- "gitHead": "ba24eba18bf4f4d4b0d54828992d81a2bb18246a"
49
+ "gitHead": "22dce752354bb429c84851bc4389abe47a766b1f"
50
50
  }