Mobile applications are major means to perform daily actions, including social and emergency connectivity. However, their usability is threatened by energy consumptionthat may be impacted by code smells i.e., symptoms ofbad implementation and design practices. In particular, researchers derived a set of mobile-specific code smells resultingin increased energy consumption of mobile apps and removing such smells through refactoring can mitigate the problem. In this paper, we extend and revise aDoctor, a toolthat we previously implemented to identify energy-relatedsmells. On the one hand, we present and implement automated refactoring solutions to those smells. On the otherhand, we make the tool completely open-source and availablein Android Studio as a plugin published in the officialstore. The video showing the tool in action is available at:https://www.youtube.com/watch?v=1c2EhVXiKis.
Refactoring android-specific energy smells: A plugin for android studio
Pecorelli F.;Di Nucci D.;Palomba F.;De Lucia A.
2020-01-01
Abstract
Mobile applications are major means to perform daily actions, including social and emergency connectivity. However, their usability is threatened by energy consumptionthat may be impacted by code smells i.e., symptoms ofbad implementation and design practices. In particular, researchers derived a set of mobile-specific code smells resultingin increased energy consumption of mobile apps and removing such smells through refactoring can mitigate the problem. In this paper, we extend and revise aDoctor, a toolthat we previously implemented to identify energy-relatedsmells. On the one hand, we present and implement automated refactoring solutions to those smells. On the otherhand, we make the tool completely open-source and availablein Android Studio as a plugin published in the officialstore. The video showing the tool in action is available at:https://www.youtube.com/watch?v=1c2EhVXiKis.I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.