managarten/manadeck/apps/mobile/app.config.ts
Till-JS e7f5f942f3 chore: initial commit - consolidate 4 projects into monorepo
Projects included:
- maerchenzauber (NestJS backend + Expo mobile + SvelteKit web + Astro landing)
- manacore (Expo mobile + SvelteKit web + Astro landing)
- manadeck (NestJS backend + Expo mobile + SvelteKit web)
- memoro (Expo mobile + SvelteKit web + Astro landing)

This commit preserves the current state before monorepo restructuring.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 23:38:24 +01:00

51 lines
No EOL
1.1 KiB
TypeScript

import { ExpoConfig, ConfigContext } from 'expo/config';
const IS_DEV = process.env.EAS_BUILD_PROFILE === 'development';
export default ({ config }: ConfigContext): ExpoConfig => {
// Base plugins for all builds
const basePlugins = [
'expo-router',
'expo-font',
'expo-web-browser',
[
'expo-image-picker',
{
photosPermission: 'Diese App benötigt Zugriff auf deine Fotos, um Bilder für Lernkarten auszuwählen.',
cameraPermission: 'Diese App benötigt Zugriff auf die Kamera, um Fotos für Lernkarten aufzunehmen.',
},
],
[
'expo-build-properties',
{
ios: {
deploymentTarget: '16.0',
newArchEnabled: true,
},
android: {
targetSdkVersion: 36,
compileSdkVersion: 36,
newArchEnabled: true,
},
},
],
];
// Only add dev-launcher in development builds
const plugins = IS_DEV
? [
...basePlugins,
[
'expo-dev-launcher',
{
launchMode: 'most-recent',
},
],
]
: basePlugins;
return {
...config,
plugins,
};
};