mirror of
https://github.com/bulwarkmail/native.git
synced 2026-10-31 16:06:32 +00:00
55 lines
1.3 KiB
JavaScript
55 lines
1.3 KiB
JavaScript
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'],
|
|
extra: {
|
|
commit: COMMIT,
|
|
},
|
|
},
|
|
};
|