nexo/apps/mattermost/react-native.config.js

23 lines
597 B
JavaScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
const path = require('path');
// eslint-disable-next-line no-process-env
const intuneEnabled = process.env.INTUNE_ENABLED === '1' || process.env.INTUNE_ENABLED === 'true';
const dependencies = {};
// Conditionally add Intune dependency when enabled
if (intuneEnabled) {
dependencies['@mattermost/intune'] = {
root: path.resolve(__dirname, 'libraries/@mattermost/intune'),
};
}
module.exports = {
dependencies,
assets: [
'./assets/fonts',
],
};