I need some insight/suggestions/pointers (as detailed as possible) to implement a free and paid version of my android app. I use IntelliJ IDEA for development with SVN.
My aim is to maintain one code base which implements ads or paid features by simple booleans like "useAds" or "useFeatureX". Beyond that I think all that needs to happen is the package and app name are changed (?)
I've seen some older posts about converting the project to a library and other newer refs talking about Gradle flavors (I've never used Gradle). The former seems complex and I'm not quite sure from what I have read if it does what I am looking for. The latter sounds like it does but perhaps my unfamiliarity with Gradle makes it seem more daunting than it is.
Are there other ways? Is one of the above the way to go? What about security? I am using Proguard which I think strips out the unused code/classes from the final apk of the free version?
Thanks, sorry for the cluelessness.