refactor(PluginInfo): cleanup & simplify (#132)
authorRaphael von der Grün <raphinesse@gmail.com>
Thu, 9 Jan 2020 22:23:39 +0000 (23:23 +0100)
committerGitHub <noreply@github.com>
Thu, 9 Jan 2020 22:23:39 +0000 (23:23 +0100)
commitb779a345e8dac4c658a1816ba595a6b95db47fa2
tree804c8dcccb126124bb3c2b54c8e213e5d3729646
parent6f922c0a297370fa4be223bf6922bc81a3b6b132
refactor(PluginInfo): cleanup & simplify (#132)

* refactor: PluginInfo

* _getTags: simplify

* _getTagsInPlatform: support a list of platforms

* getPodSpecs: remove useless undefined value filtering

* getPodSpecs: further improve formatting

* getPreferences: simplify

* getHookScripts: simplify

* getFrameworks: only determine vars once

* getFrameworks: improve readability

* ctor: improve

* ctor: better var name for root elem

* destructure xml-helpers

* inline addCordova helper

* apply lebab.destruct-params

* convert comments to JSDocs

* remove outdated TODO; sync is faster

* map tags explicitly

* make _getTags* private methods

Co-authored-by: エリス <erisu@users.noreply.github.com>
src/PluginInfo/PluginInfo.js