File tree Expand file tree Collapse file tree 1 file changed +1
-22
lines changed
Expand file tree Collapse file tree 1 file changed +1
-22
lines changed Original file line number Diff line number Diff line change 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
133function 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-
5131const withAndroidMainApplicationDependency = ( config ) => {
5232 return withMainApplication ( config , ( action ) => {
5333 action . modResults . contents = androidMainApplicationApplyImplementation (
@@ -67,6 +47,5 @@ const withAndroidMainApplicationDependency = (config) => {
6747} ;
6848
6949module . exports = {
70- withAndroidBuildScriptDependency,
7150 withAndroidMainApplicationDependency,
7251} ;
You can’t perform that action at this time.
0 commit comments