@@ -117,7 +117,7 @@ exports.addMapboxInstallerBlock = addMapboxInstallerBlock;
117117 *
118118 * https://github.com/rnmapbox/maps/blob/main/ios/install.md#react-native--0600
119119 */
120- const withCocoaPodsInstallerBlocks = ( config , { RNMapboxMapsImpl, RNMapboxMapsVersion, RNMapboxMapsDownloadToken, RNMapboxMapsUseV11, } ) => ( 0 , config_plugins_1 . withDangerousMod ) ( config , [
120+ const withCocoaPodsInstallerBlocks = ( config , { RNMapboxMapsImpl, RNMapboxMapsVersion, RNMapboxMapsDownloadToken, RNMapboxMapsUseV11, } = { } ) => ( 0 , config_plugins_1 . withDangerousMod ) ( config , [
121121 'ios' ,
122122 async ( exportedConfig ) => {
123123 const file = path_1 . default . join ( exportedConfig . modRequest . platformProjectRoot , 'Podfile' ) ;
@@ -131,7 +131,7 @@ const withCocoaPodsInstallerBlocks = (config, { RNMapboxMapsImpl, RNMapboxMapsVe
131131 return exportedConfig ;
132132 } ,
133133] ) ;
134- const withAndroidPropertiesDownloadToken = ( config , { RNMapboxMapsDownloadToken } ) => {
134+ const withAndroidPropertiesDownloadToken = ( config , { RNMapboxMapsDownloadToken } = { } ) => {
135135 const key = 'MAPBOX_DOWNLOADS_TOKEN' ;
136136 if ( RNMapboxMapsDownloadToken ) {
137137 console . warn ( '⚠️ WARNING: RNMapboxMapsDownloadToken is deprecated. Use RNMAPBOX_MAPS_DOWNLOAD_TOKEN environment variable instead.' ) ;
@@ -148,7 +148,7 @@ const withAndroidPropertiesDownloadToken = (config, { RNMapboxMapsDownloadToken
148148 }
149149 return config ;
150150} ;
151- const withAndroidPropertiesImpl2 = ( config , { RNMapboxMapsImpl, RNMapboxMapsVersion, RNMapboxMapsUseV11 } ) => {
151+ const withAndroidPropertiesImpl2 = ( config , { RNMapboxMapsImpl, RNMapboxMapsVersion, RNMapboxMapsUseV11 } = { } ) => {
152152 const keyValues = {
153153 expoRNMapboxMapsImpl : RNMapboxMapsImpl ,
154154 expoRNMapboxMapsVersion : RNMapboxMapsVersion ,
@@ -174,7 +174,7 @@ const withAndroidPropertiesImpl2 = (config, { RNMapboxMapsImpl, RNMapboxMapsVers
174174 }
175175 return config ;
176176} ;
177- const withAndroidProperties = ( config , { RNMapboxMapsImpl, RNMapboxMapsDownloadToken, RNMapboxMapsVersion, RNMapboxMapsUseV11, } ) => {
177+ const withAndroidProperties = ( config , { RNMapboxMapsImpl, RNMapboxMapsDownloadToken, RNMapboxMapsVersion, RNMapboxMapsUseV11, } = { } ) => {
178178 config = withAndroidPropertiesDownloadToken ( config , {
179179 RNMapboxMapsDownloadToken,
180180 } ) ;
@@ -256,23 +256,23 @@ const addMapboxMavenRepo = (src) => appendContents({
256256} ) . contents ;
257257exports . addMapboxMavenRepo = addMapboxMavenRepo ;
258258exports . _addMapboxMavenRepo = exports . addMapboxMavenRepo ;
259- const withAndroidAppGradle = ( config ) => ( 0 , config_plugins_1 . withAppBuildGradle ) ( config , ( { modResults, ...exportedConfig } ) => {
259+ const withAndroidAppGradle = ( config , _props = { } ) => ( 0 , config_plugins_1 . withAppBuildGradle ) ( config , ( { modResults, ...exportedConfig } ) => {
260260 if ( modResults . language !== 'groovy' ) {
261261 config_plugins_1 . WarningAggregator . addWarningAndroid ( 'withMapbox' , `Cannot automatically configure app build.gradle if it's not groovy` ) ;
262262 return { modResults, ...exportedConfig } ;
263263 }
264264 modResults . contents = addLibCppFilter ( modResults . contents ) ;
265265 return { modResults, ...exportedConfig } ;
266266} ) ;
267- const withAndroidProjectGradle = ( config ) => ( 0 , config_plugins_1 . withProjectBuildGradle ) ( config , ( { modResults, ...exportedConfig } ) => {
267+ const withAndroidProjectGradle = ( config , _props = { } ) => ( 0 , config_plugins_1 . withProjectBuildGradle ) ( config , ( { modResults, ...exportedConfig } ) => {
268268 if ( modResults . language !== 'groovy' ) {
269269 config_plugins_1 . WarningAggregator . addWarningAndroid ( 'withMapbox' , `Cannot automatically configure app build.gradle if it's not groovy` ) ;
270270 return { modResults, ...exportedConfig } ;
271271 }
272272 modResults . contents = ( 0 , exports . addMapboxMavenRepo ) ( modResults . contents ) ;
273273 return { modResults, ...exportedConfig } ;
274274} ) ;
275- const withMapboxAndroid = ( config , { RNMapboxMapsImpl, RNMapboxMapsDownloadToken, RNMapboxMapsVersion, RNMapboxMapsUseV11, } ) => {
275+ const withMapboxAndroid = ( config , { RNMapboxMapsImpl, RNMapboxMapsDownloadToken, RNMapboxMapsVersion, RNMapboxMapsUseV11, } = { } ) => {
276276 config = withAndroidProperties ( config , {
277277 RNMapboxMapsImpl,
278278 RNMapboxMapsDownloadToken,
@@ -283,7 +283,7 @@ const withMapboxAndroid = (config, { RNMapboxMapsImpl, RNMapboxMapsDownloadToken
283283 config = withAndroidAppGradle ( config , { RNMapboxMapsImpl } ) ;
284284 return config ;
285285} ;
286- const withMapbox = ( config , { RNMapboxMapsImpl, RNMapboxMapsVersion, RNMapboxMapsDownloadToken, RNMapboxMapsUseV11, } ) => {
286+ const withMapbox = ( config , { RNMapboxMapsImpl, RNMapboxMapsVersion, RNMapboxMapsDownloadToken, RNMapboxMapsUseV11, } = { } ) => {
287287 config = withMapboxAndroid ( config , {
288288 RNMapboxMapsImpl,
289289 RNMapboxMapsVersion,
0 commit comments