From ab7291d4cb99573ab638a8eb2c2dc69ed96b9ac5 Mon Sep 17 00:00:00 2001 From: Silvio Leite Date: Tue, 13 Nov 2018 20:47:08 -0200 Subject: [PATCH] Add the orientation option to manifest.json --- Config/config.php | 1 + README.md | 1 + Services/ManifestService.php | 1 + module.json | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Config/config.php b/Config/config.php index b8b9935..871943f 100644 --- a/Config/config.php +++ b/Config/config.php @@ -9,6 +9,7 @@ 'background_color' => '#ffffff', 'theme_color' => '#000000', 'display' => 'standalone', + 'orientation'=> 'any', 'icons' => [ '72x72' => '/images/icons/icon-72x72.png', '96x96' => '/images/icons/icon-96x96.png', diff --git a/README.md b/README.md index 3a97e83..c0c62a5 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,7 @@ Configure your app name, description, and icons in `config/laravelpwa.php`. 'background_color' => '#ffffff', 'theme_color' => '#000000', 'display' => 'standalone', + 'orientation' => 'any', 'icons' => [ '72x72' => '/images/icons/icon-72x72.png', '96x96' => '/images/icons/icon-96x96.png', diff --git a/Services/ManifestService.php b/Services/ManifestService.php index b436546..033e51d 100644 --- a/Services/ManifestService.php +++ b/Services/ManifestService.php @@ -20,6 +20,7 @@ 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') ]; foreach (config('laravelpwa.manifest.icons') as $size => $file) { diff --git a/module.json b/module.json index c8221ac..a7b98fb 100644 --- a/module.json +++ b/module.json @@ -2,7 +2,7 @@ "name": "LaravelPWA", "alias": "laravelpwa", "description": "Looks like an app, feels like an app, but NOT an app.", - "keywords": [], + "keywords": ["laravel", "pwa", "progressive web app"], "active": 1, "order": 0, "providers": [