I looked at the Google UniversalMusic Player code sample for making a common APK with a common codebase to support all device types from mobiles to TV, as given here: https://github.com/googlesamples/android-UniversalMusicPlayer
My requirement is to have a single APK support different min API versions on mobile and TV - min API-15 for mobile and min API-21 for TV (since Android TV starts only from API-21)
How could I do this with minimal code duplication (ie. if making a separate mobile and tv module then I have to replicate the code in both modules) ? Thanks !