Skip to content

Commit a497801

Browse files
committed
feat(demo): add splash screen plugin
1 parent 79afae4 commit a497801

16 files changed

Lines changed: 51 additions & 3 deletions

examples/demo/android/capacitor.settings.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/
55
include ':capacitor-keyboard'
66
project(':capacitor-keyboard').projectDir = new File('../node_modules/@capacitor/keyboard/android')
77

8+
include ':capacitor-splash-screen'
9+
project(':capacitor-splash-screen').projectDir = new File('../node_modules/@capacitor/splash-screen/android')
10+
811
include ':capacitor-status-bar'
912
project(':capacitor-status-bar').projectDir = new File('../node_modules/@capacitor/status-bar/android')
1013

185 KB
Loading

examples/demo/assets/splash.png

186 KB
Loading

examples/demo/capacitor.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ const config: CapacitorConfig = {
1313
// the WebView. Test-only convenience for the demo app.
1414
webContentsDebuggingEnabled: true,
1515
},
16+
plugins: {
17+
SplashScreen: {
18+
launchShowDuration: 2000,
19+
launchAutoHide: true,
20+
backgroundColor: '#ffffff',
21+
showSpinner: false,
22+
},
23+
},
1624
};
1725

1826
export default config;

examples/demo/ios/App/App/Assets.xcassets/Splash.imageset/Contents.json

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,51 @@
22
"images": [
33
{
44
"idiom": "universal",
5-
"filename": "splash-2732x2732-2.png",
5+
"filename": "Default@1x~universal~anyany.png",
66
"scale": "1x"
77
},
88
{
99
"idiom": "universal",
10-
"filename": "splash-2732x2732-1.png",
10+
"filename": "Default@2x~universal~anyany.png",
1111
"scale": "2x"
1212
},
1313
{
1414
"idiom": "universal",
15-
"filename": "splash-2732x2732.png",
15+
"filename": "Default@3x~universal~anyany.png",
1616
"scale": "3x"
17+
},
18+
{
19+
"appearances": [
20+
{
21+
"appearance": "luminosity",
22+
"value": "dark"
23+
}
24+
],
25+
"idiom": "universal",
26+
"scale": "1x",
27+
"filename": "Default@1x~universal~anyany-dark.png"
28+
},
29+
{
30+
"appearances": [
31+
{
32+
"appearance": "luminosity",
33+
"value": "dark"
34+
}
35+
],
36+
"idiom": "universal",
37+
"scale": "2x",
38+
"filename": "Default@2x~universal~anyany-dark.png"
39+
},
40+
{
41+
"appearances": [
42+
{
43+
"appearance": "luminosity",
44+
"value": "dark"
45+
}
46+
],
47+
"idiom": "universal",
48+
"scale": "3x",
49+
"filename": "Default@3x~universal~anyany-dark.png"
1750
}
1851
],
1952
"info": {
198 KB
Loading
82.9 KB
Loading
198 KB
Loading
82.9 KB
Loading
198 KB
Loading

0 commit comments

Comments
 (0)