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.
올리는 이유
플레이스토어가 34 하라고 협박한다.
문제 발생
targetSDK를 34로 올리면 RN에서 크래시가 발생하는 이슈가 있다.
원인과 해결
한 RN 라이브러리에 이슈가 올라와 있다. (코드에 링크)
원인을 요약하면, 안드로이드 33부터는 registerReceiver에 플래그를 명시적으로 지정하도록 되었다. 하지만 RN 소스코드 내에서 이 부분이 갱신되지 않았고, 내부적으로 registerReceiver 를 사용하는데 플래그가 없어서 크래시가 난다.
따라서 플래그를 달아주도록 SNUTTApplication을 override해 준다. 이때 RECEIVER_EXPORTED 로 해야 할지 RECEIVER_NOT_EXPORTED로 해야 할지 잘 모르겠지만 우리의 activity는 exported=true 로 되어있긴 하니 그냥 이슈 말대로 RECEIVER_EXPORTED로 넣어 준다.