import * as path from '../../path' ; import * as fs from '../../fs' ; import { Config } from '../../../types' ; import { logInfo } from '../../../helpers' ; const kRepository = `maven { url 'https://repo.leanplum.com/' }` ; param { object } configuration export function postLink ( configuration ) { logInfo ( 'patching Android for react-native-leanplum' ) ; fs . update ( path . android . gradlePath ( ) , 'repositories {' , `repositories {\n        ${ kRepository }` ) ; fs . update ( path . android . mainApplicationPath ( configuration ) , 'new RNLeanplumPackage()' , 'new RNLeanplumPackage(application)' ) ; }