mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-16 09:59:41 +02:00
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>
51 lines
No EOL
1.1 KiB
TypeScript
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,
|
|
};
|
|
}; |