From 2550ace14f9b50f1c63118c90299294c3acb0ab0 Mon Sep 17 00:00:00 2001 From: oussamatn Date: Sat, 9 Apr 2022 01:08:43 +0200 Subject: [PATCH 1/3] Integrate Cordova ( Android, IOS, Electron ) --- .gitignore | 5 +++++ package.json | 31 ++++++++++++++++++++++++------- public/index.html | 6 +++--- src-cordova/.gitignore | 8 ++++++++ src-cordova/config.xml | 27 +++++++++++++++++++++++++++ src-cordova/package.json | 35 +++++++++++++++++++++++++++++++++++ src-cordova/www/.gitignore | 3 +++ vue.config.js | 11 +++++++++-- 8 files changed, 114 insertions(+), 12 deletions(-) create mode 100644 src-cordova/.gitignore create mode 100644 src-cordova/config.xml create mode 100644 src-cordova/package.json create mode 100644 src-cordova/www/.gitignore diff --git a/.gitignore b/.gitignore index bc81dd6..8ba12e9 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,8 @@ yarn-error.log* *.sln *.sw? *.env + +# Cordova +/src-cordova/platforms +/src-cordova/plugins +/public/cordova.js diff --git a/package.json b/package.json index 624901e..cda75a1 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,25 @@ { - "name": "webplayer", - "version": "0.2.1", - "license": "GPL-3.0 License", - "email": "contact@jelliti.me", - "url": "https://oussama.jelliti.me", + "name": "Radio Player", + "version": "0.2.2", "scripts": { "serve": "vue-cli-service serve", - "build": "vue-cli-service build" + "build": "vue-cli-service build", + "cordova-build-android": "cross-env CORDOVA_PLATFORM=android vue-cli-service cordova-build-android", + "cordova-build-browser": "cross-env CORDOVA_PLATFORM=browser vue-cli-service cordova-build-browser", + "cordova-build-electron": "cross-env CORDOVA_PLATFORM=electron vue-cli-service cordova-build-electron", + "cordova-build-ios": "cross-env CORDOVA_PLATFORM=ios vue-cli-service cordova-build-ios", + "cordova-build-only-www-android": "cross-env CORDOVA_PLATFORM=android vue-cli-service cordova-build-only-www-android", + "cordova-build-only-www-browser": "cross-env CORDOVA_PLATFORM=browser vue-cli-service cordova-build-only-www-browser", + "cordova-build-only-www-electron": "cross-env CORDOVA_PLATFORM=electron vue-cli-service cordova-build-only-www-electron", + "cordova-build-only-www-ios": "cross-env CORDOVA_PLATFORM=ios vue-cli-service cordova-build-only-www-ios", + "cordova-build-only-www-osx": "cross-env CORDOVA_PLATFORM=osx vue-cli-service cordova-build-only-www-osx", + "cordova-build-osx": "cross-env CORDOVA_PLATFORM=osx vue-cli-service cordova-build-osx", + "cordova-prepare": "vue-cli-service cordova-prepare", + "cordova-serve-android": "cross-env CORDOVA_PLATFORM=android vue-cli-service cordova-serve-android", + "cordova-serve-browser": "cross-env CORDOVA_PLATFORM=browser vue-cli-service cordova-serve-browser", + "cordova-serve-electron": "cross-env CORDOVA_PLATFORM=electron vue-cli-service cordova-serve-electron", + "cordova-serve-ios": "cross-env CORDOVA_PLATFORM=ios vue-cli-service cordova-serve-ios", + "cordova-serve-osx": "cross-env CORDOVA_PLATFORM=osx vue-cli-service cordova-serve-osx" }, "dependencies": { "axios": "^0.21.1", @@ -27,6 +40,10 @@ "babel-plugin-transform-remove-console": "^6.9.4", "sass": "^1.49.7", "sass-loader": "^10.0.0", + "vue-cli-plugin-cordova": "~2.4.1", "vue-template-compiler": "^2.6.10" - } + }, + "email": "contact@jelliti.me", + "license": "GPL-3.0 License", + "url": "https://oussama.jelliti.me" } diff --git a/public/index.html b/public/index.html index 03d4bc0..bce6acb 100644 --- a/public/index.html +++ b/public/index.html @@ -13,9 +13,9 @@ - - - + + + Joujma FM | Radio Station