2017-04-09 8 views
1

私はこれに対する答えを探して何も見つかりませんでした。これはおそらく基本的な質問です。私の無知を示​​す危険があるので、私はとにかく尋ねるつもりです。私はリリースのために私のアプリを準備しているし、Leak Canaryが私のユーザーのためにポップアップしないようにしたい。私のリーク・カナリー関連の依存関係もそうです。リリースビルド用のリークカナリアコード/クラスを削除する必要がありますか?

dependencies { 
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5' 
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5' 
testCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5' 
} 

私はreleaseCompileがno-opが含まれているので、それがリークカナリアコードを削除せずにいるように私は私のリリースビルドを進めることができることを意味していると思います。私は正しい?

+2

AFAIK、あなたは正しいです。 – CommonsWare

答えて

5

私はこれをオンラインで見つけました。

dependencies { 
// Real LeakCanary for debug builds only: notifications, analysis, etc 
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.3.1' 

// No-Op version of LeakCanary for release builds: no notifications, no analysis, nothing 
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.3.1' 
} 
関連する問題