Remove unreliable repository (#7176)

This commit is contained in:
dan
2024-12-19 04:00:27 +00:00
committed by GitHub
parent c2ca84c636
commit c390c32788
2 changed files with 21 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
const {withProjectBuildGradle} = require('@expo/config-plugins')
const jitpackRepository = "maven { url 'https://www.jitpack.io' }"
module.exports = function withAndroidNoJitpackPlugin(config) {
return withProjectBuildGradle(config, config => {
if (!config.modResults.contents.includes(jitpackRepository)) {
throw Error(
'Expected to find the jitpack string in the config. ' +
'You MUST verify whether it was actually removed upstream, ' +
'or if the format has changed and this plugin no longer recognizes it.',
)
}
config.modResults.contents = config.modResults.contents.replaceAll(
jitpackRepository,
'',
)
return config
})
}