title: Android Studio: Switching a URL depending on buildtype? (used for testing in debug /release)
body: <p>I have been reading something about variants and buildtypes and I don't know if I am understanding it right but I would like to store a URL for locahost (testing) and one for production (live site on the internet).</p>
  
  <p>And I need to switch them depending on which buildtype. Is this the right way to do this ? or is there another alternative ?  </p>
  
  <p>Does anyone have a small example ?</p>
  
  <p>Is there a way of storing this information in a file that I do not need to commit to source control ? I am using the gradle.properties file for storing some passwords that gradle uses for the signings.. This works great as this file I do not share in version control.</p>
  
  <p>I am a little confused of the correct method to use and how to implement it.</p>
  
  <p>Any ideas?</p>