diff --git a/Config/config.php b/Config/config.php index 871943f..fbb2f2b 100644 --- a/Config/config.php +++ b/Config/config.php @@ -18,7 +18,19 @@ '152x152' => '/images/icons/icon-152x152.png', '192x192' => '/images/icons/icon-192x192.png', '384x384' => '/images/icons/icon-384x384.png', - '512x512' => '/images/icons/icon-512x512.png', + '512x512' => '/images/icons/icon-512x512.png' + ], + 'splash' => [ + '640x1136' => '/images/icons/splash-640x1136.png', + '750x1334' => '/images/icons/splash-750x1334.png', + '828x1792' => '/images/icons/splash-828x1792.png', + '1125x2436' => '/images/icons/splash-1125x2436.png', + '1242x2208' => '/images/icons/splash-1242x2208.png', + '1242x2688' => '/images/icons/splash-1242x2688.png', + '1536x2048' => '/images/icons/splash-1536x2048.png', + '1668x2224' => '/images/icons/splash-1668x2224.png', + '1668x2388' => '/images/icons/splash-1668x2388.png', + '2048x2732' => '/images/icons/splash-2048x2732.png', ] ] ]; diff --git a/README.md b/README.md index 849e217..8b5da3a 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Add the following to your `composer.json` file : ```json "require": { - "silviolleite/laravelpwa": "^1.0.1", + "silviolleite/laravelpwa": "^1.0.2", }, ``` @@ -39,7 +39,7 @@ $ php artisan vendor:publish --provider="LaravelPWA\Providers\LaravelPWAServiceP ### Configuration -Configure your app name, description, and icons in `config/laravelpwa.php`. +Configure your app name, description, icons and splashes in `config/laravelpwa.php`. ```php 'manifest' => [ @@ -59,6 +59,18 @@ Configure your app name, description, and icons in `config/laravelpwa.php`. '192x192' => '/images/icons/icon-192x192.png', '384x384' => '/images/icons/icon-384x384.png', '512x512' => '/images/icons/icon-512x512.png', + ], + 'splash' => [ + '640x1136' => '/images/icons/splash-640x1136.png', + '750x1334' => '/images/icons/splash-750x1334.png', + '828x1792' => '/images/icons/splash-828x1792.png', + '1125x2436' => '/images/icons/splash-1125x2436.png', + '1242x2208' => '/images/icons/splash-1242x2208.png', + '1242x2688' => '/images/icons/splash-1242x2688.png', + '1536x2048' => '/images/icons/splash-1536x2048.png', + '1668x2224' => '/images/icons/splash-1668x2224.png', + '1668x2388' => '/images/icons/splash-1668x2388.png', + '2048x2732' => '/images/icons/splash-2048x2732.png', ] ] ``` @@ -83,6 +95,17 @@ how this example: + + + + + + + + + + + @@ -130,6 +153,16 @@ var filesToCache = [ '/images/icons/icon-192x192.png', '/images/icons/icon-384x384.png', '/images/icons/icon-512x512.png', + '/images/icons/splash-640x1136.png', + '/images/icons/splash-750x1334.png', + '/images/icons/splash-1242x2208.png', + '/images/icons/splash-1125x2436.png', + '/images/icons/splash-828x1792.png', + '/images/icons/splash-1242x2688.png', + '/images/icons/splash-1536x2048.png', + '/images/icons/splash-1668x2224.png', + '/images/icons/splash-1668x2388.png', + '/images/icons/splash-2048x2732.png' ]; // Cache on install diff --git a/Services/ManifestService.php b/Services/ManifestService.php index 033e51d..041ef05 100644 --- a/Services/ManifestService.php +++ b/Services/ManifestService.php @@ -20,7 +20,8 @@ public function generate() 'display' => config('laravelpwa.manifest.display'), 'theme_color' => config('laravelpwa.manifest.theme_color'), 'background_color' => config('laravelpwa.manifest.background_color'), - 'orientation' => config('laravelpwa.manifest.orientation') + 'orientation' => config('laravelpwa.manifest.orientation'), + 'splash' => config('laravelpwa.manifest.splash') ]; foreach (config('laravelpwa.manifest.icons') as $size => $file) { diff --git a/assets/images/icons/splash-1125x2436.png b/assets/images/icons/splash-1125x2436.png new file mode 100644 index 0000000..05b019a Binary files /dev/null and b/assets/images/icons/splash-1125x2436.png differ diff --git a/assets/images/icons/splash-1242x2208.png b/assets/images/icons/splash-1242x2208.png new file mode 100644 index 0000000..127202e Binary files /dev/null and b/assets/images/icons/splash-1242x2208.png differ diff --git a/assets/images/icons/splash-1242x2688.png b/assets/images/icons/splash-1242x2688.png new file mode 100644 index 0000000..dec52b6 Binary files /dev/null and b/assets/images/icons/splash-1242x2688.png differ diff --git a/assets/images/icons/splash-1536x2048.png b/assets/images/icons/splash-1536x2048.png new file mode 100644 index 0000000..2008c75 Binary files /dev/null and b/assets/images/icons/splash-1536x2048.png differ diff --git a/assets/images/icons/splash-1668x2224.png b/assets/images/icons/splash-1668x2224.png new file mode 100644 index 0000000..7fac072 Binary files /dev/null and b/assets/images/icons/splash-1668x2224.png differ diff --git a/assets/images/icons/splash-1668x2388.png b/assets/images/icons/splash-1668x2388.png new file mode 100644 index 0000000..f39d2ce Binary files /dev/null and b/assets/images/icons/splash-1668x2388.png differ diff --git a/assets/images/icons/splash-2048x2732.png b/assets/images/icons/splash-2048x2732.png new file mode 100644 index 0000000..0fc4578 Binary files /dev/null and b/assets/images/icons/splash-2048x2732.png differ diff --git a/assets/images/icons/splash-640x1136.png b/assets/images/icons/splash-640x1136.png new file mode 100644 index 0000000..73a34ad Binary files /dev/null and b/assets/images/icons/splash-640x1136.png differ diff --git a/assets/images/icons/splash-750x1334.png b/assets/images/icons/splash-750x1334.png new file mode 100644 index 0000000..a38e09d Binary files /dev/null and b/assets/images/icons/splash-750x1334.png differ diff --git a/assets/images/icons/splash-828x1792.png b/assets/images/icons/splash-828x1792.png new file mode 100644 index 0000000..f6de06c Binary files /dev/null and b/assets/images/icons/splash-828x1792.png differ diff --git a/resources/views/meta.blade.php b/resources/views/meta.blade.php index 1dad388..90c88b1 100644 --- a/resources/views/meta.blade.php +++ b/resources/views/meta.blade.php @@ -14,6 +14,18 @@ + + + + + + + + + + + +