rcgroot / open-gpstracker

Automatically exported from code.google.com/p/open-gpstracker
GNU General Public License v3.0
36 stars 23 forks source link

Allow parallel installation of debug version #443

Open johnjohndoe opened 8 years ago

johnjohndoe commented 8 years ago

Gradle allows to modify the application id / package name and version name for the debug build:

android {
    buildTypes {
        debug {
            applicationIdSuffix ".debug"
            versionNameSuffix "-DEBUG"
        }
    }
}

This is useful if a developer wants to install the debug and release version on the same device at same time.


Currently, this is not possible because the package name is hard coded in many places of the application code. I therefore suggest to factor them out or replace them with compile time variables. The following mechanism are useful in this context:


The following files are affected (develop branch):


I am interested to hear your thoughts on this issue.

johnjohndoe commented 8 years ago

@rcgroot Are you interested to get the project migrated in order to allow running debug and release builds side by side?