Skip to content

Commit ffe5371

Browse files
committed
Revert
1 parent d4eb550 commit ffe5371

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

expo-plugin/src/android/withOpacityProjectBuildGradle.ts

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,14 @@ import {
55

66
export const withOpacityProjectBuildGradle: ConfigPlugin = (config) => {
77
return withProjectBuildGradle(config, async (config) => {
8-
let { contents } = config.modResults;
9-
10-
// Add Mozilla maven repository if not present
11-
if (!contents.match('maven.mozilla.org')) {
12-
contents = contents.replace(
8+
if (!config.modResults.contents.match('maven.mozilla.org')) {
9+
config.modResults.contents = config.modResults.contents.replace(
1310
/mavenCentral\(\)/g,
14-
`mavenCentral()
11+
`
12+
mavenCentral()
1513
maven { url "https://maven.mozilla.org/maven2/" }`
1614
);
1715
}
18-
19-
// Add jitpack repository if not present
20-
if (!contents.match('jitpack.io')) {
21-
contents = contents.replace(
22-
/mavenCentral\(\)/g,
23-
`mavenCentral()
24-
maven { url 'https://jitpack.io' }`
25-
);
26-
}
27-
28-
config.modResults.contents = contents;
2916
return config;
3017
});
3118
};

0 commit comments

Comments
 (0)