Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

android: add helper scripts to publish RN and JSC to Maven

Saúl Ibarra Corretgéd7ba4a8a2a9a
diff --git a/android/scripts/publish-android-jsc.sh b/android/scripts/publish-android-jsc.sh
new file mode 100755
index 0000000000..4eb39dec65
--- /dev/null
+++ b/android/scripts/publish-android-jsc.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+CWD=$(dirname $0)
+MVN_REPO=$(realpath $1)
+JSC_VERSION="r"$(jq -r '.dependencies."jsc-android"' ${CWD}/../../package.json | cut -d . -f 1)
+
+pushd ${CWD}/../../node_modules/jsc-android/dist/org/webkit/android-jsc/${JSC_VERSION}
+
+mvn \
+ deploy:deploy-file \
+ -Durl=file://${MVN_REPO} \
+ -Dfile=android-jsc-${JSC_VERSION}.aar \
+ -Dpackaging=aar \
+ -DgeneratePom=false \
+ -DpomFile=android-jsc-${JSC_VERSION}.pom
+
+popd
diff --git a/android/scripts/publish-react-native.sh b/android/scripts/publish-react-native.sh
new file mode 100755
index 0000000000..a608cd7071
--- /dev/null
+++ b/android/scripts/publish-react-native.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+CWD=$(dirname $0)
+MVN_REPO=$(realpath $1)
+RN_VERSION=$(jq -r '.dependencies."react-native"' ${CWD}/../../package.json)
+
+pushd ${CWD}/../../node_modules/react-native/android/com/facebook/react/react-native/${RN_VERSION}
+
+mvn \
+ deploy:deploy-file \
+ -Durl=file://${MVN_REPO} \
+ -Dfile=react-native-${RN_VERSION}.aar \
+ -Dpackaging=aar \
+ -Dsources=react-native-${RN_VERSION}-sources.jar \
+ -Djavadoc=react-native-${RN_VERSION}-javadoc.jar \
+ -DgeneratePom=false \
+ -DpomFile=react-native-${RN_VERSION}.pom
+
+popd