title: How to replace string.xml values from productFlavours of build.gradle
body: <p>In strings.xml </p>
  
  <pre><code>&lt;resources&gt;
  &lt;string&gt;name="app_name"&gt;App_Name&lt;/string&gt;
  &lt;string&gt;name="app_port"&gt;https://example.com&lt;/string&gt;
  &lt;string&gt;name="app_key"&gt;App_Key&lt;/string&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>In build.gradle</p>
  
  <pre><code>productFlavors {
      production {
          applicationId = "com.example.production"
      }
      staging {
          applicationId = "com.example.staging"
          //code to manipulate strings.xml value because for production and staging app_name, app_port and key are different
      }
  }
  </code></pre>
  
  <p>I need a code code to manipulate strings.xml from productFlavours of build.gradle file instead of creating separate folder for staging and production.  </p>