(src: string)
| 45 | }; |
| 46 | |
| 47 | export function addGoogleMapsAppDelegateImport(src: string): MergeResults { |
| 48 | const newSrc = ['#if canImport(GoogleMaps)', 'import GoogleMaps', '#endif']; |
| 49 | |
| 50 | return mergeContents({ |
| 51 | tag: 'react-native-maps-import', |
| 52 | src, |
| 53 | newSrc: newSrc.join('\n'), |
| 54 | anchor: /(@main|@UIApplicationMain)/, |
| 55 | offset: 0, |
| 56 | comment: '//', |
| 57 | }); |
| 58 | } |
| 59 | |
| 60 | export function removeGoogleMapsAppDelegateImport(src: string): MergeResults { |
| 61 | return removeContents({ |
no outgoing calls
no test coverage detected
searching dependent graphs…