Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ jobs:
- name: Setup Flutter
uses: subosito/flutter-action@v2.8.0
with:
flutter-version: '3.32.4'
flutter-version: '3.35.4'
channel: 'stable'

- name: Setup Dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev libolm3 libmpv-dev mpv ffmpeg libmimalloc-dev
sudo apt-get install -y ninja-build libgtk-3-dev libmpv-dev mpv ffmpeg libmimalloc-dev


- name: Configure Flutter
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:

jobs:
build-windows:
runs-on: windows-latest
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -20,7 +20,7 @@ jobs:
- name: Setup Flutter
uses: subosito/flutter-action@v2.8.0
with:
flutter-version: '3.32.4'
flutter-version: '3.35.4'
channel: 'stable'

- name: Configure Flutter
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
- name: Setup Flutter
uses: subosito/flutter-action@v2.8.0
with:
flutter-version: '3.32.4'
flutter-version: '3.35.4'
channel: 'stable'

- name: Setup Java
Expand All @@ -59,7 +59,7 @@ jobs:
- name: Setup Tools
run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev libolm3 libmpv-dev mpv ffmpeg
sudo apt-get install -y ninja-build libgtk-3-dev libmpv-dev mpv ffmpeg

- name: Code Generation
run: |
Expand All @@ -82,7 +82,7 @@ jobs:
- name: Setup Flutter
uses: subosito/flutter-action@v2.8.0
with:
flutter-version: '3.32.4'
flutter-version: '3.35.4'
channel: 'stable'

- name: Setup Java
Expand All @@ -93,7 +93,7 @@ jobs:
- name: Setup Tools
run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev libolm3 libmpv-dev mpv ffmpeg
sudo apt-get install -y ninja-build libgtk-3-dev libmpv-dev mpv ffmpeg

- name: Code Generation
run: |
Expand All @@ -117,13 +117,13 @@ jobs:
- name: Setup Flutter
uses: subosito/flutter-action@v2.8.0
with:
flutter-version: '3.32.4'
flutter-version: '3.35.4'
channel: 'stable'

- name: Setup Tools
run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev libolm3 libmpv-dev mpv ffmpeg libmimalloc-dev webkit2gtk-4.1
sudo apt-get install -y ninja-build libgtk-3-dev libmpv-dev mpv ffmpeg libmimalloc-dev webkit2gtk-4.1

- name: Code Generation
run: |
Expand All @@ -150,13 +150,13 @@ jobs:
- name: Setup Flutter
uses: subosito/flutter-action@v2.8.0
with:
flutter-version: '3.32.4'
flutter-version: '3.35.4'
channel: 'stable'

- name: Setup Tools
run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev libolm3 libmpv-dev mpv ffmpeg
sudo apt-get install -y ninja-build libgtk-3-dev libmpv-dev mpv ffmpeg

- name: Code Generation
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ jobs:
- name: Setup Flutter ╰(✿˙ᗜ˙)੭━☆゚.*・。゚
uses: subosito/flutter-action@v2.8.0
with:
flutter-version: '3.32.4'
flutter-version: '3.35.4'
channel: 'stable'

- name: Setup Tools ᕙ|” ◉ ◡ ◉ ”|ᕗ
run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev libolm3 libmpv-dev mpv ffmpeg libmimalloc-dev
sudo apt-get install -y ninja-build libgtk-3-dev libmpv-dev mpv ffmpeg libmimalloc-dev

- name: Start Synapse [◯ ‸ ◯]
run: |
Expand Down
67 changes: 22 additions & 45 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:

jobs:
release-windows:
runs-on: windows-latest
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -22,21 +22,9 @@ jobs:
- name: Setup Flutter
uses: subosito/flutter-action@v2.8.0
with:
flutter-version: '3.32.4'
flutter-version: '3.35.4'
channel: 'stable'

- name: Clone Olm
run: |
git clone https://gitlab.matrix.org/matrix-org/olm.git
cd ./olm
git checkout 7e0c8277032e40308987257b711b38af8d77cc69

- name: Build Olm
run: |
cd ./olm
cmake -DCMAKE_BUILD_TYPE=Release . -A x64 -Bbuild
cmake --build build --config Release

- name: Configure Flutter
run: flutter config --enable-windows-desktop

Expand All @@ -51,14 +39,6 @@ jobs:
cd .\commet
dart run scripts/build_release.dart --platform windows --version_tag ${{ github.event.release.tag_name || 'v0.0.0-artifact' }} --git_hash ${{ github.sha }}

- name: Include libolm
run: |
dir
dir .\olm
dir .\commet
dir .\commet\build\windows
move .\olm\build\Release\olm.dll .\commet\build\windows\x64\runner\Release\libolm.dll

- name: Archive
run: tar -a -c -f commet-windows.zip -C .\commet\build\windows\x64\runner\ Release

Expand Down Expand Up @@ -92,7 +72,7 @@ jobs:
- name: Setup Flutter
uses: subosito/flutter-action@v2.8.0
with:
flutter-version: '3.32.4'
flutter-version: '3.35.4'
channel: 'stable'

- name: Setup Java
Expand All @@ -103,7 +83,7 @@ jobs:
- name: Setup Tools
run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev libolm3 libmpv-dev mpv ffmpeg
sudo apt-get install -y ninja-build libgtk-3-dev libmpv-dev mpv ffmpeg

- name: Code Generation
run: |
Expand Down Expand Up @@ -149,7 +129,7 @@ jobs:
- name: Setup Flutter
uses: subosito/flutter-action@v2.8.0
with:
flutter-version: '3.32.4'
flutter-version: '3.35.4'
channel: 'stable'

- name: Setup Java
Expand All @@ -160,7 +140,7 @@ jobs:
- name: Setup Tools
run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev libolm3 libmpv-dev mpv ffmpeg
sudo apt-get install -y ninja-build libgtk-3-dev libmpv-dev mpv ffmpeg

- name: Code Generation
run: |
Expand Down Expand Up @@ -211,13 +191,13 @@ jobs:
- name: Setup Flutter
uses: subosito/flutter-action@v2.8.0
with:
flutter-version: '3.32.4'
flutter-version: '3.35.4'
channel: 'stable'

- name: Setup Tools
run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev libolm3 libmpv-dev mpv ffmpeg libmimalloc-dev webkit2gtk-4.1
sudo apt-get install -y ninja-build libgtk-3-dev libmpv-dev mpv ffmpeg libmimalloc-dev webkit2gtk-4.1 libasound2-dev

- name: Code Generation
run: |
Expand Down Expand Up @@ -269,13 +249,13 @@ jobs:
- name: Setup Flutter
uses: subosito/flutter-action@v2.8.0
with:
flutter-version: '3.32.4'
flutter-version: '3.35.4'
channel: 'stable'

- name: Setup Tools
run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev libolm3 libmpv-dev mpv ffmpeg libmimalloc-dev flatpak-builder flatpak webkit2gtk-4.1
sudo apt-get install -y ninja-build libgtk-3-dev libmpv-dev mpv ffmpeg libmimalloc-dev flatpak-builder flatpak webkit2gtk-4.1

- name: Code Generation
run: |
Expand All @@ -290,7 +270,7 @@ jobs:
- name: Create Flatpak
run: |
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
sudo flatpak install -y flathub org.freedesktop.Platform//24.08 org.freedesktop.Sdk//24.08
sudo flatpak install -y flathub org.gnome.Platform//48 org.gnome.Sdk//48
mkdir -p commet/linux/flatpak/commet
cp -r $PROJECT_PATH/build/linux/x64/release/bundle $PROJECT_PATH/linux/flatpak/commet/bundle
version=$(echo ${{ github.event.release.tag_name || 'v0.0.0-artifact' }} | grep -oP '[0-9]+([.][0-9]+)+')
Expand Down Expand Up @@ -330,13 +310,13 @@ jobs:
- name: Setup Flutter
uses: subosito/flutter-action@v2.8.0
with:
flutter-version: '3.32.4'
flutter-version: '3.35.4'
channel: 'stable'

- name: Setup Tools
run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev libolm3 libmpv-dev mpv ffmpeg libmimalloc-dev webkit2gtk-4.1
sudo apt-get install -y ninja-build libgtk-3-dev libmpv-dev mpv ffmpeg libmimalloc-dev webkit2gtk-4.1

- name: Code Generation
run: |
Expand Down Expand Up @@ -383,30 +363,27 @@ jobs:
- name: Setup Flutter
uses: subosito/flutter-action@v2.8.0
with:
flutter-version: '3.32.4'
flutter-version: '3.35.4'
channel: 'stable'

- name: Setup Tools
run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev libolm3 libmpv-dev mpv ffmpeg webkit2gtk-4.1
sudo apt-get install -y ninja-build libgtk-3-dev libmpv-dev mpv ffmpeg webkit2gtk-4.1

- name: Code Generation
run: |
cd $PROJECT_PATH
dart run scripts/codegen.dart

- name: Include Olm

- uses: moonrepo/setup-rust@v1
- run: rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu

- name: Prepare web
run: |
cd $PROJECT_PATH
cd assets/js
rm -r package
curl -L 'https://github.com/famedly/olm/releases/download/v2.0.0/olm.zip' > olm.zip
sha256sum -c <<< '644bbc7cdcf5931fb64c1b556a3672830ca2af6615caa814458785043895c6df olm.zip'
unzip olm.zip
rm olm.zip
mv javascript package

./scripts/prepare-web.sh

- name: Build Web
run: |
cd $PROJECT_PATH
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ jobs:
- name: Setup Flutter ╰(✿˙ᗜ˙)੭━☆゚.*・。゚
uses: subosito/flutter-action@v2.8.0
with:
flutter-version: '3.32.4'
flutter-version: '3.35.4'
channel: 'stable'

- name: Setup Tools ᕙ|” ◉ ◡ ◉ ”|ᕗ
run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev libolm3 libmpv-dev mpv libmimalloc-dev
sudo apt-get install -y ninja-build libgtk-3-dev libmpv-dev mpv libmimalloc-dev

- name: Configure Flutter (∩`-´)⊃━☆゚.*・。゚
run: flutter config --enable-linux-desktop
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ commet/coverage/lcov.info
commet/assets/js/package/olm.js
commet/assets/js/package/olm.wasm
commet/assets/js/package/olm_legacy.js
commet/.vodozemac/
commet/assets/vodozemac/vodozemac_bindings_dart_bg.wasm
commet/assets/vodozemac/vodozemac_bindings_dart.js
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Help translate Commet to your language on [Weblate](https://hosted.weblate.org/p
</a>

# Development
Commet is built using [Flutter](https://flutter.dev), currently v3.32.4
Commet is built using [Flutter](https://flutter.dev), currently v3.35.4

This repo currently has a monorepo structure, containing two flutter projects: Commet and Tiamat. Commet is the main client, and Tiamat is a sort of wrapper around Material with some extra goodies, which is used to maintain a consistent style across the app. Tiamat may eventually be moved to its own repo, but for now it is maintained here for ease of development.
## Building
Expand All @@ -52,7 +52,7 @@ This repo currently has a monorepo structure, containing two flutter projects: C
### 2. Install Libraries
Commet requires some additional libraries to be built
```bash
sudo apt-get install -y ninja-build libgtk-3-dev libolm3 libmpv-dev mpv ffmpeg libmimalloc-dev
sudo apt-get install -y ninja-build libgtk-3-dev libmpv-dev mpv ffmpeg libmimalloc-dev
```

### 3. Fetch Dependencies
Expand Down
5 changes: 2 additions & 3 deletions commet/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include: package:flutter_lints/flutter.yaml

analyzer:
errors:
curly_braces_in_flow_control_structures: ignore
Expand All @@ -8,4 +6,5 @@ analyzer:
- lib/generated/*.dart
- lib/generated/l10n/*.dart
- lib/main.widgetbook.dart
- integration_test/**
- integration_test/**
- lib/generated/**
2 changes: 1 addition & 1 deletion commet/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ subprojects {
if (project.plugins.hasPlugin("com.android.application") ||
project.plugins.hasPlugin("com.android.library")) {
project.android {
compileSdkVersion 35
compileSdkVersion 36
buildToolsVersion "34.0.0"
}
}
Expand Down
Empty file.
1 change: 0 additions & 1 deletion commet/integration_test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

To run unit tests, there are a few prerequisites.

- Make sure you have `libolm3` installed `sudo apt install libolm3`
- Run Code Generation [scripts/codegen.dart](../scripts/codegen.dart)
- Configure environment variables [. scripts/setup-env.sh](../scripts/setup-env.sh)
- Start the synapse docker server [scripts/integration-server-synapse.sh](../scripts/integration-server-synapse.sh)
Expand Down
2 changes: 1 addition & 1 deletion commet/lib/client/call_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class CallManager {
player = null;
}

onCallStateChanged(VoipSession event) {
void onCallStateChanged(VoipSession event) {
if (event.state == VoipState.connected ||
event.state == VoipState.connecting) {
stopRingtone();
Expand Down
2 changes: 0 additions & 2 deletions commet/lib/client/client_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ import 'package:commet/client/matrix/matrix_client.dart';
import 'package:commet/client/stale_info.dart';
import 'package:commet/client/tasks/client_connection_status_task.dart';
import 'package:commet/main.dart';
import 'package:commet/ui/pages/developer/app_inspector/value_reflector_widget.dart';
import 'package:commet/utils/notifying_list.dart';

@Reflector()
class ClientManager {
final Map<String, Client> _clients = {};

Expand Down
Loading
Loading