From d42cbbd9f8ab8b823bb7e6ecfc1e93ef229a7105 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Mon, 17 Jul 2023 14:34:04 +0200 Subject: [PATCH] fix(android) fix React-Native POM file when publishing For some reason the packaging mode changed from AAR to POM after 0.68, and dependencies are now marked optional, when they are not. Fixes: https://github.com/jitsi/jitsi-meet/issues/13566 --- android/scripts/release-sdk.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/android/scripts/release-sdk.sh b/android/scripts/release-sdk.sh index 54aeaa3b65..df7a0d3218 100755 --- a/android/scripts/release-sdk.sh +++ b/android/scripts/release-sdk.sh @@ -29,6 +29,10 @@ if [[ $MVN_HTTP == 1 ]]; then # Push React Native echo "Pushing React Native ${RN_VERSION} to the Maven repo" pushd ${THIS_DIR}/../../node_modules/react-native/android/com/facebook/react/react-native/${RN_VERSION} + cat react-native-${RN_VERSION}.pom \ + | sed "s#pom#aar#" \ + | sed "//d" \ + > react-native-${RN_VERSION}-fixed.pom mvn \ deploy:deploy-file \ -Durl=${MVN_REPO} \ @@ -36,7 +40,7 @@ if [[ $MVN_HTTP == 1 ]]; then -Dfile=react-native-${RN_VERSION}-release.aar \ -Dpackaging=aar \ -DgeneratePom=false \ - -DpomFile=react-native-${RN_VERSION}.pom || true + -DpomFile=react-native-${RN_VERSION}-fixed.pom || true popd # Push JSC echo "Pushing JSC ${JSC_VERSION} to the Maven repo" @@ -55,13 +59,17 @@ else if [[ ! -d ${MVN_REPO}/com/facebook/react/react-native/${RN_VERSION} ]]; then echo "Pushing React Native ${RN_VERSION} to the Maven repo" pushd ${THIS_DIR}/../../node_modules/react-native/android/com/facebook/react/react-native/${RN_VERSION} + cat react-native-${RN_VERSION}.pom \ + | sed "s#pom#aar#" \ + | sed "//d" \ + > react-native-${RN_VERSION}-fixed.pom mvn \ deploy:deploy-file \ -Durl=${MVN_REPO} \ -Dfile=react-native-${RN_VERSION}-release.aar \ -Dpackaging=aar \ -DgeneratePom=false \ - -DpomFile=react-native-${RN_VERSION}.pom + -DpomFile=react-native-${RN_VERSION}-fixed.pom popd fi