mirror of
https://github.com/dborth/vbagx.git
synced 2024-11-25 03:56:53 +01:00
Updates:
-Fix build.js files -Upgrade Cordova android and electron. -Update app package name when applicable. -Update package-*.json files.
This commit is contained in:
parent
cc9eb65639
commit
9f3a804100
@ -1,7 +1,7 @@
|
||||
const webpack = require('webpack');
|
||||
//const ora = require('ora');
|
||||
const rm = require('rimraf');
|
||||
const chalk = require('chalk');
|
||||
const {rimraf} = require('rimraf');
|
||||
//const chalk = require('chalk');
|
||||
const config = require('./webpack.config.js');
|
||||
|
||||
const env = process.env.NODE_ENV || 'development';
|
||||
@ -11,8 +11,8 @@ const isCordova = target === 'cordova'
|
||||
//const spinner = ora(env === 'production' ? 'building for production...' : 'building development version...');
|
||||
//spinner.start();
|
||||
|
||||
rm(isCordova ? './cordova/www' : './www/', (removeErr) => {
|
||||
if (removeErr) throw removeErr;
|
||||
rimraf(isCordova ? './cordova/www' : './www/').then(() => {
|
||||
//if (removeErr) throw removeErr;
|
||||
|
||||
webpack(config, (err, stats) => {
|
||||
if (err) throw err;
|
||||
@ -27,10 +27,10 @@ rm(isCordova ? './cordova/www' : './www/', (removeErr) => {
|
||||
})}\n\n`);
|
||||
|
||||
if (stats.hasErrors()) {
|
||||
console.log(chalk.red('Build failed with errors.\n'));
|
||||
console.log('Build failed with errors.\n');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
console.log(chalk.cyan('Build complete.\n'));
|
||||
console.log('Build complete.\n');
|
||||
});
|
||||
});
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<widget id="com.comidacab.app" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
|
||||
<widget id="com.devmainbase.app" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
|
||||
<name>Comida Cab</name>
|
||||
<description>
|
||||
Aplicación de entrega de comida local.
|
||||
@ -8,7 +8,6 @@
|
||||
Aplicaciones Digitales Cab
|
||||
</author>
|
||||
<content src="index.html" />
|
||||
<plugin name="cordova-plugin-whitelist" spec="1" />
|
||||
<access origin="*" />
|
||||
<allow-intent href="http://*/*" />
|
||||
<allow-intent href="https://*/*" />
|
||||
@ -23,35 +22,31 @@
|
||||
<allow-intent href="itms:*" />
|
||||
<allow-intent href="itms-apps:*" />
|
||||
</platform>
|
||||
|
||||
<allow-navigation href="*" />
|
||||
|
||||
<platform name="android">
|
||||
<preference name="StatusBarOverlaysWebView" value="false" />
|
||||
<preference name="android-minSdkVersion" value="22" />
|
||||
<preference name="SplashMaintainAspectRatio" value="true" />
|
||||
<splash density="land-mdpi" src="res/screen/android/land/splash-land-mdpi.png" />
|
||||
<splash density="land-hdpi" src="res/screen/android/land/splash-land-hdpi.png" />
|
||||
<splash density="land-xhdpi" src="res/screen/android/land/splash-land-xhdpi.png" />
|
||||
<splash density="land-xxhdpi" src="res/screen/android/land/splash-land-xxhdpi.png" />
|
||||
<splash density="land-xxxhdpi" src="res/screen/android/land/splash-land-xxxhdpi.png" />
|
||||
<splash density="port-mdpi" src="res/screen/android/port/splash-port-mdpi.png" />
|
||||
<splash density="port-hdpi" src="res/screen/android/port/splash-port-hdpi.png" />
|
||||
<splash density="port-xhdpi" src="res/screen/android/port/splash-port-xhdpi.png" />
|
||||
<splash density="port-xxhdpi" src="res/screen/android/port/splash-port-xxhdpi.png" />
|
||||
<splash density="port-xxxhdpi" src="res/screen/android/port/splash-port-xxxhdpi.png" />
|
||||
<icon density="ldpi" src="res/icon/android/ldpi.png" />
|
||||
<icon density="mdpi" src="res/icon/android/mdpi.png" />
|
||||
<icon density="hdpi" src="res/icon/android/hdpi.png" />
|
||||
<icon density="xhdpi" src="res/icon/android/xhdpi.png" />
|
||||
<icon density="xxhdpi" src="res/icon/android/xxhdpi.png" />
|
||||
<icon density="xxxhdpi" src="res/icon/android/xxxhdpi.png" />
|
||||
<splash density="land-mdpi" src="res/screen/android/land/splash-land-mdpi.png" />
|
||||
<splash density="land-hdpi" src="res/screen/android/land/splash-land-hdpi.png" />
|
||||
<splash density="land-xhdpi" src="res/screen/android/land/splash-land-xhdpi.png" />
|
||||
<splash density="land-xxhdpi" src="res/screen/android/land/splash-land-xxhdpi.png" />
|
||||
<splash density="land-xxxhdpi" src="res/screen/android/land/splash-land-xxxhdpi.png" />
|
||||
<splash density="port-mdpi" src="res/screen/android/port/splash-port-mdpi.png" />
|
||||
<splash density="port-hdpi" src="res/screen/android/port/splash-port-hdpi.png" />
|
||||
<splash density="port-xhdpi" src="res/screen/android/port/splash-port-xhdpi.png" />
|
||||
<splash density="port-xxhdpi" src="res/screen/android/port/splash-port-xxhdpi.png" />
|
||||
<splash density="port-xxxhdpi" src="res/screen/android/port/splash-port-xxxhdpi.png" />
|
||||
<icon density="ldpi" src="res/icon/android/ldpi.png" />
|
||||
<icon density="mdpi" src="res/icon/android/mdpi.png" />
|
||||
<icon density="hdpi" src="res/icon/android/hdpi.png" />
|
||||
<icon density="xhdpi" src="res/icon/android/xhdpi.png" />
|
||||
<icon density="xxhdpi" src="res/icon/android/xxhdpi.png" />
|
||||
<icon density="xxxhdpi" src="res/icon/android/xxxhdpi.png" />
|
||||
</platform>
|
||||
|
||||
|
||||
<platform name="ios">
|
||||
<config-file parent="CFBundleAllowMixedLocalizations" platform="ios" target="*-Info.plist">
|
||||
<true />
|
||||
<true />
|
||||
</config-file>
|
||||
<preference name="scheme" value="app" />
|
||||
<preference name="hostname" value="localhost" />
|
||||
@ -78,8 +73,6 @@
|
||||
<icon height="167" src="res/icon/ios/icon-83.5x83.5@2x.png" width="167" />
|
||||
<icon height="1024" src="res/icon/ios/icon-512x512@2x.png" width="1024" />
|
||||
</platform>
|
||||
|
||||
|
||||
<platform name="electron">
|
||||
<preference name="ElectronSettingsFilePath" value="electron-settings.json" />
|
||||
<icon src="res/icon/electron/app.png" target="app" />
|
||||
@ -87,8 +80,6 @@
|
||||
<preference name="ShowSplashScreen" value="false" />
|
||||
<preference name="AutoHideSplashScreen" value="true" />
|
||||
</platform>
|
||||
|
||||
|
||||
<preference name="DisallowOverscroll" value="true" />
|
||||
<preference name="BackupWebStorage" value="local" />
|
||||
<preference name="AutoHideSplashScreen" value="false" />
|
||||
|
7389
cordova/package-lock.json
generated
7389
cordova/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,8 +1,8 @@
|
||||
{
|
||||
"name": "com.comidacab.app",
|
||||
"displayName": "Comida Cab",
|
||||
"name": "com.devmainbase.app",
|
||||
"displayName": "Main Base Dev",
|
||||
"version": "1.0.0",
|
||||
"description": "Aplicaci<EFBFBD>n de entrega de comida local.",
|
||||
"description": "Aplicacion base inicial.",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
@ -13,22 +13,17 @@
|
||||
"author": "Juan Carlos Ruvalcaba",
|
||||
"license": "Closed source",
|
||||
"dependencies": {
|
||||
"cordova-android": "^9.1.0",
|
||||
"cordova-electron": "^1.1.1",
|
||||
"cordova-plugin-keyboard": "^1.2.0",
|
||||
"cordova-plugin-splashscreen": "^6.0.0",
|
||||
"cordova-plugin-statusbar": "^2.4.3",
|
||||
"cordova-sms-plugin": "^1.0.1",
|
||||
"onesignal-cordova-plugin": "^2.11.4"
|
||||
"cordova-sms-plugin": "^1.0.1"
|
||||
},
|
||||
"cordova": {
|
||||
"plugins": {
|
||||
"cordova-plugin-statusbar": {},
|
||||
"cordova-plugin-keyboard": {},
|
||||
"cordova-plugin-splashscreen": {},
|
||||
"cordova-plugin-whitelist": {},
|
||||
"cordova-sms-plugin": {},
|
||||
"onesignal-cordova-plugin": {}
|
||||
"cordova-sms-plugin": {}
|
||||
},
|
||||
"platforms": [
|
||||
"android",
|
||||
@ -36,6 +31,7 @@
|
||||
]
|
||||
},
|
||||
"devDependencies": {
|
||||
"cordova-plugin-whitelist": "^1.3.4"
|
||||
"cordova-android": "^12.0.1",
|
||||
"cordova-electron": "^3.1.0"
|
||||
}
|
||||
}
|
1027
package-lock.json
generated
1027
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
18
package.json
18
package.json
@ -1,8 +1,8 @@
|
||||
{
|
||||
"name": "comida-cab",
|
||||
"name": "main-base-dev",
|
||||
"private": true,
|
||||
"version": "1.0.0",
|
||||
"description": "Comida Cab",
|
||||
"description": "Main Base Dev",
|
||||
"repository": "",
|
||||
"license": "UNLICENSED",
|
||||
"scripts": {
|
||||
@ -27,8 +27,8 @@
|
||||
"Samsung >= 5"
|
||||
],
|
||||
"dependencies": {
|
||||
"alasql": "^4.1.8",
|
||||
"axios": "^1.5.0",
|
||||
"alasql": "^4.1.10",
|
||||
"axios": "^1.5.1",
|
||||
"crypto-js": "^4.1.1",
|
||||
"dom7": "^4.0.6",
|
||||
"framework7": "^8.3.0",
|
||||
@ -36,14 +36,14 @@
|
||||
"html2pdf.js": "^0.10.1",
|
||||
"localforage": "^1.10.0",
|
||||
"skeleton-elements": "^4.0.1",
|
||||
"swiper": "^10.2.0"
|
||||
"swiper": "^10.3.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.22.20",
|
||||
"@babel/core": "^7.23.0",
|
||||
"@babel/plugin-transform-runtime": "^7.22.15",
|
||||
"@babel/preset-env": "^7.22.20",
|
||||
"@babel/preset-react": "^7.22.15",
|
||||
"@babel/runtime": "^7.22.15",
|
||||
"@babel/runtime": "^7.23.1",
|
||||
"babel-loader": "^9.1.3",
|
||||
"chalk": "^5.3.0",
|
||||
"concurrently": "^8.2.1",
|
||||
@ -62,8 +62,8 @@
|
||||
"mini-css-extract-plugin": "^2.7.6",
|
||||
"ora": "^7.0.1",
|
||||
"postcss-loader": "^7.3.3",
|
||||
"postcss-preset-env": "^9.1.3",
|
||||
"rimraf": "^5.0.1",
|
||||
"postcss-preset-env": "^9.1.4",
|
||||
"rimraf": "^5.0.5",
|
||||
"style-loader": "^3.3.3",
|
||||
"terser-webpack-plugin": "^5.3.9",
|
||||
"url-loader": "^4.1.1",
|
||||
|
@ -24,11 +24,11 @@ import user from './stores/user.js';
|
||||
|
||||
var device = getDevice();
|
||||
var app = new Framework7({
|
||||
name: 'Main App', // App name
|
||||
name: 'Main Base App', // App name
|
||||
theme: 'auto', // Automatic theme detection
|
||||
el: '#app', // App root element
|
||||
component: App, // App main component
|
||||
id: 'com.devmain.app', // App bundle ID
|
||||
id: 'com.devmainbase.app', // App bundle ID
|
||||
routes: routes, // App routes
|
||||
// serviceWorker: { // Register service worker
|
||||
// path: '/service-worker.js',
|
||||
|
Loading…
Reference in New Issue
Block a user