UNPKG

react-native-keys

Version:
21 lines (20 loc) 829 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.withAndroidSettingsDependency = void 0; const config_plugins_1 = require("@expo/config-plugins"); function applySettings(gradleSettings) { const codePushSettings = ` include ':react-native-keys' project(':react-native-keys').projectDir = new File(rootProject.projectDir, '../../android')`; if (!gradleSettings.includes(codePushSettings)) { return gradleSettings + codePushSettings; } return gradleSettings; } const withAndroidSettingsDependency = (config) => { return (0, config_plugins_1.withSettingsGradle)(config, (config) => { config.modResults.contents = applySettings(config.modResults.contents); return config; }); }; exports.withAndroidSettingsDependency = withAndroidSettingsDependency;