title: How to use Proguard files?
body: <p>I try to remove all Log's methods calls from code using custom proguard file for a release build. So I write my custom proguard file (took from net):</p>
  
  <p><strong><code>proguard-rules-release.txt</code></strong></p>
  
  <pre><code>-assumenosideeffects class android.util.Log {
      public static boolean isLoggable(java.lang.String, int);
      public static int v(...);
      public static int i(...);
      public static int w(...);
      public static int d(...);
      public static int e(...);
  }
  </code></pre>
  
  <p>Added it in <code>build.grade</code>:</p>
  
  <pre><code>android {
  
      buildTypes {
  
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'),
                      'proguard-rules.txt', 'proguard-rules-release.txt'
          }
      }
  }
  </code></pre>
  
  <p>But when I read <code>*.class</code> files in Android Studio by decompiler in <code>~/app/build/intermediates/classes/release</code> I find that it contains all calls as well as without proguard file. </p>
  
  <p>What am I doing wrong?</p>
  
  <p><strong>ADDED</strong>
  I decompiled apk-file even. Now, I'm sure that my proguard file doesn't work.
  I rewrote <code>build.gradle</code> so:</p>
  
  <pre><code>release {
              minifyEnabled false
              zipAlignEnabled true
              proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'),
                      'proguard-rules.pro'
  }
  </code></pre>
  
  <p>And generated signed apk-file after decompiled it... But it all same has log outputs. I understand nothing...</p>