android - How to integrate some files which are extra ones for one of the two productFlavors sharing same code -


i have developed app developing under staging environment , deployed production environment uploaded in google play store. so, both environment app using productflavors build different variant defining in build gradle file.

my problem is: having java files have include in production build not staging build. how can achieve this?

one of solution: when selecting build variants add/delete java files not appropriate solution update app in future more java files added production

edited: don't want make different src folder different flavors. wouldn't possible without making different folders? have mentioned i'm having same code different flavors.

you create folder in src directory next main add files 1 flavor. example:

- src/ -- main/ -- production/ 

you put java files should in production flavor in new folder.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -