const buildRunCacheDir =
  process.env.AGENT_DEVICE_EXPO_BUILD_CACHE_DIR?.trim() || './.expo/build-run-cache';

module.exports = {
  expo: {
    name: 'Agent Device Tester',
    slug: 'agent-device-test-app',
    version: '1.0.0',
    orientation: 'default',
    userInterfaceStyle: 'automatic',
    buildCacheProvider: {
      plugin: 'expo-build-disk-cache',
      options: {
        cacheDir: buildRunCacheDir,
      },
    },
    plugins: ['expo-router'],
    ios: {
      supportsTablet: true,
      bundleIdentifier: 'com.callstack.agentdevicelab',
    },
    android: {
      package: 'com.callstack.agentdevicelab',
      predictiveBackGestureEnabled: false,
    },
  },
};
