2020-08-14 21:33:25 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
########
|
|
|
|
# This script build the Jitsi library with LIBRE_BUILD flag.
|
|
|
|
# Following instructions from here https://github.com/jitsi/jitsi-meet/tree/master/android#build-and-use-your-own-sdk-artifactsbinaries
|
|
|
|
# It then export the library in a maven repository, that we host here https://github.com/vector-im/jitsi_libre_maven
|
|
|
|
|
|
|
|
# exit on any error
|
|
|
|
set -e
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo "##################################################"
|
|
|
|
echo "Cloning jitsi-meet repository"
|
|
|
|
echo "##################################################"
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
rm -rf jitsi-meet
|
|
|
|
git clone https://github.com/jitsi/jitsi-meet
|
|
|
|
|
2022-03-29 18:24:44 +02:00
|
|
|
# Android SDK
|
|
|
|
export ANDROID_SDK_ROOT=~/Library/Android/sdk
|
|
|
|
|
2020-08-14 21:33:25 +02:00
|
|
|
# We want a libre build!
|
|
|
|
export LIBRE_BUILD=true
|
|
|
|
|
|
|
|
cd jitsi-meet
|
|
|
|
|
2022-10-25 12:34:12 +02:00
|
|
|
# Get the latest version from the changelog: https://github.com/jitsi/jitsi-meet-release-notes/blob/master/CHANGELOG-MOBILE-SDKS.md
|
2022-10-25 12:21:06 +02:00
|
|
|
git checkout android-sdk-6.2.2
|
2020-08-14 21:33:25 +02:00
|
|
|
|
|
|
|
echo
|
|
|
|
echo "##################################################"
|
|
|
|
echo "npm install"
|
|
|
|
echo "##################################################"
|
|
|
|
|
|
|
|
npm install
|
|
|
|
#make
|
|
|
|
|
|
|
|
#echo
|
|
|
|
#echo "##################################################"
|
|
|
|
#echo "Build the Android library"
|
|
|
|
#echo "##################################################"
|
|
|
|
#
|
|
|
|
#pushd android
|
|
|
|
#./gradlew assembleRelease
|
|
|
|
#popd
|
|
|
|
#
|
|
|
|
#echo
|
|
|
|
#echo "##################################################"
|
|
|
|
#echo "Bundle with React Native"
|
|
|
|
#echo "##################################################"
|
|
|
|
#
|
|
|
|
#react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output index.android.bundle --assets-dest android/app/src/main/res/
|
|
|
|
|
2020-08-17 10:03:43 +02:00
|
|
|
./android/scripts/release-sdk.sh /tmp/jitsi/
|
2020-08-14 21:33:25 +02:00
|
|
|
|
|
|
|
# Also copy jsc
|
|
|
|
|
2020-08-17 10:03:43 +02:00
|
|
|
mkdir -p /tmp/jitsi/org/webkit/
|
|
|
|
cp -r ./node_modules/jsc-android/dist/org/webkit/android-jsc /tmp/jitsi/org/webkit/
|
2020-08-14 21:33:25 +02:00
|
|
|
|
|
|
|
echo
|
|
|
|
echo "##################################################"
|
2020-08-17 10:03:43 +02:00
|
|
|
echo "Release has been done here: /tmp/jitsi/"
|
2020-08-14 21:33:25 +02:00
|
|
|
echo "##################################################"
|