카카오 음성(newtone 6.0.1) 라이브러리 사용후 빌드 시 proguard 질문드립니다

안녕하세요 이번 프로젝트(키즈노트) 에 음성 api를 사용하여 배포준비중 입니다.
샘플프로젝트 ( kakao-android-sdk-speech-6.0.1) 를 받아서 테스트코드를 짜서 실제 배포에 넣어보려고 하고있는데요

문제는 release 빌드( proguard=true) 할때 발생합니다.

빌드 당시 환경설정은 샘플코드에서 제안한 방법으로 gradle 프로젝트에

implementation ‘com.kakao.sdk:newtone:6.0.1’ 다음과같이 넣어서 라이브러리를 받고, 가이드에 따라

proguard 옵션을 아래와 같이 넣었습니다
-keep class com.kakao.** { ; }
-keepattributes Signature
-keepclassmembers class * {
public static ;
public ;
}
-dontwarn android.support.v4.,org.slf4j.,com.google.android.gms.

하지만 빌드실패가 지속적으로 나오고 있는데 newtone 라이브러리만 프로가드를 뺀다거나… 다른 프로가드 정책이 있을까요?


newtone 라이브러리를 뺀경우에는 빌드가 잘됩니다. 넣은경우 에러 코드일부는 아래 처럼 발생합니다

Note: the configuration explicitly specifies ‘org.apache.’ to keep library class


Note: the configuration explicitly specifies 'org.apache.
’ to keep library class ‘org.apache.http.protocol.HttpRequestInterceptorList’
Note: the configuration explicitly specifies ‘org.apache.’ to keep library class ‘org.apache.http.protocol.HttpResponseInterceptorList’
Note: the configuration explicitly specifies 'org.apache.
’ to keep library class ‘org.apache.http.util.EncodingUtils’
Note: the configuration explicitly specifies ‘org.apache.**’ to keep library class ‘org.apache.http.util.EntityUtils’
Note: there were 3 references to unknown classes.
You should check your configuration for typos.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unknownclass)
Note: there were 1 references to unknown class members.
You should check your configuration for typos.
Note: there were 6357 unkept descriptor classes in kept class members.
You should consider explicitly keeping the mentioned classes
(using ‘-keep’).
(http://proguard.sourceforge.net/manual/troubleshooting.html#descriptorclass)
Note: there were 65 library classes explicitly being kept.
You don’t need to keep library classes; they are already left unchanged.
(http://proguard.sourceforge.net/manual/troubleshooting.html#libraryclass)
Note: there were 51 unresolved dynamic references to classes or interfaces.
You should check if you need to specify additional program jars.
(http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclass)
Warning: there were 1 unresolved references to program class members.
Your input classes appear to be inconsistent.
You may need to recompile the code.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedprogramclassmember)
Warning: Exception while processing task java.io.IOException: Please correct the above warnings first.
Thread(Tasks limiter_1): destruction

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:app:transformClassesAndResourcesWithProguardForBetaRelease’.

Job failed, see logs for details

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

— 다른 라이브러리를 첨부할 때(보통 jar 파일을 직접 임포트하는경우) proguard 가 적용안되어있으면 위와 같은 에러가 발생하는걸 자주겪었는데 이번 newtone도 비슷한 경우라 문의드립니다.