@capacitor/splash-screen 8.0.0-alpha.1 → 8.0.0-beta.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/Package.swift CHANGED
@@ -10,7 +10,7 @@ let package = Package(
10
10
  targets: ["SplashScreenPlugin"])
11
11
  ],
12
12
  dependencies: [
13
- .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "7.0.0")
13
+ .package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", from: "8.0.0-beta")
14
14
  ],
15
15
  targets: [
16
16
  .target(
package/README.md CHANGED
@@ -185,7 +185,7 @@ To use splash screen images named something other than `splash.png`, set `androi
185
185
 
186
186
  This plugin will use the following project variables (defined in your app's `variables.gradle` file):
187
187
 
188
- - `coreSplashScreenVersion` version of `androidx.core:core-splashscreen` (default: `1.0.1`)
188
+ - `coreSplashScreenVersion` version of `androidx.core:core-splashscreen` (default: `1.2.0`)
189
189
 
190
190
  ## Example Guides
191
191
 
@@ -1,10 +1,10 @@
1
1
  ext {
2
2
  capacitorVersion = System.getenv('CAPACITOR_VERSION')
3
3
  junitVersion = project.hasProperty('junitVersion') ? rootProject.ext.junitVersion : '4.13.2'
4
- androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.0'
5
- androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.2.1'
6
- androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.6.1'
7
- coreSplashScreenVersion = project.hasProperty('coreSplashScreenVersion') ? rootProject.ext.coreSplashScreenVersion : '1.0.1'
4
+ androidxAppCompatVersion = project.hasProperty('androidxAppCompatVersion') ? rootProject.ext.androidxAppCompatVersion : '1.7.1'
5
+ androidxJunitVersion = project.hasProperty('androidxJunitVersion') ? rootProject.ext.androidxJunitVersion : '1.3.0'
6
+ androidxEspressoCoreVersion = project.hasProperty('androidxEspressoCoreVersion') ? rootProject.ext.androidxEspressoCoreVersion : '3.7.0'
7
+ coreSplashScreenVersion = project.hasProperty('coreSplashScreenVersion') ? rootProject.ext.coreSplashScreenVersion : '1.2.0'
8
8
  }
9
9
 
10
10
  buildscript {
@@ -12,11 +12,11 @@ buildscript {
12
12
  google()
13
13
  mavenCentral()
14
14
  maven {
15
- url "https://plugins.gradle.org/m2/"
15
+ url = "https://plugins.gradle.org/m2/"
16
16
  }
17
17
  }
18
18
  dependencies {
19
- classpath 'com.android.tools.build:gradle:8.7.2'
19
+ classpath 'com.android.tools.build:gradle:8.13.0'
20
20
  if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
21
21
  classpath 'io.github.gradle-nexus:publish-plugin:1.3.0'
22
22
  }
@@ -31,8 +31,8 @@ if (System.getenv("CAP_PLUGIN_PUBLISH") == "true") {
31
31
  }
32
32
 
33
33
  android {
34
- namespace "com.capacitorjs.plugins.splashscreen"
35
- compileSdk project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
34
+ namespace = "com.capacitorjs.plugins.splashscreen"
35
+ compileSdk = project.hasProperty('compileSdkVersion') ? rootProject.ext.compileSdkVersion : 36
36
36
  defaultConfig {
37
37
  minSdkVersion project.hasProperty('minSdkVersion') ? rootProject.ext.minSdkVersion : 24
38
38
  targetSdkVersion project.hasProperty('targetSdkVersion') ? rootProject.ext.targetSdkVersion : 36
@@ -47,7 +47,7 @@ android {
47
47
  }
48
48
  }
49
49
  lintOptions {
50
- abortOnError false
50
+ abortOnError = false
51
51
  }
52
52
  compileOptions {
53
53
  sourceCompatibility JavaVersion.VERSION_21
@@ -95,80 +95,69 @@ public class SplashScreen {
95
95
  private void showWithAndroid12API(final AppCompatActivity activity, final SplashScreenSettings settings) {
96
96
  if (activity == null || activity.isFinishing()) return;
97
97
 
98
- activity.runOnUiThread(
99
- () -> {
100
- androidx.core.splashscreen.SplashScreen windowSplashScreen = androidx.core.splashscreen.SplashScreen.installSplashScreen(
101
- activity
102
- );
103
- windowSplashScreen.setKeepOnScreenCondition(() -> isVisible || isHiding);
104
-
105
- if (config.getLaunchFadeOutDuration() > 0) {
106
- // Set Fade Out Animation
107
- windowSplashScreen.setOnExitAnimationListener(
108
- windowSplashScreenView -> {
109
- final ObjectAnimator fadeAnimator = ObjectAnimator.ofFloat(
110
- windowSplashScreenView.getView(),
111
- View.ALPHA,
112
- 1f,
113
- 0f
114
- );
115
- fadeAnimator.setInterpolator(new LinearInterpolator());
116
- fadeAnimator.setDuration(config.getLaunchFadeOutDuration());
117
-
118
- fadeAnimator.addListener(
119
- new AnimatorListenerAdapter() {
120
- @Override
121
- public void onAnimationEnd(Animator animation) {
122
- isHiding = false;
123
- windowSplashScreenView.remove();
124
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
125
- activity.getSplashScreen().clearOnExitAnimationListener();
126
- }
127
- }
98
+ activity.runOnUiThread(() -> {
99
+ androidx.core.splashscreen.SplashScreen windowSplashScreen = androidx.core.splashscreen.SplashScreen.installSplashScreen(
100
+ activity
101
+ );
102
+ windowSplashScreen.setKeepOnScreenCondition(() -> isVisible || isHiding);
103
+
104
+ if (config.getLaunchFadeOutDuration() > 0) {
105
+ // Set Fade Out Animation
106
+ windowSplashScreen.setOnExitAnimationListener((windowSplashScreenView) -> {
107
+ final ObjectAnimator fadeAnimator = ObjectAnimator.ofFloat(windowSplashScreenView.getView(), View.ALPHA, 1f, 0f);
108
+ fadeAnimator.setInterpolator(new LinearInterpolator());
109
+ fadeAnimator.setDuration(config.getLaunchFadeOutDuration());
110
+
111
+ fadeAnimator.addListener(
112
+ new AnimatorListenerAdapter() {
113
+ @Override
114
+ public void onAnimationEnd(Animator animation) {
115
+ isHiding = false;
116
+ windowSplashScreenView.remove();
117
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
118
+ activity.getSplashScreen().clearOnExitAnimationListener();
128
119
  }
129
- );
130
-
131
- fadeAnimator.start();
132
-
133
- isHiding = true;
134
- isVisible = false;
120
+ }
135
121
  }
136
122
  );
137
- }
138
123
 
139
- // Set Pre Draw Listener & Delay Drawing Until Duration Elapses
140
- content = activity.findViewById(android.R.id.content);
141
-
142
- this.onPreDrawListener =
143
- new ViewTreeObserver.OnPreDrawListener() {
144
- @Override
145
- public boolean onPreDraw() {
146
- // Start Timer On First Run
147
- if (!isVisible && !isHiding) {
148
- isVisible = true;
149
-
150
- new Handler(context.getMainLooper())
151
- .postDelayed(
152
- () -> {
153
- // Splash screen is done... start drawing content.
154
- if (settings.isAutoHide()) {
155
- isVisible = false;
156
- onPreDrawListener = null;
157
- content.getViewTreeObserver().removeOnPreDrawListener(this);
158
- }
159
- },
160
- settings.getShowDuration()
161
- );
162
- }
163
-
164
- // Not ready to dismiss splash screen
165
- return false;
166
- }
167
- };
124
+ fadeAnimator.start();
168
125
 
169
- content.getViewTreeObserver().addOnPreDrawListener(this.onPreDrawListener);
126
+ isHiding = true;
127
+ isVisible = false;
128
+ });
170
129
  }
171
- );
130
+
131
+ // Set Pre Draw Listener & Delay Drawing Until Duration Elapses
132
+ content = activity.findViewById(android.R.id.content);
133
+
134
+ this.onPreDrawListener = new ViewTreeObserver.OnPreDrawListener() {
135
+ @Override
136
+ public boolean onPreDraw() {
137
+ // Start Timer On First Run
138
+ if (!isVisible && !isHiding) {
139
+ isVisible = true;
140
+
141
+ new Handler(context.getMainLooper()).postDelayed(
142
+ () -> {
143
+ // Splash screen is done... start drawing content.
144
+ if (settings.isAutoHide()) {
145
+ isVisible = false;
146
+ onPreDrawListener = null;
147
+ content.getViewTreeObserver().removeOnPreDrawListener(this);
148
+ }
149
+ },
150
+ settings.getShowDuration()
151
+ );
152
+ }
153
+
154
+ // Not ready to dismiss splash screen
155
+ return false;
156
+ }
157
+ };
158
+
159
+ content.getViewTreeObserver().addOnPreDrawListener(this.onPreDrawListener);
160
+ });
172
161
  }
173
162
 
174
163
  /**
@@ -199,63 +188,60 @@ public class SplashScreen {
199
188
  return;
200
189
  }
201
190
 
202
- activity.runOnUiThread(
203
- () -> {
204
- if (config.isImmersive()) {
205
- dialog = new Dialog(activity, R.style.capacitor_immersive_style);
206
- } else if (config.isFullScreen()) {
207
- dialog = new Dialog(activity, R.style.capacitor_full_screen_style);
208
- } else {
209
- dialog = new Dialog(activity, R.style.capacitor_default_style);
210
- }
211
- int splashId = 0;
212
- if (config.getLayoutName() != null) {
213
- splashId = context.getResources().getIdentifier(config.getLayoutName(), "layout", context.getPackageName());
214
- if (splashId == 0) {
215
- Logger.warn("Layout not found, using default");
216
- }
191
+ activity.runOnUiThread(() -> {
192
+ if (config.isImmersive()) {
193
+ dialog = new Dialog(activity, R.style.capacitor_immersive_style);
194
+ } else if (config.isFullScreen()) {
195
+ dialog = new Dialog(activity, R.style.capacitor_full_screen_style);
196
+ } else {
197
+ dialog = new Dialog(activity, R.style.capacitor_default_style);
198
+ }
199
+ int splashId = 0;
200
+ if (config.getLayoutName() != null) {
201
+ splashId = context.getResources().getIdentifier(config.getLayoutName(), "layout", context.getPackageName());
202
+ if (splashId == 0) {
203
+ Logger.warn("Layout not found, using default");
217
204
  }
218
- if (splashId != 0) {
219
- dialog.setContentView(splashId);
220
- } else {
221
- Drawable splash = getSplashDrawable();
222
- LinearLayout parent = new LinearLayout(context);
223
- parent.setLayoutParams(
224
- new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT)
225
- );
226
- parent.setOrientation(LinearLayout.VERTICAL);
227
- if (splash != null) {
228
- parent.setBackground(splash);
229
- }
230
- dialog.setContentView(parent);
205
+ }
206
+ if (splashId != 0) {
207
+ dialog.setContentView(splashId);
208
+ } else {
209
+ Drawable splash = getSplashDrawable();
210
+ LinearLayout parent = new LinearLayout(context);
211
+ parent.setLayoutParams(
212
+ new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT)
213
+ );
214
+ parent.setOrientation(LinearLayout.VERTICAL);
215
+ if (splash != null) {
216
+ parent.setBackground(splash);
231
217
  }
218
+ dialog.setContentView(parent);
219
+ }
232
220
 
233
- dialog.setCancelable(false);
234
- if (!dialog.isShowing()) {
235
- dialog.show();
236
- }
237
- isVisible = true;
221
+ dialog.setCancelable(false);
222
+ if (!dialog.isShowing()) {
223
+ dialog.show();
224
+ }
225
+ isVisible = true;
238
226
 
239
- if (settings.isAutoHide()) {
240
- new Handler(context.getMainLooper())
241
- .postDelayed(
242
- () -> {
243
- hideDialog(activity, isLaunchSplash);
227
+ if (settings.isAutoHide()) {
228
+ new Handler(context.getMainLooper()).postDelayed(
229
+ () -> {
230
+ hideDialog(activity, isLaunchSplash);
244
231
 
245
- if (splashListener != null) {
246
- splashListener.completed();
247
- }
248
- },
249
- settings.getShowDuration()
250
- );
251
- } else {
252
- // If no autoHide, call complete
253
- if (splashListener != null) {
254
- splashListener.completed();
255
- }
232
+ if (splashListener != null) {
233
+ splashListener.completed();
234
+ }
235
+ },
236
+ settings.getShowDuration()
237
+ );
238
+ } else {
239
+ // If no autoHide, call complete
240
+ if (splashListener != null) {
241
+ splashListener.completed();
256
242
  }
257
243
  }
258
- );
244
+ });
259
245
  }
260
246
 
261
247
  /**
@@ -411,17 +397,16 @@ public class SplashScreen {
411
397
  isVisible = true;
412
398
 
413
399
  if (settings.isAutoHide()) {
414
- new Handler(context.getMainLooper())
415
- .postDelayed(
416
- () -> {
417
- hide(settings.getFadeOutDuration(), isLaunchSplash);
400
+ new Handler(context.getMainLooper()).postDelayed(
401
+ () -> {
402
+ hide(settings.getFadeOutDuration(), isLaunchSplash);
418
403
 
419
- if (splashListener != null) {
420
- splashListener.completed();
421
- }
422
- },
423
- settings.getShowDuration()
424
- );
404
+ if (splashListener != null) {
405
+ splashListener.completed();
406
+ }
407
+ },
408
+ settings.getShowDuration()
409
+ );
425
410
  } else {
426
411
  // If no autoHide, call complete
427
412
  if (splashListener != null) {
@@ -442,90 +427,84 @@ public class SplashScreen {
442
427
 
443
428
  Handler mainHandler = new Handler(context.getMainLooper());
444
429
 
445
- mainHandler.post(
446
- () -> {
447
- WindowManager.LayoutParams params = new WindowManager.LayoutParams();
448
- params.gravity = Gravity.CENTER;
449
- params.flags = activity.getWindow().getAttributes().flags;
430
+ mainHandler.post(() -> {
431
+ WindowManager.LayoutParams params = new WindowManager.LayoutParams();
432
+ params.gravity = Gravity.CENTER;
433
+ params.flags = activity.getWindow().getAttributes().flags;
450
434
 
451
- // Required to enable the view to actually fade
452
- params.format = PixelFormat.TRANSLUCENT;
435
+ // Required to enable the view to actually fade
436
+ params.format = PixelFormat.TRANSLUCENT;
453
437
 
454
- try {
455
- windowManager.addView(splashImage, params);
456
- } catch (IllegalStateException | IllegalArgumentException ex) {
457
- Logger.debug("Could not add splash view");
458
- return;
459
- }
438
+ try {
439
+ windowManager.addView(splashImage, params);
440
+ } catch (IllegalStateException | IllegalArgumentException ex) {
441
+ Logger.debug("Could not add splash view");
442
+ return;
443
+ }
460
444
 
461
- if (config.isImmersive()) {
462
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
463
- activity.runOnUiThread(
464
- () -> {
465
- Window window = activity.getWindow();
466
- WindowCompat.setDecorFitsSystemWindows(window, false);
467
- WindowInsetsController controller = splashImage.getWindowInsetsController();
468
- controller.hide(WindowInsetsCompat.Type.systemBars());
469
- controller.setSystemBarsBehavior(WindowInsetsController.BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE);
470
- }
471
- );
472
- } else {
473
- legacyImmersive();
474
- }
475
- } else if (config.isFullScreen()) {
476
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
477
- activity.runOnUiThread(
478
- () -> {
479
- Window window = activity.getWindow();
480
- WindowCompat.setDecorFitsSystemWindows(window, false);
481
- WindowInsetsController controller = splashImage.getWindowInsetsController();
482
- controller.hide(WindowInsetsCompat.Type.statusBars());
483
- }
484
- );
485
- } else {
486
- legacyFullscreen();
487
- }
445
+ if (config.isImmersive()) {
446
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
447
+ activity.runOnUiThread(() -> {
448
+ Window window = activity.getWindow();
449
+ WindowCompat.setDecorFitsSystemWindows(window, false);
450
+ WindowInsetsController controller = splashImage.getWindowInsetsController();
451
+ controller.hide(WindowInsetsCompat.Type.systemBars());
452
+ controller.setSystemBarsBehavior(WindowInsetsController.BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE);
453
+ });
454
+ } else {
455
+ legacyImmersive();
488
456
  }
457
+ } else if (config.isFullScreen()) {
458
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
459
+ activity.runOnUiThread(() -> {
460
+ Window window = activity.getWindow();
461
+ WindowCompat.setDecorFitsSystemWindows(window, false);
462
+ WindowInsetsController controller = splashImage.getWindowInsetsController();
463
+ controller.hide(WindowInsetsCompat.Type.statusBars());
464
+ });
465
+ } else {
466
+ legacyFullscreen();
467
+ }
468
+ }
489
469
 
490
- splashImage.setAlpha(0f);
470
+ splashImage.setAlpha(0f);
491
471
 
492
- splashImage
493
- .animate()
494
- .alpha(1f)
495
- .setInterpolator(new LinearInterpolator())
496
- .setDuration(settings.getFadeInDuration())
497
- .setListener(listener)
498
- .start();
472
+ splashImage
473
+ .animate()
474
+ .alpha(1f)
475
+ .setInterpolator(new LinearInterpolator())
476
+ .setDuration(settings.getFadeInDuration())
477
+ .setListener(listener)
478
+ .start();
499
479
 
500
- splashImage.setVisibility(View.VISIBLE);
480
+ splashImage.setVisibility(View.VISIBLE);
501
481
 
502
- if (spinnerBar != null) {
503
- spinnerBar.setVisibility(View.INVISIBLE);
482
+ if (spinnerBar != null) {
483
+ spinnerBar.setVisibility(View.INVISIBLE);
504
484
 
505
- if (spinnerBar.getParent() != null) {
506
- windowManager.removeView(spinnerBar);
507
- }
485
+ if (spinnerBar.getParent() != null) {
486
+ windowManager.removeView(spinnerBar);
487
+ }
508
488
 
509
- params.height = WindowManager.LayoutParams.WRAP_CONTENT;
510
- params.width = WindowManager.LayoutParams.WRAP_CONTENT;
489
+ params.height = WindowManager.LayoutParams.WRAP_CONTENT;
490
+ params.width = WindowManager.LayoutParams.WRAP_CONTENT;
511
491
 
512
- windowManager.addView(spinnerBar, params);
492
+ windowManager.addView(spinnerBar, params);
513
493
 
514
- if (config.isShowSpinner()) {
515
- spinnerBar.setAlpha(0f);
494
+ if (config.isShowSpinner()) {
495
+ spinnerBar.setAlpha(0f);
516
496
 
517
- spinnerBar
518
- .animate()
519
- .alpha(1f)
520
- .setInterpolator(new LinearInterpolator())
521
- .setDuration(settings.getFadeInDuration())
522
- .start();
497
+ spinnerBar
498
+ .animate()
499
+ .alpha(1f)
500
+ .setInterpolator(new LinearInterpolator())
501
+ .setDuration(settings.getFadeInDuration())
502
+ .start();
523
503
 
524
- spinnerBar.setVisibility(View.VISIBLE);
525
- }
504
+ spinnerBar.setVisibility(View.VISIBLE);
526
505
  }
527
506
  }
528
- );
507
+ });
529
508
  }
530
509
 
531
510
  @SuppressWarnings("deprecation")
@@ -551,8 +530,8 @@ public class SplashScreen {
551
530
  if (isLaunchSplash && isVisible) {
552
531
  Logger.debug(
553
532
  "SplashScreen was automatically hidden after the launch timeout. " +
554
- "You should call `SplashScreen.hide()` as soon as your web app is loaded (or increase the timeout)." +
555
- "Read more at https://capacitorjs.com/docs/apis/splash-screen#hiding-the-splash-screen"
533
+ "You should call `SplashScreen.hide()` as soon as your web app is loaded (or increase the timeout)." +
534
+ "Read more at https://capacitorjs.com/docs/apis/splash-screen#hiding-the-splash-screen"
556
535
  );
557
536
  }
558
537
 
@@ -601,25 +580,23 @@ public class SplashScreen {
601
580
 
602
581
  Handler mainHandler = new Handler(context.getMainLooper());
603
582
 
604
- mainHandler.post(
605
- () -> {
606
- if (spinnerBar != null) {
607
- spinnerBar.setAlpha(1f);
583
+ mainHandler.post(() -> {
584
+ if (spinnerBar != null) {
585
+ spinnerBar.setAlpha(1f);
608
586
 
609
- spinnerBar.animate().alpha(0).setInterpolator(new LinearInterpolator()).setDuration(fadeOutDuration).start();
610
- }
587
+ spinnerBar.animate().alpha(0).setInterpolator(new LinearInterpolator()).setDuration(fadeOutDuration).start();
588
+ }
611
589
 
612
- splashImage.setAlpha(1f);
590
+ splashImage.setAlpha(1f);
613
591
 
614
- splashImage
615
- .animate()
616
- .alpha(0)
617
- .setInterpolator(new LinearInterpolator())
618
- .setDuration(fadeOutDuration)
619
- .setListener(listener)
620
- .start();
621
- }
622
- );
592
+ splashImage
593
+ .animate()
594
+ .alpha(0)
595
+ .setInterpolator(new LinearInterpolator())
596
+ .setDuration(fadeOutDuration)
597
+ .setListener(listener)
598
+ .start();
599
+ });
623
600
  }
624
601
 
625
602
  private void hideDialog(final AppCompatActivity activity, boolean isLaunchSplash) {
@@ -628,8 +605,8 @@ public class SplashScreen {
628
605
  if (isLaunchSplash && isVisible) {
629
606
  Logger.debug(
630
607
  "SplashScreen was automatically hidden after the launch timeout. " +
631
- "You should call `SplashScreen.hide()` as soon as your web app is loaded (or increase the timeout)." +
632
- "Read more at https://capacitorjs.com/docs/apis/splash-screen#hiding-the-splash-screen"
608
+ "You should call `SplashScreen.hide()` as soon as your web app is loaded (or increase the timeout)." +
609
+ "Read more at https://capacitorjs.com/docs/apis/splash-screen#hiding-the-splash-screen"
633
610
  );
634
611
  }
635
612
 
@@ -649,18 +626,16 @@ public class SplashScreen {
649
626
 
650
627
  isHiding = true;
651
628
 
652
- activity.runOnUiThread(
653
- () -> {
654
- if (dialog != null && dialog.isShowing()) {
655
- if (!activity.isFinishing() && !activity.isDestroyed()) {
656
- dialog.dismiss();
657
- }
658
- dialog = null;
659
- isHiding = false;
660
- isVisible = false;
629
+ activity.runOnUiThread(() -> {
630
+ if (dialog != null && dialog.isShowing()) {
631
+ if (!activity.isFinishing() && !activity.isDestroyed()) {
632
+ dialog.dismiss();
661
633
  }
634
+ dialog = null;
635
+ isHiding = false;
636
+ isVisible = false;
662
637
  }
663
- );
638
+ });
664
639
  }
665
640
 
666
641
  private void tearDown(boolean removeSpinner) {
@@ -678,7 +653,7 @@ public class SplashScreen {
678
653
  windowManager.removeView(splashImage);
679
654
  }
680
655
 
681
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R && config.isFullScreen() || config.isImmersive()) {
656
+ if ((Build.VERSION.SDK_INT >= Build.VERSION_CODES.R && config.isFullScreen()) || config.isImmersive()) {
682
657
  // Exit fullscreen mode
683
658
  Window window = ((Activity) context).getWindow();
684
659
  WindowCompat.setDecorFitsSystemWindows(window, true);
@@ -1 +1 @@
1
- {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"AAAA,wCAAwC","sourcesContent":["/// <reference types=\"@capacitor/cli\" />\n\ndeclare module '@capacitor/cli' {\n export interface PluginsConfig {\n /**\n * These config values are available:\n */\n SplashScreen?: {\n /**\n * How long to show the launch splash screen when autoHide is enabled (in ms)\n *\n * @since 1.0.0\n * @default 500\n * @example 3000\n */\n launchShowDuration?: number;\n\n /**\n * Whether to auto hide the splash after launchShowDuration.\n *\n * @since 1.0.0\n * @default true\n * @example true\n */\n launchAutoHide?: boolean;\n\n /**\n * Duration for the fade out animation of the launch splash screen (in ms)\n *\n * Only available for Android, when using the Android 12 Splash Screen API.\n *\n * @since 4.2.0\n * @default 200\n * @example 3000\n */\n launchFadeOutDuration?: number;\n\n /**\n * Color of the background of the Splash Screen in hex format, #RRGGBB or #RRGGBBAA.\n * Doesn't work if `useDialog` is true or on launch when using the Android 12 API.\n *\n * @since 1.0.0\n * @example \"#ffffffff\"\n */\n backgroundColor?: string;\n\n /**\n * Name of the resource to be used as Splash Screen.\n *\n * Doesn't work on launch when using the Android 12 API.\n *\n * Only available on Android.\n *\n * @since 1.0.0\n * @default splash\n * @example \"splash\"\n */\n androidSplashResourceName?: string;\n\n /**\n * The [ImageView.ScaleType](https://developer.android.com/reference/android/widget/ImageView.ScaleType) used to scale\n * the Splash Screen image.\n * Doesn't work if `useDialog` is true or on launch when using the Android 12 API.\n *\n * Only available on Android.\n *\n * @since 1.0.0\n * @default FIT_XY\n * @example \"CENTER_CROP\"\n */\n androidScaleType?:\n | 'CENTER'\n | 'CENTER_CROP'\n | 'CENTER_INSIDE'\n | 'FIT_CENTER'\n | 'FIT_END'\n | 'FIT_START'\n | 'FIT_XY'\n | 'MATRIX';\n\n /**\n * Show a loading spinner on the Splash Screen.\n * Doesn't work if `useDialog` is true or on launch when using the Android 12 API.\n *\n * @since 1.0.0\n * @example true\n */\n showSpinner?: boolean;\n\n /**\n * Style of the Android spinner.\n * Doesn't work if `useDialog` is true or on launch when using the Android 12 API.\n *\n * @since 1.0.0\n * @default large\n * @example \"large\"\n */\n androidSpinnerStyle?:\n | 'horizontal'\n | 'small'\n | 'large'\n | 'inverse'\n | 'smallInverse'\n | 'largeInverse';\n\n /**\n * Style of the iOS spinner.\n * Doesn't work if `useDialog` is true.\n *\n * Only available on iOS.\n *\n * @since 1.0.0\n * @default large\n * @example \"small\"\n */\n iosSpinnerStyle?: 'large' | 'small';\n\n /**\n * Color of the spinner in hex format, #RRGGBB or #RRGGBBAA.\n * Doesn't work if `useDialog` is true or on launch when using the Android 12 API.\n *\n * @since 1.0.0\n * @example \"#999999\"\n */\n spinnerColor?: string;\n\n /**\n * Hide the status bar on the Splash Screen.\n *\n * Doesn't work on launch when using the Android 12 API.\n *\n * Only available on Android.\n *\n * @since 1.0.0\n * @example true\n */\n splashFullScreen?: boolean;\n\n /**\n * Hide the status bar and the software navigation buttons on the Splash Screen.\n *\n * Doesn't work on launch when using the Android 12 API.\n *\n * Only available on Android.\n *\n * @since 1.0.0\n * @example true\n */\n splashImmersive?: boolean;\n\n /**\n * If `useDialog` is set to true, configure the Dialog layout.\n * If `useDialog` is not set or false, use a layout instead of the ImageView.\n *\n * Doesn't work on launch when using the Android 12 API.\n *\n * Only available on Android.\n *\n * @since 1.1.0\n * @example \"launch_screen\"\n */\n layoutName?: string;\n\n /**\n * Use a Dialog instead of an ImageView.\n * If `layoutName` is not configured, it will use\n * a layout that uses the splash image as background.\n *\n * Doesn't work on launch when using the Android 12 API.\n *\n * Only available on Android.\n *\n * @since 1.1.0\n * @example true\n */\n useDialog?: boolean;\n };\n }\n}\n\nexport interface ShowOptions {\n /**\n * Whether to auto hide the splash after showDuration\n *\n * @since 1.0.0\n */\n autoHide?: boolean;\n /**\n * How long (in ms) to fade in.\n *\n * @since 1.0.0\n * @default 200\n */\n fadeInDuration?: number;\n /**\n * How long (in ms) to fade out.\n *\n * @since 1.0.0\n * @default 200\n */\n fadeOutDuration?: number;\n /**\n * How long to show the splash screen when autoHide is enabled (in ms)\n *\n * @since 1.0.0\n * @default 3000\n */\n showDuration?: number;\n}\n\nexport interface HideOptions {\n /**\n * How long (in ms) to fade out.\n *\n * On Android, if using the Android 12 Splash Screen API, it's not being used.\n * Use launchFadeOutDuration configuration option instead.\n *\n * @since 1.0.0\n * @default 200\n */\n fadeOutDuration?: number;\n}\n\nexport interface SplashScreenPlugin {\n /**\n * Show the splash screen\n *\n * @since 1.0.0\n */\n show(options?: ShowOptions): Promise<void>;\n /**\n * Hide the splash screen\n *\n * @since 1.0.0\n */\n hide(options?: HideOptions): Promise<void>;\n}\n"]}
1
+ {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"AAAA,wCAAwC","sourcesContent":["/// <reference types=\"@capacitor/cli\" />\n\ndeclare module '@capacitor/cli' {\n export interface PluginsConfig {\n /**\n * These config values are available:\n */\n SplashScreen?: {\n /**\n * How long to show the launch splash screen when autoHide is enabled (in ms)\n *\n * @since 1.0.0\n * @default 500\n * @example 3000\n */\n launchShowDuration?: number;\n\n /**\n * Whether to auto hide the splash after launchShowDuration.\n *\n * @since 1.0.0\n * @default true\n * @example true\n */\n launchAutoHide?: boolean;\n\n /**\n * Duration for the fade out animation of the launch splash screen (in ms)\n *\n * Only available for Android, when using the Android 12 Splash Screen API.\n *\n * @since 4.2.0\n * @default 200\n * @example 3000\n */\n launchFadeOutDuration?: number;\n\n /**\n * Color of the background of the Splash Screen in hex format, #RRGGBB or #RRGGBBAA.\n * Doesn't work if `useDialog` is true or on launch when using the Android 12 API.\n *\n * @since 1.0.0\n * @example \"#ffffffff\"\n */\n backgroundColor?: string;\n\n /**\n * Name of the resource to be used as Splash Screen.\n *\n * Doesn't work on launch when using the Android 12 API.\n *\n * Only available on Android.\n *\n * @since 1.0.0\n * @default splash\n * @example \"splash\"\n */\n androidSplashResourceName?: string;\n\n /**\n * The [ImageView.ScaleType](https://developer.android.com/reference/android/widget/ImageView.ScaleType) used to scale\n * the Splash Screen image.\n * Doesn't work if `useDialog` is true or on launch when using the Android 12 API.\n *\n * Only available on Android.\n *\n * @since 1.0.0\n * @default FIT_XY\n * @example \"CENTER_CROP\"\n */\n androidScaleType?:\n | 'CENTER'\n | 'CENTER_CROP'\n | 'CENTER_INSIDE'\n | 'FIT_CENTER'\n | 'FIT_END'\n | 'FIT_START'\n | 'FIT_XY'\n | 'MATRIX';\n\n /**\n * Show a loading spinner on the Splash Screen.\n * Doesn't work if `useDialog` is true or on launch when using the Android 12 API.\n *\n * @since 1.0.0\n * @example true\n */\n showSpinner?: boolean;\n\n /**\n * Style of the Android spinner.\n * Doesn't work if `useDialog` is true or on launch when using the Android 12 API.\n *\n * @since 1.0.0\n * @default large\n * @example \"large\"\n */\n androidSpinnerStyle?: 'horizontal' | 'small' | 'large' | 'inverse' | 'smallInverse' | 'largeInverse';\n\n /**\n * Style of the iOS spinner.\n * Doesn't work if `useDialog` is true.\n *\n * Only available on iOS.\n *\n * @since 1.0.0\n * @default large\n * @example \"small\"\n */\n iosSpinnerStyle?: 'large' | 'small';\n\n /**\n * Color of the spinner in hex format, #RRGGBB or #RRGGBBAA.\n * Doesn't work if `useDialog` is true or on launch when using the Android 12 API.\n *\n * @since 1.0.0\n * @example \"#999999\"\n */\n spinnerColor?: string;\n\n /**\n * Hide the status bar on the Splash Screen.\n *\n * Doesn't work on launch when using the Android 12 API.\n *\n * Only available on Android.\n *\n * @since 1.0.0\n * @example true\n */\n splashFullScreen?: boolean;\n\n /**\n * Hide the status bar and the software navigation buttons on the Splash Screen.\n *\n * Doesn't work on launch when using the Android 12 API.\n *\n * Only available on Android.\n *\n * @since 1.0.0\n * @example true\n */\n splashImmersive?: boolean;\n\n /**\n * If `useDialog` is set to true, configure the Dialog layout.\n * If `useDialog` is not set or false, use a layout instead of the ImageView.\n *\n * Doesn't work on launch when using the Android 12 API.\n *\n * Only available on Android.\n *\n * @since 1.1.0\n * @example \"launch_screen\"\n */\n layoutName?: string;\n\n /**\n * Use a Dialog instead of an ImageView.\n * If `layoutName` is not configured, it will use\n * a layout that uses the splash image as background.\n *\n * Doesn't work on launch when using the Android 12 API.\n *\n * Only available on Android.\n *\n * @since 1.1.0\n * @example true\n */\n useDialog?: boolean;\n };\n }\n}\n\nexport interface ShowOptions {\n /**\n * Whether to auto hide the splash after showDuration\n *\n * @since 1.0.0\n */\n autoHide?: boolean;\n /**\n * How long (in ms) to fade in.\n *\n * @since 1.0.0\n * @default 200\n */\n fadeInDuration?: number;\n /**\n * How long (in ms) to fade out.\n *\n * @since 1.0.0\n * @default 200\n */\n fadeOutDuration?: number;\n /**\n * How long to show the splash screen when autoHide is enabled (in ms)\n *\n * @since 1.0.0\n * @default 3000\n */\n showDuration?: number;\n}\n\nexport interface HideOptions {\n /**\n * How long (in ms) to fade out.\n *\n * On Android, if using the Android 12 Splash Screen API, it's not being used.\n * Use launchFadeOutDuration configuration option instead.\n *\n * @since 1.0.0\n * @default 200\n */\n fadeOutDuration?: number;\n}\n\nexport interface SplashScreenPlugin {\n /**\n * Show the splash screen\n *\n * @since 1.0.0\n */\n show(options?: ShowOptions): Promise<void>;\n /**\n * Hide the splash screen\n *\n * @since 1.0.0\n */\n hide(options?: HideOptions): Promise<void>;\n}\n"]}
package/dist/esm/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { registerPlugin } from '@capacitor/core';
2
2
  const SplashScreen = registerPlugin('SplashScreen', {
3
- web: () => import('./web').then(m => new m.SplashScreenWeb()),
3
+ web: () => import('./web').then((m) => new m.SplashScreenWeb()),
4
4
  });
5
5
  export * from './definitions';
6
6
  export { SplashScreen };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD,MAAM,YAAY,GAAG,cAAc,CAAqB,cAAc,EAAE;IACtE,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;CAC9D,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\n\nimport type { SplashScreenPlugin } from './definitions';\n\nconst SplashScreen = registerPlugin<SplashScreenPlugin>('SplashScreen', {\n web: () => import('./web').then(m => new m.SplashScreenWeb()),\n});\n\nexport * from './definitions';\nexport { SplashScreen };\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD,MAAM,YAAY,GAAG,cAAc,CAAqB,cAAc,EAAE;IACtE,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;CAChE,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\n\nimport type { SplashScreenPlugin } from './definitions';\n\nconst SplashScreen = registerPlugin<SplashScreenPlugin>('SplashScreen', {\n web: () => import('./web').then((m) => new m.SplashScreenWeb()),\n});\n\nexport * from './definitions';\nexport { SplashScreen };\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAQ5C,MAAM,OAAO,eAAgB,SAAQ,SAAS;IAC5C,KAAK,CAAC,IAAI,CAAC,QAAsB;QAC/B,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,QAAsB;QAC/B,OAAO,SAAS,CAAC;IACnB,CAAC;CACF","sourcesContent":["import { WebPlugin } from '@capacitor/core';\n\nimport type {\n HideOptions,\n ShowOptions,\n SplashScreenPlugin,\n} from './definitions';\n\nexport class SplashScreenWeb extends WebPlugin implements SplashScreenPlugin {\n async show(_options?: ShowOptions): Promise<void> {\n return undefined;\n }\n\n async hide(_options?: HideOptions): Promise<void> {\n return undefined;\n }\n}\n"]}
1
+ {"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,MAAM,OAAO,eAAgB,SAAQ,SAAS;IAC5C,KAAK,CAAC,IAAI,CAAC,QAAsB;QAC/B,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,QAAsB;QAC/B,OAAO,SAAS,CAAC;IACnB,CAAC;CACF","sourcesContent":["import { WebPlugin } from '@capacitor/core';\n\nimport type { HideOptions, ShowOptions, SplashScreenPlugin } from './definitions';\n\nexport class SplashScreenWeb extends WebPlugin implements SplashScreenPlugin {\n async show(_options?: ShowOptions): Promise<void> {\n return undefined;\n }\n\n async hide(_options?: HideOptions): Promise<void> {\n return undefined;\n }\n}\n"]}
@@ -3,7 +3,7 @@
3
3
  var core = require('@capacitor/core');
4
4
 
5
5
  const SplashScreen = core.registerPlugin('SplashScreen', {
6
- web: () => Promise.resolve().then(function () { return web; }).then(m => new m.SplashScreenWeb()),
6
+ web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.SplashScreenWeb()),
7
7
  });
8
8
 
9
9
  class SplashScreenWeb extends core.WebPlugin {
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst SplashScreen = registerPlugin('SplashScreen', {\n web: () => import('./web').then(m => new m.SplashScreenWeb()),\n});\nexport * from './definitions';\nexport { SplashScreen };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class SplashScreenWeb extends WebPlugin {\n async show(_options) {\n return undefined;\n }\n async hide(_options) {\n return undefined;\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,YAAY,GAAGA,mBAAc,CAAC,cAAc,EAAE;AACpD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;AACjE,CAAC;;ACFM,MAAM,eAAe,SAASC,cAAS,CAAC;AAC/C,IAAI,MAAM,IAAI,CAAC,QAAQ,EAAE;AACzB,QAAQ,OAAO,SAAS;AACxB,IAAI;AACJ,IAAI,MAAM,IAAI,CAAC,QAAQ,EAAE;AACzB,QAAQ,OAAO,SAAS;AACxB,IAAI;AACJ;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.cjs.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst SplashScreen = registerPlugin('SplashScreen', {\n web: () => import('./web').then((m) => new m.SplashScreenWeb()),\n});\nexport * from './definitions';\nexport { SplashScreen };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class SplashScreenWeb extends WebPlugin {\n async show(_options) {\n return undefined;\n }\n async hide(_options) {\n return undefined;\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;;AACK,MAAC,YAAY,GAAGA,mBAAc,CAAC,cAAc,EAAE;AACpD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;AACnE,CAAC;;ACFM,MAAM,eAAe,SAASC,cAAS,CAAC;AAC/C,IAAI,MAAM,IAAI,CAAC,QAAQ,EAAE;AACzB,QAAQ,OAAO,SAAS;AACxB,IAAI;AACJ,IAAI,MAAM,IAAI,CAAC,QAAQ,EAAE;AACzB,QAAQ,OAAO,SAAS;AACxB,IAAI;AACJ;;;;;;;;;"}
package/dist/plugin.js CHANGED
@@ -2,7 +2,7 @@ var capacitorSplashScreen = (function (exports, core) {
2
2
  'use strict';
3
3
 
4
4
  const SplashScreen = core.registerPlugin('SplashScreen', {
5
- web: () => Promise.resolve().then(function () { return web; }).then(m => new m.SplashScreenWeb()),
5
+ web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.SplashScreenWeb()),
6
6
  });
7
7
 
8
8
  class SplashScreenWeb extends core.WebPlugin {
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst SplashScreen = registerPlugin('SplashScreen', {\n web: () => import('./web').then(m => new m.SplashScreenWeb()),\n});\nexport * from './definitions';\nexport { SplashScreen };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class SplashScreenWeb extends WebPlugin {\n async show(_options) {\n return undefined;\n }\n async hide(_options) {\n return undefined;\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,YAAY,GAAGA,mBAAc,CAAC,cAAc,EAAE;IACpD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;IACjE,CAAC;;ICFM,MAAM,eAAe,SAASC,cAAS,CAAC;IAC/C,IAAI,MAAM,IAAI,CAAC,QAAQ,EAAE;IACzB,QAAQ,OAAO,SAAS;IACxB,IAAI;IACJ,IAAI,MAAM,IAAI,CAAC,QAAQ,EAAE;IACzB,QAAQ,OAAO,SAAS;IACxB,IAAI;IACJ;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.js","sources":["esm/index.js","esm/web.js"],"sourcesContent":["import { registerPlugin } from '@capacitor/core';\nconst SplashScreen = registerPlugin('SplashScreen', {\n web: () => import('./web').then((m) => new m.SplashScreenWeb()),\n});\nexport * from './definitions';\nexport { SplashScreen };\n//# sourceMappingURL=index.js.map","import { WebPlugin } from '@capacitor/core';\nexport class SplashScreenWeb extends WebPlugin {\n async show(_options) {\n return undefined;\n }\n async hide(_options) {\n return undefined;\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["registerPlugin","WebPlugin"],"mappings":";;;AACK,UAAC,YAAY,GAAGA,mBAAc,CAAC,cAAc,EAAE;IACpD,IAAI,GAAG,EAAE,MAAM,mDAAe,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,eAAe,EAAE,CAAC;IACnE,CAAC;;ICFM,MAAM,eAAe,SAASC,cAAS,CAAC;IAC/C,IAAI,MAAM,IAAI,CAAC,QAAQ,EAAE;IACzB,QAAQ,OAAO,SAAS;IACxB,IAAI;IACJ,IAAI,MAAM,IAAI,CAAC,QAAQ,EAAE;IACzB,QAAQ,OAAO,SAAS;IACxB,IAAI;IACJ;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capacitor/splash-screen",
3
- "version": "8.0.0-alpha.1",
3
+ "version": "8.0.0-beta.0",
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",
@@ -37,7 +37,7 @@
37
37
  "lint": "npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint",
38
38
  "fmt": "npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format",
39
39
  "eslint": "eslint . --ext ts",
40
- "prettier": "prettier \"**/*.{css,html,ts,js,java}\"",
40
+ "prettier": "prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java",
41
41
  "swiftlint": "node-swiftlint",
42
42
  "docgen": "docgen --api SplashScreenPlugin --output-readme README.md --output-json dist/docs.json",
43
43
  "build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs",
@@ -50,18 +50,18 @@
50
50
  "@capacitor/android": "next",
51
51
  "@capacitor/cli": "next",
52
52
  "@capacitor/core": "next",
53
- "@capacitor/docgen": "0.2.2",
53
+ "@capacitor/docgen": "0.3.0",
54
54
  "@capacitor/ios": "next",
55
55
  "@ionic/eslint-config": "^0.4.0",
56
- "@ionic/prettier-config": "~1.0.1",
57
- "@ionic/swiftlint-config": "^1.1.2",
58
- "eslint": "^8.57.0",
59
- "prettier": "~2.3.0",
60
- "prettier-plugin-java": "~1.0.2",
61
- "rimraf": "^6.0.1",
62
- "rollup": "^4.26.0",
63
- "swiftlint": "^1.0.1",
64
- "typescript": "~4.1.5"
56
+ "@ionic/prettier-config": "^4.0.0",
57
+ "@ionic/swiftlint-config": "^2.0.0",
58
+ "eslint": "^8.57.1",
59
+ "prettier": "^3.6.2",
60
+ "prettier-plugin-java": "^2.7.7",
61
+ "rimraf": "^6.1.0",
62
+ "rollup": "^4.53.2",
63
+ "swiftlint": "^2.0.0",
64
+ "typescript": "^5.9.3"
65
65
  },
66
66
  "peerDependencies": {
67
67
  "@capacitor/core": "next"
@@ -82,5 +82,5 @@
82
82
  "publishConfig": {
83
83
  "access": "public"
84
84
  },
85
- "gitHead": "4c2f39a8fc78578c919a81ba410d6a37e70152d0"
85
+ "gitHead": "06921fb53dc712720523c13836a92ba371054dcb"
86
86
  }