Build APK Android fonctionnel - Corrections finales
- Ajout de Java 21 dans Dockerfile pour compatibilité Capacitor - Création de fichiers de types séparés (lib/types/) pour éviter dépendances API routes - Configuration next.config.export.js pour export statique - Exclusion temporaire des routes API pendant le build - Correction configuration Gradle (Java 17/21) - Script build-apk.sh amélioré avec gestion des routes API - APK généré avec succès (4.5MB) dans dist/compagnon-admin-debug.apk Fichiers de types créés: - lib/types/place.ts - lib/types/infos.ts - lib/types/tides.ts - lib/types/excursions.ts - lib/types/sun-times.ts - lib/types/notifications.ts Tous les imports mis à jour pour utiliser les nouveaux fichiers de types.
This commit is contained in:
10
lib/types/excursions.ts
Normal file
10
lib/types/excursions.ts
Normal file
@ -0,0 +1,10 @@
|
||||
export interface Excursion {
|
||||
id: string;
|
||||
name: string;
|
||||
type: "tour-lagon" | "plongee" | "4x4";
|
||||
description: string;
|
||||
duration: string;
|
||||
price: number;
|
||||
available: boolean;
|
||||
}
|
||||
|
||||
15
lib/types/infos.ts
Normal file
15
lib/types/infos.ts
Normal file
@ -0,0 +1,15 @@
|
||||
export interface FAQItem {
|
||||
id: string;
|
||||
question: string;
|
||||
answer: string;
|
||||
category?: string;
|
||||
icon?: string;
|
||||
}
|
||||
|
||||
export interface LexiqueItem {
|
||||
id: string;
|
||||
mot: string;
|
||||
traduction: string;
|
||||
description: string;
|
||||
}
|
||||
|
||||
9
lib/types/notifications.ts
Normal file
9
lib/types/notifications.ts
Normal file
@ -0,0 +1,9 @@
|
||||
export interface Notification {
|
||||
id: string;
|
||||
title: string;
|
||||
message: string;
|
||||
type: "whale" | "weather" | "excursion" | "info";
|
||||
timestamp: string;
|
||||
read: boolean;
|
||||
}
|
||||
|
||||
19
lib/types/place.ts
Normal file
19
lib/types/place.ts
Normal file
@ -0,0 +1,19 @@
|
||||
export interface Place {
|
||||
id: string;
|
||||
name: string;
|
||||
category: string;
|
||||
description: string;
|
||||
image: string;
|
||||
location: {
|
||||
lat: number;
|
||||
lng: number;
|
||||
address: string;
|
||||
};
|
||||
type?: string;
|
||||
keywords?: string[];
|
||||
contact?: string;
|
||||
gmapLink?: string;
|
||||
conseil?: string;
|
||||
horaires?: string;
|
||||
}
|
||||
|
||||
6
lib/types/sun-times.ts
Normal file
6
lib/types/sun-times.ts
Normal file
@ -0,0 +1,6 @@
|
||||
export interface SunTimes {
|
||||
date: string;
|
||||
sunrise: string;
|
||||
sunset: string;
|
||||
}
|
||||
|
||||
6
lib/types/tides.ts
Normal file
6
lib/types/tides.ts
Normal file
@ -0,0 +1,6 @@
|
||||
export interface TideData {
|
||||
date: string;
|
||||
highTide: { time: string; height: number };
|
||||
lowTide: { time: string; height: number };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user