( src: string, apiKey: string, )
| 65 | } |
| 66 | |
| 67 | export function addGoogleMapsAppDelegateInit( |
| 68 | src: string, |
| 69 | apiKey: string, |
| 70 | ): MergeResults { |
| 71 | const newSrc = [ |
| 72 | '#if canImport(GoogleMaps)', |
| 73 | `GMSServices.provideAPIKey("${apiKey}")`, |
| 74 | '#endif', |
| 75 | ]; |
| 76 | |
| 77 | return mergeContents({ |
| 78 | tag: 'react-native-maps-init', |
| 79 | src, |
| 80 | newSrc: newSrc.join('\n'), |
| 81 | anchor: MATCH_INIT, |
| 82 | offset: 0, |
| 83 | comment: '//', |
| 84 | }); |
| 85 | } |
| 86 | |
| 87 | export function removeGoogleMapsAppDelegateInit(src: string): MergeResults { |
| 88 | return removeContents({ |
no outgoing calls
no test coverage detected
searching dependent graphs…