@capacitor/splash-screen 1.2.1 → 1.2.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
@@ -3,6 +3,18 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.2.2](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/splash-screen@1.2.1...@capacitor/splash-screen@1.2.2) (2022-02-10)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **splash-screen:** avoid conditional downcast warning ([#776](https://github.com/ionic-team/capacitor-plugins/issues/776)) ([87ed912](https://github.com/ionic-team/capacitor-plugins/commit/87ed9128f43f0be498601f0ba89cadeba7a339b4))
12
+ * **splash-screen:** Use Locale.ROOT on toLowerCase ([#813](https://github.com/ionic-team/capacitor-plugins/issues/813)) ([ecc55e1](https://github.com/ionic-team/capacitor-plugins/commit/ecc55e172acfe066977a4aac5018a55beef64f53))
13
+
14
+
15
+
16
+
17
+
6
18
  ## [1.2.1](https://github.com/ionic-team/capacitor-plugins/compare/@capacitor/splash-screen@1.2.0...@capacitor/splash-screen@1.2.1) (2022-01-19)
7
19
 
8
20
 
@@ -7,6 +7,7 @@ import com.getcapacitor.PluginCall;
7
7
  import com.getcapacitor.PluginMethod;
8
8
  import com.getcapacitor.annotation.CapacitorPlugin;
9
9
  import com.getcapacitor.util.WebColor;
10
+ import java.util.Locale;
10
11
 
11
12
  @CapacitorPlugin(name = "SplashScreen")
12
13
  public class SplashScreenPlugin extends Plugin {
@@ -103,7 +104,7 @@ public class SplashScreenPlugin extends Plugin {
103
104
  if (spinnerStyle != null) {
104
105
  int spinnerBarStyle = android.R.attr.progressBarStyleLarge;
105
106
 
106
- switch (spinnerStyle.toLowerCase()) {
107
+ switch (spinnerStyle.toLowerCase(Locale.ROOT)) {
107
108
  case "horizontal":
108
109
  spinnerBarStyle = android.R.attr.progressBarStyleHorizontal;
109
110
  break;
@@ -117,7 +117,7 @@ import Capacitor
117
117
  // Update the bounds for the splash image. This will also be called when
118
118
  // the parent view observers fire
119
119
  private func updateSplashImageBounds() {
120
- var window: UIWindow? = UIApplication.shared.delegate?.window as? UIWindow
120
+ var window: UIWindow? = UIApplication.shared.delegate?.window ?? nil
121
121
 
122
122
  if #available(iOS 13, *), window == nil {
123
123
  let scene: UIWindowScene? = UIApplication.shared.connectedScenes.first as? UIWindowScene
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/splash-screen",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "The Splash Screen API provides methods for showing or hiding a Splash image.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -80,5 +80,5 @@
80
80
  "publishConfig": {
81
81
  "access": "public"
82
82
  },
83
- "gitHead": "f18ee6482e1ec8e5fb0290d51f598397133af990"
83
+ "gitHead": "5bebfefe9bdca4d49f0e02dab74b02a692d3ed86"
84
84
  }