Ionic cordova plugin development

I am trying to develop a ionic cordova plugin from an Android project. But the problem is that all the tutorial available on internet for making custom plugin only works on one file.
Is this possible to create plugin from existing Android project. If possible then guide me how