I created android application and need to converted it to library.
I changed module build.gradle file by changing
id 'com.android.application'
to
id 'com.android.library'
and it works great.
But for adding new features a need to convert it again to app.
I can use 2 files build.gradle and build.gradle.app and change between them,
but the question is what is the best practice for managing both app and library in the same project