Checked-in android/ Capacitor project plus the native TiptoiPlugin (Kotlin): SAF directory picker for the pen, listing/copying/deleting .gme files on the pen, and downloading GME/cover files into app-private storage.
20 lines
502 B
TypeScript
20 lines
502 B
TypeScript
import type { CapacitorConfig } from '@capacitor/cli'
|
|
|
|
// DEV_URL aktiviert den Capacitor Live-Reload gegen den Vite-Dev-Server.
|
|
// Beispiel: DEV_URL=http://192.168.1.42:5173 bun run cap:android
|
|
const devUrl = process.env.DEV_URL
|
|
|
|
const config: CapacitorConfig = {
|
|
appId: 'com.tiptoisync.app',
|
|
appName: 'TipToi Sync',
|
|
webDir: 'dist',
|
|
server: devUrl
|
|
? { url: devUrl, cleartext: true }
|
|
: { androidScheme: 'https' },
|
|
android: {
|
|
allowMixedContent: true,
|
|
},
|
|
}
|
|
|
|
export default config
|