title: How to hide API keys in Android application?
body: <p>In my application I use google maps api key to communicate with google. I defined this MAP_KEY in gradle debug/release configuration like this:</p>
  
  <pre><code>debug {
              buildConfigField 'String', 'BASE_URL', '"https://myweb.com"'
              buildConfigField 'String', 'SOCKET_URL', '"https://socket.myweb.com"'
              buildConfigField 'String', 'MAP_KEY', '"azaS****Ds"'
          }
  </code></pre>
  
  <p>But If someone will download my app from google play store and decompile it he will get my API tokens. Is this true? If yes what is the way to hide api keys in my code?</p>