mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-19 10:39:26 +01:00
Merge branch 'krille/remove-unused-deps' into 'main'
refactor: Remove unused dependencies See merge request famedly/fluffychat!1032
This commit is contained in:
commit
09386551a3
@ -26,7 +26,7 @@ widget_test:
|
|||||||
script: [flutter test]
|
script: [flutter test]
|
||||||
|
|
||||||
# the basic integration test configuration testing FLOSS builds on Synapse
|
# the basic integration test configuration testing FLOSS builds on Synapse
|
||||||
integration_test:
|
.integration_test:
|
||||||
image: registry.gitlab.com/famedly/company/frontend/flutter-dockerimages/integration/stable:${FLUTTER_VERSION}
|
image: registry.gitlab.com/famedly/company/frontend/flutter-dockerimages/integration/stable:${FLUTTER_VERSION}
|
||||||
stage: test
|
stage: test
|
||||||
services:
|
services:
|
||||||
@ -60,8 +60,8 @@ integration_test:
|
|||||||
timeout: 20m
|
timeout: 20m
|
||||||
|
|
||||||
# extending the default tests to test the Google-flavored builds
|
# extending the default tests to test the Google-flavored builds
|
||||||
integration_test_google:
|
.integration_test_google:
|
||||||
extends: integration_test
|
extends: .integration_test
|
||||||
script:
|
script:
|
||||||
- git apply ./scripts/enable-android-google-services.patch
|
- git apply ./scripts/enable-android-google-services.patch
|
||||||
- flutter pub get
|
- flutter pub get
|
||||||
@ -69,8 +69,8 @@ integration_test_google:
|
|||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
|
||||||
# extending the default tests to use Conduit as local homeserver
|
# extending the default tests to use Conduit as local homeserver
|
||||||
integration_test_conduit:
|
.integration_test_conduit:
|
||||||
extends: integration_test
|
extends: .integration_test
|
||||||
before_script:
|
before_script:
|
||||||
# start AVD and keep running in background
|
# start AVD and keep running in background
|
||||||
- scripts/integration-start-avd.sh &
|
- scripts/integration-start-avd.sh &
|
||||||
@ -84,8 +84,8 @@ integration_test_conduit:
|
|||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
|
||||||
# extending the default tests to use Dendrite as local homeserver
|
# extending the default tests to use Dendrite as local homeserver
|
||||||
integration_test_dendrite:
|
.integration_test_dendrite:
|
||||||
extends: integration_test
|
extends: .integration_test
|
||||||
before_script:
|
before_script:
|
||||||
# start AVD and keep running in background
|
# start AVD and keep running in background
|
||||||
- scripts/integration-start-avd.sh &
|
- scripts/integration-start-avd.sh &
|
||||||
@ -98,7 +98,7 @@ integration_test_dendrite:
|
|||||||
- curl docker:8008/_matrix/static/ 2> /dev/null | grep "404 page not found" 1> /dev/null && echo "Dendrite is running!"
|
- curl docker:8008/_matrix/static/ 2> /dev/null | grep "404 page not found" 1> /dev/null && echo "Dendrite is running!"
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
|
||||||
release_mode_launches:
|
.release_mode_launches:
|
||||||
image: registry.gitlab.com/famedly/company/frontend/flutter-dockerimages/integration/stable:${FLUTTER_VERSION}
|
image: registry.gitlab.com/famedly/company/frontend/flutter-dockerimages/integration/stable:${FLUTTER_VERSION}
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
@ -111,8 +111,8 @@ release_mode_launches:
|
|||||||
- android
|
- android
|
||||||
timeout: 20m
|
timeout: 20m
|
||||||
|
|
||||||
release_mode_launches_google:
|
.release_mode_launches_google:
|
||||||
extends: release_mode_launches
|
extends: .release_mode_launches
|
||||||
before_script:
|
before_script:
|
||||||
- git apply ./scripts/enable-android-google-services.patch
|
- git apply ./scripts/enable-android-google-services.patch
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
import 'dart:math';
|
|
||||||
|
|
||||||
const _chars = 'AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz1234567890';
|
|
||||||
Random _rnd = Random();
|
|
||||||
|
|
||||||
String getClientSecret(int length) => String.fromCharCodes(Iterable.generate(
|
|
||||||
length, (_) => _chars.codeUnitAt(_rnd.nextInt(_chars.length))));
|
|
@ -1,30 +0,0 @@
|
|||||||
import 'package:matrix/matrix.dart';
|
|
||||||
|
|
||||||
extension ClientPresenceExtension on Client {
|
|
||||||
List<CachedPresence> get contactList {
|
|
||||||
final directChatsMxid = rooms
|
|
||||||
.where((r) => r.isDirectChat)
|
|
||||||
.map((r) => r.directChatMatrixID)
|
|
||||||
.toSet();
|
|
||||||
final contactList = directChatsMxid
|
|
||||||
.map(
|
|
||||||
(mxid) =>
|
|
||||||
presences[mxid] ??
|
|
||||||
CachedPresence(
|
|
||||||
PresenceType.offline,
|
|
||||||
0,
|
|
||||||
null,
|
|
||||||
false,
|
|
||||||
mxid ?? '',
|
|
||||||
),
|
|
||||||
)
|
|
||||||
.toList();
|
|
||||||
|
|
||||||
contactList.sort((a, b) => a.userid.compareTo(b.userid));
|
|
||||||
contactList.sort((a, b) => ((a.lastActiveTimestamp ??
|
|
||||||
DateTime.fromMillisecondsSinceEpoch(0))
|
|
||||||
.compareTo(
|
|
||||||
b.lastActiveTimestamp ?? DateTime.fromMillisecondsSinceEpoch(0))));
|
|
||||||
return contactList;
|
|
||||||
}
|
|
||||||
}
|
|
27
pubspec.lock
27
pubspec.lock
@ -72,7 +72,7 @@ packages:
|
|||||||
source: hosted
|
source: hosted
|
||||||
version: "1.1.0"
|
version: "1.1.0"
|
||||||
async:
|
async:
|
||||||
dependency: "direct main"
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: async
|
name: async
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
@ -648,15 +648,8 @@ packages:
|
|||||||
url: "https://gitlab.com/TheOneWithTheBraid/flutter_secure_storage_windows.git"
|
url: "https://gitlab.com/TheOneWithTheBraid/flutter_secure_storage_windows.git"
|
||||||
source: git
|
source: git
|
||||||
version: "1.1.2"
|
version: "1.1.2"
|
||||||
flutter_slidable:
|
|
||||||
dependency: "direct main"
|
|
||||||
description:
|
|
||||||
name: flutter_slidable
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "2.0.0"
|
|
||||||
flutter_svg:
|
flutter_svg:
|
||||||
dependency: "direct main"
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: flutter_svg
|
name: flutter_svg
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
@ -929,20 +922,6 @@ packages:
|
|||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.0.1"
|
version: "1.0.1"
|
||||||
localstorage:
|
|
||||||
dependency: "direct main"
|
|
||||||
description:
|
|
||||||
name: localstorage
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "4.0.0+1"
|
|
||||||
lottie:
|
|
||||||
dependency: "direct main"
|
|
||||||
description:
|
|
||||||
name: lottie
|
|
||||||
url: "https://pub.dartlang.org"
|
|
||||||
source: hosted
|
|
||||||
version: "1.2.2"
|
|
||||||
macos_ui:
|
macos_ui:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
@ -1789,7 +1768,7 @@ packages:
|
|||||||
source: hosted
|
source: hosted
|
||||||
version: "0.2.0"
|
version: "0.2.0"
|
||||||
uuid:
|
uuid:
|
||||||
dependency: "direct main"
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: uuid
|
name: uuid
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
|
@ -10,7 +10,6 @@ dependencies:
|
|||||||
adaptive_dialog: ^1.5.1
|
adaptive_dialog: ^1.5.1
|
||||||
adaptive_theme: ^3.0.0
|
adaptive_theme: ^3.0.0
|
||||||
animations: ^2.0.2
|
animations: ^2.0.2
|
||||||
async: ^2.8.2
|
|
||||||
badges: ^2.0.3
|
badges: ^2.0.3
|
||||||
blurhash_dart: ^1.1.0
|
blurhash_dart: ^1.1.0
|
||||||
callkeep: ^0.3.2
|
callkeep: ^0.3.2
|
||||||
@ -46,8 +45,6 @@ dependencies:
|
|||||||
flutter_openssl_crypto: ^0.1.0
|
flutter_openssl_crypto: ^0.1.0
|
||||||
flutter_ringtone_player: ^3.1.1
|
flutter_ringtone_player: ^3.1.1
|
||||||
flutter_secure_storage: ^6.0.0
|
flutter_secure_storage: ^6.0.0
|
||||||
flutter_slidable: ^2.0.0
|
|
||||||
flutter_svg: ^0.22.0
|
|
||||||
flutter_typeahead: ^4.0.0
|
flutter_typeahead: ^4.0.0
|
||||||
flutter_web_auth: ^0.5.0
|
flutter_web_auth: ^0.5.0
|
||||||
flutter_webrtc: ^0.9.11
|
flutter_webrtc: ^0.9.11
|
||||||
@ -63,8 +60,6 @@ dependencies:
|
|||||||
just_audio: ^0.9.20
|
just_audio: ^0.9.20
|
||||||
keyboard_shortcuts: ^0.1.4
|
keyboard_shortcuts: ^0.1.4
|
||||||
latlong2: ^0.8.1
|
latlong2: ^0.8.1
|
||||||
localstorage: ^4.0.0+1
|
|
||||||
lottie: ^1.2.2
|
|
||||||
matrix: ^0.15.2
|
matrix: ^0.15.2
|
||||||
matrix_homeserver_recommendations: ^0.3.0
|
matrix_homeserver_recommendations: ^0.3.0
|
||||||
matrix_link_text: ^1.0.2
|
matrix_link_text: ^1.0.2
|
||||||
@ -89,7 +84,6 @@ dependencies:
|
|||||||
unifiedpush: ^4.0.0
|
unifiedpush: ^4.0.0
|
||||||
universal_html: ^2.0.8
|
universal_html: ^2.0.8
|
||||||
url_launcher: ^6.0.20
|
url_launcher: ^6.0.20
|
||||||
uuid: ^3.0.6
|
|
||||||
vibration: ^1.7.4-nullsafety.0
|
vibration: ^1.7.4-nullsafety.0
|
||||||
video_compress: ^3.1.1
|
video_compress: ^3.1.1
|
||||||
video_player: ^2.2.18
|
video_player: ^2.2.18
|
||||||
|
Loading…
Reference in New Issue
Block a user