react-native-quick-crypto
Version:
A fast implementation of Node's `crypto` module written in C/C++ JSI
25 lines (23 loc) • 764 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.withSodiumAndroid = void 0;
var _configPlugins = require("expo/config-plugins");
const withSodiumAndroid = config => {
return (0, _configPlugins.withGradleProperties)(config, config => {
config.modResults = config.modResults || [];
// Check if the property already exists
const existingProperty = config.modResults.find(item => item.type === 'property' && item.key === 'sodiumEnabled');
if (!existingProperty) {
config.modResults.push({
type: 'property',
key: 'sodiumEnabled',
value: 'true'
});
}
return config;
});
};
exports.withSodiumAndroid = withSodiumAndroid;
//# sourceMappingURL=withSodiumAndroid.js.map