managarten/apps/manadeck/apps/mobile/app.config.ts
Wuesteon d36b321d9d style: auto-format codebase with Prettier
Applied formatting to 1487+ files using pnpm format:write
  - TypeScript/JavaScript files
  - Svelte components
  - Astro pages
  - JSON configs
  - Markdown docs

  13 files still need manual review (Astro JSX comments)
2025-11-27 18:33:16 +01:00

53 lines
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,
};
};