iamport / iamport-react-native

React Native용 아임포트 일반.결제 및 휴대폰 본인인증 모듈입니다.
MIT License
165 stars 62 forks source link

Expo SDK 49에서 react-native-webview@13.2.2와 오류 #221

Open hwpp opened 1 year ago

hwpp commented 1 year ago

안녕하세요 모듈을 잘 사용하고 있었는데 Google Play에서 아래와 같은 메시지가 와서

앱 업데이트를 출시하려면 2023년 8월 31일까지 대상 API 수준을 업데이트하세요 앱이 이전 버전의 Android를 타겟팅하는 것으로 확인되었습니다. 사용자에게 안전하고 보안이 유지되는 환경을 제공하기 위해 Google Play의 모든 앱은 대상 API 수준 요구사항을 충족해야 합니다.

2023년 8월 31일부터는 대상 API 수준이 최신 Android 출시로부터 1년 이내가 아닌 경우 앱을 업데이트할 수 없게 됩니다.

앱을 계속 업데이트하려면 앱이 Android 13(API 수준 33)을 타겟팅해야 합니다.

API 수준 33을 타겟팅하기 위해 기존에 Expo SDK 47을 49로 업그레이드하고

SDK 49와 일치하도록 종속성 업그레이드를 했습니다.

현제 설치된 모듈은 아래와 같은데

"dependencies": { "@react-native-async-storage/async-storage": "1.18.2", "@react-navigation/native": "^6.1.2", "@react-navigation/native-stack": "^6.9.8", "expo": "^49.0.8", "expo-av": "~13.4.1", "expo-camera": "~13.4.2", "expo-constants": "~14.4.2", "expo-device": "~5.4.0", "expo-notifications": "~0.20.1", "expo-permissions": "~14.2.1", "expo-splash-screen": "~0.20.5", "expo-status-bar": "~1.6.0", "iamport-react-native": "^2.0.5", "react": "18.2.0", "react-dom": "18.2.0", "react-native": "0.72.4", "react-native-safe-area-context": "4.6.3", "react-native-screens": "~3.22.0", "react-native-status-bar-height": "^2.6.0", "react-native-webview": "13.2.2" },

expo에서 빌드를 하면 아래 이미지와 같이 오류가 나서 빌드를 할 수 없습니다.

expo_error

react-native-webview@11.x 를 설치하면 Expo SDK 49 에서 지원되지 않는지 앱이 정상 작동하지 못하고 react-native-webview@13.2.2 를 설치하면 iamport-react-native 와 문제로 빌드가 되지 않습니다.

어떻게 처리해야 할까요?

hwpp commented 1 year ago

엑스포 공식 문서에서 엑스포 빌드 속성 문서를 보고 빌드버전을 33으로 지정해서 임시 해결했습니다. 다음 릴리스에서는 SDK 47 및 48이 삭제된다니 그전에 수정되길 바랍니다. { "expo": { "plugins": [ [ "expo-build-properties", { "android": { "compileSdkVersion": 33, "targetSdkVersion": 33, "buildToolsVersion": "33.0.0" } } ] ] } }

https://docs.expo.dev/versions/latest/sdk/build-properties/

anymate98 commented 11 months ago

안녕하세요. 답변이 늦어 죄송합니다. react-native 및 react-native-webview 버전을 expo 49와 호환될 수 있게 변경해 배포했는데 확인 부탁드립니다.