Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
https://kuring.atlassian.net/browse/KURING-139?atlOrigin=eyJpIjoiMzBjMzViM2JjYmE1NGU0ZmE2MjE4YWY5NWI2ZWRkY2EiLCJwIjoiaiJ9
문제 상황
1.3.6 버전에서, 온보딩 화면에서
공지 알림 설정하기
화면을 누르면 앱이 강제 종료되는 문제가 있습니다.난독화 해제하고 확인해 보니, RxJava에서 발생하는 문제였습니다.
원인
Retrofit에서 사용하는 request, response 클래스는 난독화로부터 보호되어야 합니다. 따라서 지금까지는 다음과 같이
proguard-rules.pro
파일에 보호 규칙을 작성하고 있었습니다.그런데 모듈화로 인해 request와 response 클래스의 경로가 바뀌었습니다. 따라서 바뀐 경로를 작성해야 합니다.
해결 방법
참고한 자료
square/retrofit#3774 (comment)
https://stackoverflow.com/questions/76532972/java-lang-classcastexception-java-lang-class-cannot-be-cast-to-java-lang-reflec