Giter Site home page Giter Site logo

gattalraouf / randroid Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 552 KB

Code smell Refactoring Android Studio Plugin

Home Page: https://plugins.jetbrains.com/plugin/15058-randroid

License: GNU General Public License v3.0

Java 100.00%
refactoring refactoring-tools android-studio-plugin java-8 android-studio android code-smells static-code-analysis intellij-plugin intellij-platform plugin recommendation

randroid's Introduction

RAndroid

An Android Studio plugin for code smell refactoring. It is able to fix Android-specific code smells and/or recommends appropriate refactorings to resolve them.

RAndroid logo

The plugin Supports the following code smells:

Automatic refactoring:

  • Init OnDraw (IOD)
  • Heavy Start Service (HSS)
  • Rigid AlarmManager (RAM)
  • Inefficient Data Structure (IDS)

Giving Recommendations:

  • UI OverDraw (UIO)

RAndroid adapts the logic behind JDeodorant. It is the outcome of a research conducted as part of Abderraouf Gattal & Abir Hammache's graduation project, in the "Laboratoire Méthodes de Conception de Systèmes (LMCS)" Lab @ "Ecole nationale Supérieure d’Informatique (ESI)" Algiers, Algeria.

PS: Detection should be made manually by the developer using either aDoctor or Paprika & than the resulting files should be uploaded to the plugin.

Installation and execution

Install from Jetbrains Plugin Repository

Follow these steps to install the plugin in Android Studio for production use:

  • Open Android Studio
  • Go into File>Settings...>Plugins>Marketplace
  • Type "RAndroid"
  • Install it
  • Restart Android Studio
  • Open the Android project you wish to analyze
  • Go to Refactor>RAndroid
  • Choose the code smell you wish to handle
  • Upload the detection file
  • Click Refactor

The process will be handled automatically after that. You can find the infected classes open in the IDE opened window, so all you have to do is check the changes or the recommendations the plugin leaves in the shape of //TODO comments.

Evaluation process

RAndroid were tested on over 56 open source application found in F-Droid & GitHub. The list of these Applications can be found here.

Credits

Thanks to Madame Nabila Bousbia and Mister Adel Nassim Henniche for their guidance through the entire process.

Troubleshootings

RAndroid is still in development.

Found a bug? We'd love to know about it!

Please report all issues on the github issue tracker.

randroid's People

Contributors

gattalraouf avatar hammacheabir avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

crackercat

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.