function patchSettingsGradle() {
  if (parseInt(rnMinor) >= 75) {
    return;
  }

  const settingsGradlePath = path.join(process.cwd(), 'android', 'settings.gradle');
  console.log(`Patching settings.gradle. File: ${settingsGradlePath}`);

  try {
    let data = fs.readFileSync(settingsGradlePath, 'utf8');
    const blockRegex = /\/\/ RN75\+_BLOCK_START[\s\S]*?\/\/ RN75\+_BLOCK_END/g;

    // Replace the block with an empty string
    const updatedData = data.replace(blockRegex, '');

    fs.writeFileSync(settingsGradlePath, updatedData, 'utf8');
    console.log('settings.gradle patched successfully.');
  } catch (err) {
    console.error('Error:', err);
  }
}
In RN75 and above the settings.gradle file should contain the following lines. We can't wrap them in 'if' statement
because they should be the first line in the settings file. This patch could be safely removed after dropping support
for RN74.