16 lines
467 B
JavaScript
16 lines
467 B
JavaScript
const { withAppBuildGradle } = require('@expo/config-plugins');
|
|
|
|
const withR8Optimize = (config) => {
|
|
return withAppBuildGradle(config, (config) => {
|
|
let contents = config.modResults.contents;
|
|
contents = contents.replace(
|
|
/getDefaultProguardFile\("proguard-android.txt"\)/g,
|
|
'getDefaultProguardFile("proguard-android-optimize.txt")'
|
|
);
|
|
config.modResults.contents = contents;
|
|
return config;
|
|
});
|
|
};
|
|
|
|
module.exports = withR8Optimize;
|