const fs = require('node:fs'); const path = require('node:path'); const { execSync } = require('node:child_process'); const VERSION = fs.readFileSync(path.join(__dirname, 'VERSION'), 'utf8').trim(); let COMMIT = process.env.GITHUB_SHA || ''; if (!COMMIT) { try { COMMIT = execSync('git rev-parse --short HEAD', { cwd: __dirname, stdio: ['ignore', 'pipe', 'ignore'] }) .toString() .trim(); } catch { COMMIT = 'dev'; } } COMMIT = COMMIT.slice(0, 7); module.exports = { expo: { name: 'Bulwark Mobile', slug: 'bulwark-mobile', scheme: 'bulwarkmobile', version: VERSION, orientation: 'portrait', icon: './assets/icon.png', userInterfaceStyle: 'dark', newArchEnabled: true, splash: { image: './assets/splash-icon.png', resizeMode: 'contain', backgroundColor: '#09090b', }, ios: { supportsTablet: true, }, android: { adaptiveIcon: { foregroundImage: './assets/adaptive-icon.png', backgroundColor: '#09090b', }, edgeToEdgeEnabled: true, predictiveBackGestureEnabled: false, package: 'com.anonymous.bulwarkmobile', }, web: { favicon: './assets/favicon.png', }, plugins: [ 'expo-secure-store', '@react-native-community/datetimepicker', 'expo-localization', [ 'expo-camera', { cameraPermission: 'Bulwark Mail uses the camera to scan sign-in QR codes shown in webmail.', }, ], ], extra: { commit: COMMIT, }, }, };