Modernizacion completa del frontend: - Angular 8 -> 18.2.14 - Ionic 4 -> 8.7.17 - Capacitor 6.x (migracion desde Cordova/@ionic-native) - TypeScript 5.4.5 - Swiper 11 con Web Components API Cambios principales: - Migrar NativeStorage a @capacitor/preferences - Migrar InAppBrowser a @capacitor/browser - Migrar Camera a @capacitor/camera - Migrar Geolocation a @capacitor/geolocation - Migrar StatusBar/SplashScreen a Capacitor - Migrar Facebook/Google login a plugins Capacitor - Actualizar lazy loading syntax (Angular 12+) - Configurar buildOptimizer: false para Ionic 8 - Limpiar package.json de dependencias obsoletas - Agregar README con guia de instalacion Co-Authored-By: Claude <noreply@anthropic.com>
28 lines
739 B
TypeScript
Executable File
28 lines
739 B
TypeScript
Executable File
import { CapacitorConfig } from '@capacitor/cli';
|
|
|
|
const config: CapacitorConfig = {
|
|
appId: 'io.ionic.starter',
|
|
appName: 'ichamba',
|
|
webDir: 'www',
|
|
server: {
|
|
androidScheme: 'https'
|
|
},
|
|
cordova: {
|
|
preferences: {
|
|
ScrollEnabled: 'false',
|
|
'android-targetSdkVersion': '30',
|
|
'android-minSdkVersion': '19',
|
|
BackupWebStorage: 'none',
|
|
SplashMaintainAspectRatio: 'true',
|
|
FadeSplashScreenDuration: '300',
|
|
SplashShowOnlyFirstTime: 'false',
|
|
SplashScreen: 'screen',
|
|
SplashScreenDelay: '3000',
|
|
GOOGLE_MAPS_ANDROID_API_KEY: 'AIzaSyBmkTsg0-1VKllM_vHD6V1EhPnF0YUP-88',
|
|
GOOGLE_MAPS_IOS_API_KEY: 'AIzaSyBmkTsg0-1VKllM_vHD6V1EhPnF0YUP-88'
|
|
}
|
|
}
|
|
};
|
|
|
|
export default config;
|