Skip to content

Commit 844c0b7

Browse files
chore: use fvm github action (#69)
* chore: use fvm github action * webkit2gtk-4.1 * libwebkit2gtk-4.1-dev * fvm for snap * - * . * b * s * mkdir * y * Plug shared-memory, needed for webkit * historyvisibilitytest * snap: fixed command * Don't connect to shared-memory, but add connection for network-status. This is required for the portal check in webkit. * no webview for windows and linux --------- Co-authored-by: Ken VanDine <ken.vandine@canonical.com>
1 parent 51e567a commit 844c0b7

155 files changed

Lines changed: 13599 additions & 2628 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.fvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"flutter": "3.29.2"
2+
"flutter": "3.32.4"
33
}

.github/workflows/ci.yaml

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,51 +4,36 @@ on:
44
pull_request:
55
branches: [main]
66

7-
env:
8-
FLUTTER_VERSION: '3.29.2'
9-
107
jobs:
118
analyze:
129
runs-on: ubuntu-latest
1310
steps:
1411
- uses: actions/checkout@v4
15-
- uses: subosito/flutter-action@v2
16-
with:
17-
channel: 'stable'
18-
flutter-version: ${{env.FLUTTER_VERSION}}
12+
- uses: kuhnroyal/flutter-fvm-config-action/setup@v3
1913
- run: flutter pub get
2014
- run: flutter analyze --fatal-infos
2115

2216
format:
2317
runs-on: ubuntu-latest
2418
steps:
2519
- uses: actions/checkout@v4
26-
- uses: subosito/flutter-action@v2
27-
with:
28-
channel: 'stable'
29-
flutter-version: ${{env.FLUTTER_VERSION}}
20+
- uses: kuhnroyal/flutter-fvm-config-action/setup@v3
3021
- run: flutter pub get
3122
- run: dart format --set-exit-if-changed .
3223

3324
test:
3425
runs-on: ubuntu-latest
3526
steps:
3627
- uses: actions/checkout@v4
37-
- uses: subosito/flutter-action@v2
38-
with:
39-
channel: 'stable'
40-
flutter-version: ${{env.FLUTTER_VERSION}}
28+
- uses: kuhnroyal/flutter-fvm-config-action/setup@v3
4129
- run: flutter test
4230

4331
build:
4432
runs-on: ubuntu-latest
4533
steps:
4634
- uses: actions/checkout@v4
47-
- uses: subosito/flutter-action@v2
48-
with:
49-
channel: 'stable'
50-
flutter-version: ${{env.FLUTTER_VERSION}}
35+
- uses: kuhnroyal/flutter-fvm-config-action/setup@v3
5136
- run: sudo apt update
52-
- run: sudo apt install -y clang cmake curl libgtk-3-dev ninja-build pkg-config unzip libunwind-dev libmpv-dev libsqlite3-dev libolm-dev libolm3 libcrypto++-dev libsecret-1-dev libjsoncpp-dev libnotify-dev
37+
- run: sudo apt install -y clang cmake curl libgtk-3-dev ninja-build pkg-config unzip libunwind-dev libmpv-dev libsqlite3-dev libolm-dev libolm3 libcrypto++-dev libsecret-1-dev libjsoncpp-dev libnotify-dev libwebkit2gtk-4.1-dev
5338
- run: flutter pub get
5439
- run: flutter build linux -v

.metadata

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,35 +4,20 @@
44
# This file should be version controlled and should not be manually edited.
55

66
version:
7-
revision: "b0850beeb25f6d5b10426284f506557f66181b36"
8-
channel: "[user-branch]"
7+
revision: "6fba2447e95c451518584c35e25f5433f14d888c"
8+
channel: "stable"
99

1010
project_type: app
1111

1212
# Tracks metadata for the flutter migrate command
1313
migration:
1414
platforms:
1515
- platform: root
16-
create_revision: b0850beeb25f6d5b10426284f506557f66181b36
17-
base_revision: b0850beeb25f6d5b10426284f506557f66181b36
18-
- platform: android
19-
create_revision: b0850beeb25f6d5b10426284f506557f66181b36
20-
base_revision: b0850beeb25f6d5b10426284f506557f66181b36
21-
- platform: ios
22-
create_revision: b0850beeb25f6d5b10426284f506557f66181b36
23-
base_revision: b0850beeb25f6d5b10426284f506557f66181b36
24-
- platform: linux
25-
create_revision: b0850beeb25f6d5b10426284f506557f66181b36
26-
base_revision: b0850beeb25f6d5b10426284f506557f66181b36
27-
- platform: macos
28-
create_revision: b0850beeb25f6d5b10426284f506557f66181b36
29-
base_revision: b0850beeb25f6d5b10426284f506557f66181b36
16+
create_revision: 6fba2447e95c451518584c35e25f5433f14d888c
17+
base_revision: 6fba2447e95c451518584c35e25f5433f14d888c
3018
- platform: web
31-
create_revision: b0850beeb25f6d5b10426284f506557f66181b36
32-
base_revision: b0850beeb25f6d5b10426284f506557f66181b36
33-
- platform: windows
34-
create_revision: b0850beeb25f6d5b10426284f506557f66181b36
35-
base_revision: b0850beeb25f6d5b10426284f506557f66181b36
19+
create_revision: 6fba2447e95c451518584c35e25f5433f14d888c
20+
base_revision: 6fba2447e95c451518584c35e25f5433f14d888c
3621

3722
# User provided section
3823

analysis_options.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ linter:
1515
unnecessary_parenthesis: true
1616
unnecessary_await_in_return: true
1717
unnecessary_late: true
18-
unnecessary_breaks: true
18+
unnecessary_breaks: true

l10n.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ arb-dir: lib/l10n
22
template-arb-file: app_en.arb
33
output-localization-file: app_localizations.dart
44
nullable-getter: false
5-
untranslated-messages-file: needs_translation.json
5+
untranslated-messages-file: needs_translation.json
6+
synthetic-package: false
7+
format: true

lib/app/view/app.dart

Lines changed: 24 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import 'dart:ui';
33
import 'package:flutter/material.dart';
44
import 'package:watch_it/watch_it.dart';
55

6-
import '../../l10n/l10n.dart';
6+
import '../../l10n/app_localizations.dart';
77
import '../../settings/settings_model.dart';
88
import '../app_config.dart';
99

@@ -28,33 +28,30 @@ class App extends StatelessWidget with WatchItMixin {
2828

2929
@override
3030
Widget build(BuildContext context) => MaterialApp(
31-
themeMode: themeMode ??
32-
watchPropertyValue(
33-
(SettingsModel m) => ThemeMode.values[m.themModeIndex],
34-
),
35-
theme: lightTheme?.copyWith(
36-
pageTransitionsTheme: pTT,
31+
themeMode:
32+
themeMode ??
33+
watchPropertyValue(
34+
(SettingsModel m) => ThemeMode.values[m.themModeIndex],
3735
),
38-
darkTheme: darkTheme?.copyWith(
39-
pageTransitionsTheme: pTT,
40-
),
41-
highContrastTheme: highContrastTheme,
42-
highContrastDarkTheme: highContrastDarkTheme,
43-
debugShowCheckedModeBanner: false,
44-
title: AppConfig.kAppTitle,
45-
localizationsDelegates: AppLocalizations.localizationsDelegates,
46-
supportedLocales: AppLocalizations.supportedLocales,
47-
scrollBehavior: const MaterialScrollBehavior().copyWith(
48-
dragDevices: {
49-
PointerDeviceKind.mouse,
50-
PointerDeviceKind.touch,
51-
PointerDeviceKind.stylus,
52-
PointerDeviceKind.unknown,
53-
PointerDeviceKind.trackpad,
54-
},
55-
),
56-
home: child,
57-
);
36+
theme: lightTheme?.copyWith(pageTransitionsTheme: pTT),
37+
darkTheme: darkTheme?.copyWith(pageTransitionsTheme: pTT),
38+
highContrastTheme: highContrastTheme,
39+
highContrastDarkTheme: highContrastDarkTheme,
40+
debugShowCheckedModeBanner: false,
41+
title: AppConfig.kAppTitle,
42+
localizationsDelegates: AppLocalizations.localizationsDelegates,
43+
supportedLocales: AppLocalizations.supportedLocales,
44+
scrollBehavior: const MaterialScrollBehavior().copyWith(
45+
dragDevices: {
46+
PointerDeviceKind.mouse,
47+
PointerDeviceKind.touch,
48+
PointerDeviceKind.stylus,
49+
PointerDeviceKind.unknown,
50+
PointerDeviceKind.trackpad,
51+
},
52+
),
53+
home: child,
54+
);
5855
}
5956

6057
final pTT = PageTransitionsTheme(

lib/app/view/nebuchadnezzar.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1-
import 'dart:io';
2-
3-
import 'package:flutter/foundation.dart';
41
import 'package:flutter/material.dart';
52
import 'package:system_theme/system_theme_builder.dart';
63
import 'package:yaru/yaru.dart';
74

5+
import '../../common/platforms.dart';
86
import 'wait_for_registration_page.dart';
97

108
class Nebuchadnezzar extends StatelessWidget {
119
const Nebuchadnezzar({super.key});
1210

1311
@override
14-
Widget build(BuildContext context) => !kIsWeb && Platform.isLinux
12+
Widget build(BuildContext context) => Platforms.isLinux
1513
? YaruTheme(
1614
builder: (context, yaru, child) => WaitForRegistrationPage(
1715
lightTheme: yaru.theme,

lib/app/view/splash_page.dart

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import 'package:flutter/material.dart';
22
import 'package:yaru/yaru.dart';
33

44
import '../../common/view/common_widgets.dart';
5-
import '../../common/view/ui_constants.dart';
6-
import '../../settings/view/chat_settings_logout_button.dart';
75

86
class SplashPage extends StatelessWidget {
97
const SplashPage({super.key, this.title});
@@ -17,14 +15,8 @@ class SplashPage extends StatelessWidget {
1715
title: title,
1816
border: BorderSide.none,
1917
backgroundColor: Colors.transparent,
20-
actions: const [
21-
Flexible(child: ChatSettingsLogoutButton()),
22-
SizedBox(width: kSmallPadding),
23-
],
24-
),
25-
body: const Center(
26-
child: Progress(),
2718
),
19+
body: const Center(child: Progress()),
2820
);
2921
}
3022
}

lib/app/view/wait_for_registration_page.dart

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -37,24 +37,24 @@ class _WaitForRegistrationPageState extends State<WaitForRegistrationPage> {
3737

3838
@override
3939
Widget build(BuildContext context) => FutureBuilder(
40-
future: _registrationReady,
41-
builder: (context, snapshot) => snapshot.hasData
42-
? App(
43-
lightTheme: widget.lightTheme,
44-
darkTheme: widget.darkTheme,
45-
highContrastDarkTheme: widget.highContrastDarkTheme,
46-
highContrastTheme: widget.highContrastTheme,
47-
child: (!di<AuthenticationModel>().isLogged)
48-
? const ChatLoginPage()
49-
: const CheckEncryptionSetupPage(),
50-
)
51-
: App(
52-
themeMode: ThemeMode.system,
53-
lightTheme: widget.lightTheme,
54-
darkTheme: widget.darkTheme,
55-
highContrastDarkTheme: widget.highContrastDarkTheme,
56-
highContrastTheme: widget.highContrastTheme,
57-
child: const SplashPage(),
58-
),
59-
);
40+
future: _registrationReady,
41+
builder: (context, snapshot) => snapshot.hasData
42+
? App(
43+
lightTheme: widget.lightTheme,
44+
darkTheme: widget.darkTheme,
45+
highContrastDarkTheme: widget.highContrastDarkTheme,
46+
highContrastTheme: widget.highContrastTheme,
47+
child: (!di<AuthenticationModel>().isLogged)
48+
? const ChatLoginPage()
49+
: const CheckEncryptionSetupPage(),
50+
)
51+
: App(
52+
themeMode: ThemeMode.system,
53+
lightTheme: widget.lightTheme,
54+
darkTheme: widget.darkTheme,
55+
highContrastDarkTheme: widget.highContrastDarkTheme,
56+
highContrastTheme: widget.highContrastTheme,
57+
child: const SplashPage(),
58+
),
59+
);
6060
}

0 commit comments

Comments
 (0)