Initial commit version 0.8.13
This commit is contained in:
commit
9526dfa4f2
111 changed files with 35074 additions and 0 deletions
27
scripts/prepare.sh
Normal file
27
scripts/prepare.sh
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#!/bin/sh
|
||||
|
||||
mkdir js
|
||||
cd js
|
||||
curl -O 'https://packages.matrix.org/npm/olm/olm-3.1.4.tgz'
|
||||
tar xaf olm-3.1.4.tgz
|
||||
cd ..
|
||||
|
||||
if [ -f /usr/lib/x86_64-linux-gnu/libolm.so.3 ]
|
||||
then
|
||||
mkdir -p ffi/olm/
|
||||
ln -sf /usr/lib/x86_64-linux-gnu/libolm.so.3 ffi/olm/libolm.so
|
||||
else
|
||||
cd ffi
|
||||
pushd ffi
|
||||
git clone --depth 1 https://gitlab.matrix.org/matrix-org/olm.git
|
||||
cd olm
|
||||
cmake -DCMAKE_BUILD_TYPE=Release .
|
||||
cmake --build .
|
||||
cd ..
|
||||
fi
|
||||
|
||||
if which flutter >/dev/null; then
|
||||
flutter pub get
|
||||
else
|
||||
pub get
|
||||
fi
|
||||
6
scripts/test.sh
Normal file
6
scripts/test.sh
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh -e
|
||||
# pub run test -p vm
|
||||
flutter test --coverage
|
||||
flutter pub global activate remove_from_coverage
|
||||
flutter pub global run remove_from_coverage:remove_from_coverage -f coverage/lcov.info -r '\.g\.dart$'
|
||||
genhtml -o coverage coverage/lcov.info || true
|
||||
2
scripts/test_driver.sh
Normal file
2
scripts/test_driver.sh
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh -e
|
||||
pub run test_driver/matrixsdk_test.dart -p vm
|
||||
Loading…
Add table
Add a link
Reference in a new issue