A/Android

proguard 설정 로그 제거 방법

안뇽헬로 2015. 4. 15. 12:14

로그 띄우지 않게 설정

-assumenosideeffects class android.util.Log {

    public static *** d(...);

    public static *** w(...);

    public static *** v(...);

    public static *** i(...);

}


기타 참고

proguard-android.txt와 proguard-android-optimize.txt가 있으며 앞의 것은 최적화를 수행하지 않고, 뒤의 것은 최적화를 수행한다.


참고

http://stackoverflow.com/questions/2446248/remove-all-debug-logging-calls-before-publishing-are-there-tools-to-do-this/2466662#2466662


http://www.reshout.com/?p=1288


http://stackoverflow.com/questions/5553146/disable-logcat-output-completely-in-release-android-app