Protein - Kotlin code generator for Retrofit2 and RxJava2 based on Swagger

Compatible with: IntelliJ IDEA MPS Android Studio
Feb 07, 2019
2 165

Component builder for Android

Protein is a code generator plugin for intelliJ that automates the build of components for Android. It generates Kotlin or Java code. The first iteration of this plugin only allows you to create an API Rest Interface and the Models for Retrofit 2 and RxJava 2.


Protein: A large molecule composed of one or more chains of amino acids in a specific order; the order is determined by the base sequence of nucleotides in the gene coding for the protein. Proteins are required for the structure, function, and regulation of the body’s cells, tissues, and organs, and each protein has unique functions. Examples are hormones, enzymes, and antibodies.

This scientific definition defines quite good the objective of this Plugin in an abstract way. For many time at Schibsted Spain we struggled with the idea of making a good and maintainable architecture for Android. It's been some time until we got one that fits with our needs but we still have a lot of errors and issues that human beings do every time we make manual work. That's were we came to the idea of automatization and make new components with all we need including tests, data sources even use cases and Presenters.

Protein is our approach to work better, be more productive and reliable.


  • Easy interface
  • Agent, Mapper, Model and DataSource auto-generated
  • Swagger integration: create Data Sources based on swagger documentation
  • IntelliJ and Android Studio compatible


You can download it through the intelliJ/AndroidStudio plugin interface

Who made this

Ferran Pons

Ferran Pons

Download plugin

Recent change notes

Removed `/` from the beginning of annotation paths