Skip to content

Commit e215f79

Browse files
committed
mod(expo)!: Remove codepush.gradle related logic from Expo plugin
The `codepush.gradle` file has been removed, making its related logic in the Expo plugin redundant.
1 parent 03af43e commit e215f79

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

expo/plugin/withCodePushAndroid.js

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,4 @@
1-
const { withAppBuildGradle, withMainApplication, WarningAggregator } = require('expo/config-plugins');
2-
3-
function androidApplyImplementation(appBuildGradle) {
4-
const codePushImplementation = `apply from: "../../node_modules/@bravemobile/react-native-code-push/android/codepush.gradle"`;
5-
6-
if (!appBuildGradle.includes(codePushImplementation)) {
7-
return `${appBuildGradle.trimEnd()}\n${codePushImplementation}\n`;
8-
}
9-
10-
return appBuildGradle;
11-
}
1+
const { withMainApplication, WarningAggregator } = require('expo/config-plugins');
122

133
function androidMainApplicationApplyImplementation(
144
mainApplication,
@@ -38,16 +28,6 @@ function androidMainApplicationApplyImplementation(
3828
return mainApplication;
3929
}
4030

41-
const withAndroidBuildScriptDependency = (config) => {
42-
return withAppBuildGradle(config, (action) => {
43-
action.modResults.contents = androidApplyImplementation(
44-
action.modResults.contents,
45-
);
46-
47-
return action;
48-
});
49-
};
50-
5131
const withAndroidMainApplicationDependency = (config) => {
5232
return withMainApplication(config, (action) => {
5333
action.modResults.contents = androidMainApplicationApplyImplementation(
@@ -67,6 +47,5 @@ const withAndroidMainApplicationDependency = (config) => {
6747
};
6848

6949
module.exports = {
70-
withAndroidBuildScriptDependency,
7150
withAndroidMainApplicationDependency,
7251
};

0 commit comments

Comments
 (0)