Remove unreliable repository (#7176)
This commit is contained in:
@@ -232,6 +232,7 @@ module.exports = function (config) {
|
|||||||
'./plugins/withAndroidManifestFCMIconPlugin.js',
|
'./plugins/withAndroidManifestFCMIconPlugin.js',
|
||||||
'./plugins/withAndroidStylesAccentColorPlugin.js',
|
'./plugins/withAndroidStylesAccentColorPlugin.js',
|
||||||
'./plugins/withAndroidSplashScreenStatusBarTranslucentPlugin.js',
|
'./plugins/withAndroidSplashScreenStatusBarTranslucentPlugin.js',
|
||||||
|
'./plugins/withAndroidNoJitpackPlugin.js',
|
||||||
'./plugins/shareExtension/withShareExtensions.js',
|
'./plugins/shareExtension/withShareExtensions.js',
|
||||||
'./plugins/notificationsExtension/withNotificationsExtension.js',
|
'./plugins/notificationsExtension/withNotificationsExtension.js',
|
||||||
'./plugins/withAppDelegateReferrer.js',
|
'./plugins/withAppDelegateReferrer.js',
|
||||||
|
|||||||
@@ -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
|
||||||
|
})
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user