Update dependency injection of cordova class