13 lines
455 B
JavaScript
13 lines
455 B
JavaScript
const { withAppBuildGradle } = require('@expo/config-plugins');
|
|
|
|
module.exports = function withMmkvForce(config) {
|
|
return withAppBuildGradle(config, (config) => {
|
|
let contents = config.modResults.contents;
|
|
if (!contents.includes("force 'com.tencent:mmkv:2.1.0'")) {
|
|
contents += `\nconfigurations.all { resolutionStrategy { force 'com.tencent:mmkv:2.1.0' } }\n`;
|
|
}
|
|
config.modResults.contents = contents;
|
|
return config;
|
|
});
|
|
};
|