title: Put property from parameters into a android build config with a default value using gradle?
body: <p>I would like to grab a parameter from gradle command line <code>-Pfruit=Apple</code> </p>
  
  <p>And then put this parameter into a <code>BuildConfig</code> for every <code>buildType</code>.</p>
  
  <p>I'm trying to achieve using:</p>
  
  <p><code>buildConfigField("String", "env", "\"${project.fruit}\"")</code></p>
  
  <p>Unfortunately I don't know how to set default value like <code>"Pear"</code> there, and how to set it for all build types.</p>