mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-05-12 19:22:23 -04:00
start of integration test
This commit is contained in:
parent
7e9254faac
commit
87735dfb8e
147 changed files with 5787 additions and 15 deletions
|
@ -6,11 +6,11 @@ get_abs_filename() {
|
|||
}
|
||||
|
||||
# Veilid location
|
||||
VEILIDDIR=$(get_abs_filename "$SCRIPTDIR/../../veilid")
|
||||
VEILIDDIR=$(get_abs_filename "$(git rev-parse --show-toplevel)/../veilid")
|
||||
if [ ! -d "$VEILIDDIR" ]; then
|
||||
echo 'Veilid git clone needs to be at $VEILIDDIR'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# VeilidChat location
|
||||
VEILIDCHATDIR=$(get_abs_filename "$SCRIPTDIR/../../veilid")
|
||||
# App location
|
||||
APPDIR=$(git rev-parse --show-toplevel)
|
||||
|
|
|
@ -6,12 +6,12 @@ SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|||
source $SCRIPTDIR/_script_common
|
||||
|
||||
# iOS: Set deployment target
|
||||
sed -i '' 's/IPHONEOS_DEPLOYMENT_TARGET = [^;]*/IPHONEOS_DEPLOYMENT_TARGET = 12.4/g' $VEILIDCHATDIR/ios/Runner.xcodeproj/project.pbxproj
|
||||
sed -i '' "s/platform :ios, '[^']*'/platform :ios, '12.4'/g" $VEILIDCHATDIR/ios/Podfile
|
||||
sed -i '' 's/IPHONEOS_DEPLOYMENT_TARGET = [^;]*/IPHONEOS_DEPLOYMENT_TARGET = 12.4/g' $APPDIR/ios/Runner.xcodeproj/project.pbxproj
|
||||
sed -i '' "s/platform :ios, '[^']*'/platform :ios, '12.4'/g" $APPDIR/ios/Podfile
|
||||
|
||||
# MacOS: Set deployment target
|
||||
sed -i '' 's/MACOSX_DEPLOYMENT_TARGET = [^;]*/MACOSX_DEPLOYMENT_TARGET = 10.14.6/g' $VEILIDCHATDIR/macos/Runner.xcodeproj/project.pbxproj
|
||||
sed -i '' "s/platform :osx, '[^']*'/platform :osx, '10.14.6'/g" $VEILIDCHATDIR/macos/Podfile
|
||||
sed -i '' 's/MACOSX_DEPLOYMENT_TARGET = [^;]*/MACOSX_DEPLOYMENT_TARGET = 10.14.6/g' $APPDIR/macos/Runner.xcodeproj/project.pbxproj
|
||||
sed -i '' "s/platform :osx, '[^']*'/platform :osx, '10.14.6'/g" $APPDIR/macos/Podfile
|
||||
|
||||
# Android: Set NDK version
|
||||
if [[ "$TMPDIR" != "" ]]; then
|
||||
|
@ -20,16 +20,16 @@ else
|
|||
ANDTMP=/tmp/andtmp_$(date +%s)
|
||||
fi
|
||||
cat <<EOF > $ANDTMP
|
||||
ndkVersion '25.1.8937393'
|
||||
ndkVersion '26.3.11579264'
|
||||
EOF
|
||||
sed -i '' -e "/android {/r $ANDTMP" $VEILIDCHATDIR/android/app/build.gradle
|
||||
sed -i '' -e "/android {/r $ANDTMP" $APPDIR/android/app/build.gradle
|
||||
rm -- $ANDTMP
|
||||
|
||||
# Android: Set min sdk version
|
||||
sed -i '' 's/minSdkVersion .*/minSdkVersion Math.max(flutter.minSdkVersion, 24)/g' $VEILIDCHATDIR/android/app/build.gradle
|
||||
sed -i '' 's/minSdkVersion .*/minSdkVersion Math.max(flutter.minSdkVersion, 24)/g' $APPDIR/android/app/build.gradle
|
||||
|
||||
# Android: Set gradle plugin version
|
||||
sed -i '' "s/classpath \'com.android.tools.build:gradle:[^\']*\'/classpath 'com.android.tools.build:gradle:7.2.0'/g" $VEILIDCHATDIR/android/build.gradle
|
||||
sed -i '' "s/classpath \'com.android.tools.build:gradle:[^\']*\'/classpath 'com.android.tools.build:gradle:7.2.0'/g" $APPDIR/android/build.gradle
|
||||
|
||||
# Android: Set gradle version
|
||||
sed -i '' 's/distributionUrl=.*/distributionUrl=https:\/\/services.gradle.org\/distributions\/gradle-7.3.3-all.zip/g' $VEILIDCHATDIR/android/gradle/wrapper/gradle-wrapper.properties
|
||||
sed -i '' 's/distributionUrl=.*/distributionUrl=https:\/\/services.gradle.org\/distributions\/gradle-7.6.3-all.zip/g' $APPDIR/android/gradle/wrapper/gradle-wrapper.properties
|
||||
|
|
|
@ -5,7 +5,7 @@ source $SCRIPTDIR/_script_common
|
|||
pushd $SCRIPTDIR >/dev/null
|
||||
|
||||
# WASM output dir
|
||||
WASMDIR=$VEILIDCHATDIR/web/wasm
|
||||
WASMDIR=$APPDIR/web/wasm
|
||||
|
||||
# Build veilid-wasm, passing any arguments here to the build script
|
||||
pushd $VEILIDDIR/veilid-wasm >/dev/null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue