2017-04-09 15 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' 
}