Merge branch 'krille/import-sorter' into 'main'
refactor: Use import sorter and ci templates See merge request famedly/company/frontend/famedlysdk!1079
This commit is contained in:
commit
f04d8a9f40
|
|
@ -1,8 +1,7 @@
|
||||||
stages:
|
include:
|
||||||
- coverage
|
- project: "famedly/company/frontend/ci-templates"
|
||||||
- builddocs
|
ref: main
|
||||||
- deploy
|
file: "/all.yml"
|
||||||
- publish
|
|
||||||
|
|
||||||
workflow:
|
workflow:
|
||||||
rules:
|
rules:
|
||||||
|
|
@ -16,7 +15,7 @@ variables:
|
||||||
coverage:
|
coverage:
|
||||||
tags:
|
tags:
|
||||||
- linux
|
- linux
|
||||||
stage: coverage
|
stage: test
|
||||||
image: registry.gitlab.com/famedly/company/frontend/flutter-dockerimages/flutter-linux/stable:${FLUTTER_IMAGE_TAG}
|
image: registry.gitlab.com/famedly/company/frontend/flutter-dockerimages/flutter-linux/stable:${FLUTTER_IMAGE_TAG}
|
||||||
dependencies: []
|
dependencies: []
|
||||||
script:
|
script:
|
||||||
|
|
@ -31,7 +30,7 @@ coverage:
|
||||||
coverage_without_olm:
|
coverage_without_olm:
|
||||||
tags:
|
tags:
|
||||||
- linux
|
- linux
|
||||||
stage: coverage
|
stage: test
|
||||||
image: dart
|
image: dart
|
||||||
dependencies: []
|
dependencies: []
|
||||||
script:
|
script:
|
||||||
|
|
@ -41,7 +40,7 @@ coverage_without_olm:
|
||||||
e2ee_test:
|
e2ee_test:
|
||||||
tags:
|
tags:
|
||||||
- linux
|
- linux
|
||||||
stage: coverage
|
stage: test
|
||||||
image: registry.gitlab.com/famedly/company/frontend/flutter-dockerimages/flutter-linux/stable:${FLUTTER_IMAGE_TAG}
|
image: registry.gitlab.com/famedly/company/frontend/flutter-dockerimages/flutter-linux/stable:${FLUTTER_IMAGE_TAG}
|
||||||
dependencies: []
|
dependencies: []
|
||||||
script:
|
script:
|
||||||
|
|
@ -51,35 +50,8 @@ e2ee_test:
|
||||||
timeout: 16m
|
timeout: 16m
|
||||||
resource_group: e2ee_test
|
resource_group: e2ee_test
|
||||||
|
|
||||||
code_analyze:
|
|
||||||
tags:
|
|
||||||
- docker
|
|
||||||
stage: coverage
|
|
||||||
image: dart
|
|
||||||
dependencies: []
|
|
||||||
script:
|
|
||||||
- dart pub get
|
|
||||||
- dart format lib/ test/ test_driver/ --set-exit-if-changed
|
|
||||||
- dart analyze
|
|
||||||
|
|
||||||
code_quality:
|
|
||||||
tags:
|
|
||||||
- docker
|
|
||||||
stage: coverage
|
|
||||||
image: dart
|
|
||||||
before_script:
|
|
||||||
- dart pub global activate dart_code_metrics
|
|
||||||
script:
|
|
||||||
- dart pub global run dart_code_metrics:metrics analyze lib -r gitlab > code-quality-report.json
|
|
||||||
artifacts:
|
|
||||||
reports:
|
|
||||||
codequality: code-quality-report.json
|
|
||||||
# also create an actual artifact for inspection purposes
|
|
||||||
paths:
|
|
||||||
- code-quality-report.json
|
|
||||||
|
|
||||||
dry-run:
|
dry-run:
|
||||||
stage: publish
|
stage: deploy
|
||||||
image: dart
|
image: dart
|
||||||
script:
|
script:
|
||||||
- rm -rf ./docs
|
- rm -rf ./docs
|
||||||
|
|
@ -88,7 +60,7 @@ dry-run:
|
||||||
|
|
||||||
|
|
||||||
pub-dev:
|
pub-dev:
|
||||||
stage: publish
|
stage: deploy
|
||||||
image: dart
|
image: dart
|
||||||
dependencies: [
|
dependencies: [
|
||||||
dry-run
|
dry-run
|
||||||
|
|
|
||||||
|
|
@ -18,9 +18,9 @@
|
||||||
|
|
||||||
import 'dart:typed_data';
|
import 'dart:typed_data';
|
||||||
|
|
||||||
import 'package:matrix/encryption/utils/base64_unpadded.dart';
|
|
||||||
import 'package:olm/olm.dart' as olm;
|
import 'package:olm/olm.dart' as olm;
|
||||||
|
|
||||||
|
import 'package:matrix/encryption/utils/base64_unpadded.dart';
|
||||||
import '../matrix.dart';
|
import '../matrix.dart';
|
||||||
import 'encryption.dart';
|
import 'encryption.dart';
|
||||||
import 'ssss.dart';
|
import 'ssss.dart';
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,8 @@
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import 'dart:convert';
|
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
|
import 'dart:convert';
|
||||||
|
|
||||||
import 'package:olm/olm.dart' as olm;
|
import 'package:olm/olm.dart' as olm;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,16 +19,16 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
|
|
||||||
|
import 'package:collection/collection.dart';
|
||||||
|
import 'package:olm/olm.dart' as olm;
|
||||||
|
|
||||||
import 'package:matrix/encryption/utils/base64_unpadded.dart';
|
import 'package:matrix/encryption/utils/base64_unpadded.dart';
|
||||||
import 'package:matrix/encryption/utils/stored_inbound_group_session.dart';
|
import 'package:matrix/encryption/utils/stored_inbound_group_session.dart';
|
||||||
import 'package:olm/olm.dart' as olm;
|
import '../matrix.dart';
|
||||||
import 'package:collection/collection.dart';
|
import '../src/utils/run_in_root.dart';
|
||||||
|
|
||||||
import './encryption.dart';
|
import './encryption.dart';
|
||||||
import './utils/outbound_group_session.dart';
|
import './utils/outbound_group_session.dart';
|
||||||
import './utils/session_key.dart';
|
import './utils/session_key.dart';
|
||||||
import '../matrix.dart';
|
|
||||||
import '../src/utils/run_in_root.dart';
|
|
||||||
|
|
||||||
const megolmKey = EventTypes.MegolmBackup;
|
const megolmKey = EventTypes.MegolmBackup;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,9 +21,9 @@ import 'dart:convert';
|
||||||
import 'package:async/async.dart';
|
import 'package:async/async.dart';
|
||||||
import 'package:canonical_json/canonical_json.dart';
|
import 'package:canonical_json/canonical_json.dart';
|
||||||
import 'package:collection/collection.dart';
|
import 'package:collection/collection.dart';
|
||||||
import 'package:matrix/matrix.dart';
|
|
||||||
import 'package:olm/olm.dart' as olm;
|
import 'package:olm/olm.dart' as olm;
|
||||||
|
|
||||||
|
import 'package:matrix/matrix.dart';
|
||||||
import '../encryption/utils/json_signature_check_extension.dart';
|
import '../encryption/utils/json_signature_check_extension.dart';
|
||||||
import '../src/utils/run_in_root.dart';
|
import '../src/utils/run_in_root.dart';
|
||||||
import 'encryption.dart';
|
import 'encryption.dart';
|
||||||
|
|
|
||||||
|
|
@ -22,10 +22,10 @@ import 'dart:core';
|
||||||
import 'dart:typed_data';
|
import 'dart:typed_data';
|
||||||
|
|
||||||
import 'package:base58check/base58.dart';
|
import 'package:base58check/base58.dart';
|
||||||
import 'package:crypto/crypto.dart';
|
|
||||||
import 'package:collection/collection.dart';
|
import 'package:collection/collection.dart';
|
||||||
import 'package:matrix/encryption/utils/base64_unpadded.dart';
|
import 'package:crypto/crypto.dart';
|
||||||
|
|
||||||
|
import 'package:matrix/encryption/utils/base64_unpadded.dart';
|
||||||
import '../matrix.dart';
|
import '../matrix.dart';
|
||||||
import '../src/utils/crypto/crypto.dart' as uc;
|
import '../src/utils/crypto/crypto.dart' as uc;
|
||||||
import '../src/utils/run_in_root.dart';
|
import '../src/utils/run_in_root.dart';
|
||||||
|
|
|
||||||
|
|
@ -22,10 +22,10 @@ import 'dart:typed_data';
|
||||||
import 'package:canonical_json/canonical_json.dart';
|
import 'package:canonical_json/canonical_json.dart';
|
||||||
import 'package:olm/olm.dart' as olm;
|
import 'package:olm/olm.dart' as olm;
|
||||||
|
|
||||||
import '../encryption.dart';
|
|
||||||
import '../ssss.dart';
|
|
||||||
import '../key_manager.dart';
|
|
||||||
import '../../matrix.dart';
|
import '../../matrix.dart';
|
||||||
|
import '../encryption.dart';
|
||||||
|
import '../key_manager.dart';
|
||||||
|
import '../ssss.dart';
|
||||||
import 'base64_unpadded.dart';
|
import 'base64_unpadded.dart';
|
||||||
|
|
||||||
enum BootstrapState {
|
enum BootstrapState {
|
||||||
|
|
|
||||||
|
|
@ -16,10 +16,10 @@
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import 'package:matrix/encryption/utils/stored_inbound_group_session.dart';
|
|
||||||
import 'package:matrix_api_lite/src/utils/filter_map_extension.dart';
|
import 'package:matrix_api_lite/src/utils/filter_map_extension.dart';
|
||||||
import 'package:olm/olm.dart' as olm;
|
import 'package:olm/olm.dart' as olm;
|
||||||
|
|
||||||
|
import 'package:matrix/encryption/utils/stored_inbound_group_session.dart';
|
||||||
import '../../matrix.dart';
|
import '../../matrix.dart';
|
||||||
|
|
||||||
class SessionKey {
|
class SessionKey {
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ library msc_2835_uia_login;
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
|
|
||||||
import 'package:http/http.dart' hide Client;
|
import 'package:http/http.dart' hide Client;
|
||||||
|
|
||||||
import 'package:matrix/matrix.dart';
|
import 'package:matrix/matrix.dart';
|
||||||
|
|
||||||
extension UiaLogin on Client {
|
extension UiaLogin on Client {
|
||||||
|
|
|
||||||
|
|
@ -23,13 +23,13 @@ import 'dart:typed_data';
|
||||||
|
|
||||||
import 'package:collection/collection.dart' show IterableExtension;
|
import 'package:collection/collection.dart' show IterableExtension;
|
||||||
import 'package:http/http.dart' as http;
|
import 'package:http/http.dart' as http;
|
||||||
import 'package:matrix/src/utils/cached_stream_controller.dart';
|
|
||||||
import 'package:matrix/src/utils/run_in_root.dart';
|
|
||||||
import 'package:matrix/src/utils/sync_update_item_count.dart';
|
|
||||||
import 'package:mime/mime.dart';
|
import 'package:mime/mime.dart';
|
||||||
import 'package:olm/olm.dart' as olm;
|
import 'package:olm/olm.dart' as olm;
|
||||||
import 'package:random_string/random_string.dart';
|
import 'package:random_string/random_string.dart';
|
||||||
|
|
||||||
|
import 'package:matrix/src/utils/cached_stream_controller.dart';
|
||||||
|
import 'package:matrix/src/utils/run_in_root.dart';
|
||||||
|
import 'package:matrix/src/utils/sync_update_item_count.dart';
|
||||||
import '../encryption.dart';
|
import '../encryption.dart';
|
||||||
import '../matrix.dart';
|
import '../matrix.dart';
|
||||||
import 'utils/multilock.dart';
|
import 'utils/multilock.dart';
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,6 @@ import 'package:matrix/encryption/utils/outbound_group_session.dart';
|
||||||
import 'package:matrix/encryption/utils/ssss_cache.dart';
|
import 'package:matrix/encryption/utils/ssss_cache.dart';
|
||||||
import 'package:matrix/encryption/utils/stored_inbound_group_session.dart';
|
import 'package:matrix/encryption/utils/stored_inbound_group_session.dart';
|
||||||
import 'package:matrix/src/utils/queued_to_device_event.dart';
|
import 'package:matrix/src/utils/queued_to_device_event.dart';
|
||||||
|
|
||||||
import '../../matrix.dart';
|
import '../../matrix.dart';
|
||||||
|
|
||||||
abstract class DatabaseApi {
|
abstract class DatabaseApi {
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ import 'dart:typed_data';
|
||||||
|
|
||||||
import 'package:fluffybox/fluffybox.dart';
|
import 'package:fluffybox/fluffybox.dart';
|
||||||
import 'package:fluffybox/hive.dart' show HiveCipher;
|
import 'package:fluffybox/hive.dart' show HiveCipher;
|
||||||
|
|
||||||
import 'package:matrix/encryption/utils/olm_session.dart';
|
import 'package:matrix/encryption/utils/olm_session.dart';
|
||||||
import 'package:matrix/encryption/utils/outbound_group_session.dart';
|
import 'package:matrix/encryption/utils/outbound_group_session.dart';
|
||||||
import 'package:matrix/encryption/utils/ssss_cache.dart';
|
import 'package:matrix/encryption/utils/ssss_cache.dart';
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ import 'dart:math';
|
||||||
import 'dart:typed_data';
|
import 'dart:typed_data';
|
||||||
|
|
||||||
import 'package:hive/hive.dart';
|
import 'package:hive/hive.dart';
|
||||||
|
|
||||||
import 'package:matrix/encryption/utils/olm_session.dart';
|
import 'package:matrix/encryption/utils/olm_session.dart';
|
||||||
import 'package:matrix/encryption/utils/outbound_group_session.dart';
|
import 'package:matrix/encryption/utils/outbound_group_session.dart';
|
||||||
import 'package:matrix/encryption/utils/ssss_cache.dart';
|
import 'package:matrix/encryption/utils/ssss_cache.dart';
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ import 'dart:math';
|
||||||
import 'dart:typed_data';
|
import 'dart:typed_data';
|
||||||
|
|
||||||
import 'package:hive/hive.dart';
|
import 'package:hive/hive.dart';
|
||||||
|
|
||||||
import 'package:matrix/encryption/utils/olm_session.dart';
|
import 'package:matrix/encryption/utils/olm_session.dart';
|
||||||
import 'package:matrix/encryption/utils/outbound_group_session.dart';
|
import 'package:matrix/encryption/utils/outbound_group_session.dart';
|
||||||
import 'package:matrix/encryption/utils/ssss_cache.dart';
|
import 'package:matrix/encryption/utils/ssss_cache.dart';
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,8 @@ import 'dart:typed_data';
|
||||||
import 'package:collection/collection.dart';
|
import 'package:collection/collection.dart';
|
||||||
import 'package:html/parser.dart';
|
import 'package:html/parser.dart';
|
||||||
import 'package:http/http.dart' as http;
|
import 'package:http/http.dart' as http;
|
||||||
import 'package:matrix/src/utils/file_send_request_credentials.dart';
|
|
||||||
|
|
||||||
|
import 'package:matrix/src/utils/file_send_request_credentials.dart';
|
||||||
import '../matrix.dart';
|
import '../matrix.dart';
|
||||||
import 'utils/event_localizations.dart';
|
import 'utils/event_localizations.dart';
|
||||||
import 'utils/html_to_text.dart';
|
import 'utils/html_to_text.dart';
|
||||||
|
|
|
||||||
|
|
@ -22,12 +22,12 @@ import 'dart:typed_data';
|
||||||
|
|
||||||
import 'package:collection/collection.dart';
|
import 'package:collection/collection.dart';
|
||||||
import 'package:html_unescape/html_unescape.dart';
|
import 'package:html_unescape/html_unescape.dart';
|
||||||
|
|
||||||
import 'package:matrix/src/models/timeline_chunk.dart';
|
import 'package:matrix/src/models/timeline_chunk.dart';
|
||||||
|
import 'package:matrix/src/utils/cached_stream_controller.dart';
|
||||||
import 'package:matrix/src/utils/crypto/crypto.dart';
|
import 'package:matrix/src/utils/crypto/crypto.dart';
|
||||||
import 'package:matrix/src/utils/file_send_request_credentials.dart';
|
import 'package:matrix/src/utils/file_send_request_credentials.dart';
|
||||||
import 'package:matrix/src/utils/cached_stream_controller.dart';
|
|
||||||
import 'package:matrix/src/utils/space_child.dart';
|
import 'package:matrix/src/utils/space_child.dart';
|
||||||
|
|
||||||
import '../matrix.dart';
|
import '../matrix.dart';
|
||||||
import 'utils/markdown.dart';
|
import 'utils/markdown.dart';
|
||||||
import 'utils/marked_unread.dart';
|
import 'utils/marked_unread.dart';
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,8 @@
|
||||||
|
|
||||||
export 'native.dart' if (dart.library.js) 'js.dart';
|
export 'native.dart' if (dart.library.js) 'js.dart';
|
||||||
|
|
||||||
import 'dart:typed_data';
|
|
||||||
import 'dart:math';
|
import 'dart:math';
|
||||||
|
import 'dart:typed_data';
|
||||||
|
|
||||||
Uint8List secureRandomBytes(int len) {
|
Uint8List secureRandomBytes(int len) {
|
||||||
final rng = Random.secure();
|
final rng = Random.secure();
|
||||||
|
|
|
||||||
|
|
@ -15,11 +15,11 @@
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
import 'dart:typed_data';
|
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
|
import 'dart:typed_data';
|
||||||
|
|
||||||
import 'package:matrix/encryption/utils/base64_unpadded.dart';
|
import 'package:matrix/encryption/utils/base64_unpadded.dart';
|
||||||
|
|
||||||
import 'crypto.dart';
|
import 'crypto.dart';
|
||||||
|
|
||||||
class EncryptedFile {
|
class EncryptedFile {
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import 'dart:ffi';
|
import 'dart:ffi';
|
||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@
|
||||||
|
|
||||||
import 'dart:typed_data';
|
import 'dart:typed_data';
|
||||||
|
|
||||||
import 'subtle.dart';
|
|
||||||
import 'subtle.dart' as subtle;
|
import 'subtle.dart' as subtle;
|
||||||
|
import 'subtle.dart';
|
||||||
|
|
||||||
abstract class Hash {
|
abstract class Hash {
|
||||||
Hash._(this.name);
|
Hash._(this.name);
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'dart:typed_data';
|
|
||||||
import 'dart:ffi';
|
import 'dart:ffi';
|
||||||
|
import 'dart:typed_data';
|
||||||
|
|
||||||
import 'package:ffi/ffi.dart';
|
import 'package:ffi/ffi.dart';
|
||||||
|
|
||||||
import 'ffi.dart';
|
import 'ffi.dart';
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,12 @@
|
||||||
@JS()
|
@JS()
|
||||||
library subtle;
|
library subtle;
|
||||||
|
|
||||||
import 'package:js/js.dart';
|
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'dart:js_util';
|
import 'dart:js_util';
|
||||||
import 'dart:typed_data';
|
import 'dart:typed_data';
|
||||||
|
|
||||||
|
import 'package:js/js.dart';
|
||||||
|
|
||||||
@JS()
|
@JS()
|
||||||
@anonymous
|
@anonymous
|
||||||
class Pbkdf2Params {
|
class Pbkdf2Params {
|
||||||
|
|
|
||||||
|
|
@ -20,9 +20,9 @@ import 'dart:convert';
|
||||||
|
|
||||||
import 'package:canonical_json/canonical_json.dart';
|
import 'package:canonical_json/canonical_json.dart';
|
||||||
import 'package:collection/collection.dart' show IterableExtension;
|
import 'package:collection/collection.dart' show IterableExtension;
|
||||||
import 'package:matrix/matrix.dart';
|
|
||||||
import 'package:olm/olm.dart' as olm;
|
import 'package:olm/olm.dart' as olm;
|
||||||
|
|
||||||
|
import 'package:matrix/matrix.dart';
|
||||||
import '../../encryption.dart';
|
import '../../encryption.dart';
|
||||||
|
|
||||||
enum UserVerifiedStatus { verified, unknown, unknownDevice }
|
enum UserVerifiedStatus { verified, unknown, unknownDevice }
|
||||||
|
|
|
||||||
|
|
@ -17,9 +17,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import 'package:collection/collection.dart';
|
import 'package:collection/collection.dart';
|
||||||
|
|
||||||
import 'package:html/parser.dart';
|
|
||||||
import 'package:html/dom.dart';
|
import 'package:html/dom.dart';
|
||||||
|
import 'package:html/parser.dart';
|
||||||
import 'package:html_unescape/html_unescape.dart';
|
import 'package:html_unescape/html_unescape.dart';
|
||||||
|
|
||||||
class HtmlToText {
|
class HtmlToText {
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,8 @@
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import 'package:slugify/slugify.dart';
|
|
||||||
import 'package:matrix_api_lite/matrix_api_lite.dart';
|
import 'package:matrix_api_lite/matrix_api_lite.dart';
|
||||||
|
import 'package:slugify/slugify.dart';
|
||||||
|
|
||||||
import '../room.dart';
|
import '../room.dart';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,9 +16,10 @@
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import 'package:markdown/markdown.dart';
|
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
|
|
||||||
|
import 'package:markdown/markdown.dart';
|
||||||
|
|
||||||
const htmlAttrEscape = HtmlEscape(HtmlEscapeMode.attribute);
|
const htmlAttrEscape = HtmlEscape(HtmlEscapeMode.attribute);
|
||||||
|
|
||||||
class LinebreakSyntax extends InlineSyntax {
|
class LinebreakSyntax extends InlineSyntax {
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import 'package:matrix/matrix.dart';
|
import 'package:matrix/matrix.dart';
|
||||||
|
|
||||||
class MatrixDefaultLocalizations extends MatrixLocalizations {
|
class MatrixDefaultLocalizations extends MatrixLocalizations {
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
|
|
||||||
/// Lock management class. It allows to lock and unlock multiple keys at once. The keys have
|
/// Lock management class. It allows to lock and unlock multiple keys at once. The keys have
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
|
|
||||||
class QueuedToDeviceEvent {
|
class QueuedToDeviceEvent {
|
||||||
|
|
|
||||||
|
|
@ -19,9 +19,9 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'dart:core';
|
import 'dart:core';
|
||||||
|
|
||||||
import 'package:matrix/src/utils/cached_stream_controller.dart';
|
|
||||||
import 'package:webrtc_interface/webrtc_interface.dart';
|
import 'package:webrtc_interface/webrtc_interface.dart';
|
||||||
|
|
||||||
|
import 'package:matrix/src/utils/cached_stream_controller.dart';
|
||||||
import '../../matrix.dart';
|
import '../../matrix.dart';
|
||||||
|
|
||||||
/// https://github.com/matrix-org/matrix-doc/pull/2746
|
/// https://github.com/matrix-org/matrix-doc/pull/2746
|
||||||
|
|
|
||||||
|
|
@ -19,9 +19,10 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'dart:core';
|
import 'dart:core';
|
||||||
|
|
||||||
|
import 'package:webrtc_interface/webrtc_interface.dart';
|
||||||
|
|
||||||
import 'package:matrix/matrix.dart';
|
import 'package:matrix/matrix.dart';
|
||||||
import 'package:matrix/src/utils/cached_stream_controller.dart';
|
import 'package:matrix/src/utils/cached_stream_controller.dart';
|
||||||
import 'package:webrtc_interface/webrtc_interface.dart';
|
|
||||||
|
|
||||||
/// TODO(@duan): Need to add voice activity detection mechanism
|
/// TODO(@duan): Need to add voice activity detection mechanism
|
||||||
/// const int SPEAKING_THRESHOLD = -60; // dB
|
/// const int SPEAKING_THRESHOLD = -60; // dB
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
import 'dart:core';
|
import 'dart:core';
|
||||||
|
|
||||||
import 'package:matrix/src/utils/cached_stream_controller.dart';
|
|
||||||
import 'package:webrtc_interface/webrtc_interface.dart';
|
|
||||||
import 'package:sdp_transform/sdp_transform.dart' as sdp_transform;
|
import 'package:sdp_transform/sdp_transform.dart' as sdp_transform;
|
||||||
|
import 'package:webrtc_interface/webrtc_interface.dart';
|
||||||
|
|
||||||
|
import 'package:matrix/src/utils/cached_stream_controller.dart';
|
||||||
import '../../matrix.dart';
|
import '../../matrix.dart';
|
||||||
|
|
||||||
/// Delegate WebRTC basic functionality.
|
/// Delegate WebRTC basic functionality.
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,7 @@ dependencies:
|
||||||
fluffybox: ^0.4.3
|
fluffybox: ^0.4.3
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
|
import_sorter: ^4.6.0
|
||||||
dart_code_metrics: ^4.10.1
|
dart_code_metrics: ^4.10.1
|
||||||
pedantic: ^1.11.0
|
pedantic: ^1.11.0
|
||||||
test: ^1.15.7
|
test: ^1.15.7
|
||||||
|
|
|
||||||
|
|
@ -17,9 +17,10 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import 'package:canonical_json/canonical_json.dart';
|
import 'package:canonical_json/canonical_json.dart';
|
||||||
import 'package:matrix/matrix.dart';
|
|
||||||
import 'package:test/test.dart';
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
|
import 'package:matrix/matrix.dart';
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
/// All Tests related to the ChatTime
|
/// All Tests related to the ChatTime
|
||||||
group('Canonical Json', () {
|
group('Canonical Json', () {
|
||||||
|
|
|
||||||
|
|
@ -20,12 +20,11 @@ import 'dart:async';
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
import 'dart:typed_data';
|
import 'dart:typed_data';
|
||||||
|
|
||||||
import 'package:matrix/matrix.dart';
|
import 'package:canonical_json/canonical_json.dart';
|
||||||
|
|
||||||
import 'package:olm/olm.dart' as olm;
|
import 'package:olm/olm.dart' as olm;
|
||||||
import 'package:test/test.dart';
|
import 'package:test/test.dart';
|
||||||
import 'package:canonical_json/canonical_json.dart';
|
|
||||||
|
|
||||||
|
import 'package:matrix/matrix.dart';
|
||||||
import 'fake_client.dart';
|
import 'fake_client.dart';
|
||||||
import 'fake_database.dart';
|
import 'fake_database.dart';
|
||||||
import 'fake_matrix_api.dart';
|
import 'fake_matrix_api.dart';
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,9 @@
|
||||||
|
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
|
|
||||||
import 'package:test/test.dart';
|
|
||||||
import 'package:olm/olm.dart' as olm;
|
import 'package:olm/olm.dart' as olm;
|
||||||
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
import 'package:matrix/matrix.dart';
|
import 'package:matrix/matrix.dart';
|
||||||
import 'fake_client.dart';
|
import 'fake_client.dart';
|
||||||
import 'fake_matrix_api.dart';
|
import 'fake_matrix_api.dart';
|
||||||
|
|
|
||||||
|
|
@ -15,14 +15,15 @@
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import 'dart:async';
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
import 'dart:typed_data';
|
import 'dart:typed_data';
|
||||||
import 'dart:async';
|
|
||||||
|
import 'package:olm/olm.dart' as olm;
|
||||||
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
import 'package:matrix/matrix.dart';
|
import 'package:matrix/matrix.dart';
|
||||||
import 'package:test/test.dart';
|
|
||||||
import 'package:olm/olm.dart' as olm;
|
|
||||||
|
|
||||||
import 'fake_database.dart';
|
import 'fake_database.dart';
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
|
|
|
||||||
|
|
@ -18,11 +18,10 @@
|
||||||
|
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
|
|
||||||
import 'package:matrix/matrix.dart';
|
|
||||||
|
|
||||||
import 'package:test/test.dart';
|
|
||||||
import 'package:olm/olm.dart' as olm;
|
import 'package:olm/olm.dart' as olm;
|
||||||
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
|
import 'package:matrix/matrix.dart';
|
||||||
import './fake_client.dart';
|
import './fake_client.dart';
|
||||||
import './fake_matrix_api.dart';
|
import './fake_matrix_api.dart';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,12 +19,11 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
|
|
||||||
import 'package:matrix/matrix.dart';
|
|
||||||
import 'package:matrix/encryption.dart';
|
|
||||||
|
|
||||||
import 'package:test/test.dart';
|
|
||||||
import 'package:olm/olm.dart' as olm;
|
import 'package:olm/olm.dart' as olm;
|
||||||
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
|
import 'package:matrix/encryption.dart';
|
||||||
|
import 'package:matrix/matrix.dart';
|
||||||
import '../fake_client.dart';
|
import '../fake_client.dart';
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
|
|
|
||||||
|
|
@ -18,11 +18,10 @@
|
||||||
|
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
|
|
||||||
import 'package:matrix/matrix.dart';
|
|
||||||
|
|
||||||
import 'package:test/test.dart';
|
|
||||||
import 'package:olm/olm.dart' as olm;
|
import 'package:olm/olm.dart' as olm;
|
||||||
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
|
import 'package:matrix/matrix.dart';
|
||||||
import '../fake_client.dart';
|
import '../fake_client.dart';
|
||||||
import '../fake_matrix_api.dart';
|
import '../fake_matrix_api.dart';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,11 +16,10 @@
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import 'package:matrix/matrix.dart';
|
|
||||||
|
|
||||||
import 'package:test/test.dart';
|
|
||||||
import 'package:olm/olm.dart' as olm;
|
import 'package:olm/olm.dart' as olm;
|
||||||
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
|
import 'package:matrix/matrix.dart';
|
||||||
import '../fake_client.dart';
|
import '../fake_client.dart';
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
|
|
|
||||||
|
|
@ -16,11 +16,10 @@
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import 'package:matrix/matrix.dart';
|
|
||||||
|
|
||||||
import 'package:test/test.dart';
|
|
||||||
import 'package:olm/olm.dart' as olm;
|
import 'package:olm/olm.dart' as olm;
|
||||||
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
|
import 'package:matrix/matrix.dart';
|
||||||
import '../fake_client.dart';
|
import '../fake_client.dart';
|
||||||
import '../fake_database.dart';
|
import '../fake_database.dart';
|
||||||
import '../fake_matrix_api.dart';
|
import '../fake_matrix_api.dart';
|
||||||
|
|
|
||||||
|
|
@ -18,11 +18,10 @@
|
||||||
|
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
|
|
||||||
import 'package:matrix/matrix.dart';
|
|
||||||
|
|
||||||
import 'package:test/test.dart';
|
|
||||||
import 'package:olm/olm.dart' as olm;
|
import 'package:olm/olm.dart' as olm;
|
||||||
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
|
import 'package:matrix/matrix.dart';
|
||||||
import '../fake_client.dart';
|
import '../fake_client.dart';
|
||||||
import '../fake_matrix_api.dart';
|
import '../fake_matrix_api.dart';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,11 +17,11 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
import 'package:matrix/matrix.dart';
|
|
||||||
|
|
||||||
import 'package:test/test.dart';
|
|
||||||
import 'package:olm/olm.dart' as olm;
|
import 'package:olm/olm.dart' as olm;
|
||||||
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
|
import 'package:matrix/matrix.dart';
|
||||||
import '../fake_client.dart';
|
import '../fake_client.dart';
|
||||||
import '../fake_matrix_api.dart';
|
import '../fake_matrix_api.dart';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,12 +19,11 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
|
|
||||||
import 'package:matrix/matrix.dart';
|
|
||||||
import 'package:matrix/encryption.dart';
|
|
||||||
|
|
||||||
import 'package:test/test.dart';
|
|
||||||
import 'package:olm/olm.dart' as olm;
|
import 'package:olm/olm.dart' as olm;
|
||||||
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
|
import 'package:matrix/encryption.dart';
|
||||||
|
import 'package:matrix/matrix.dart';
|
||||||
import '../fake_client.dart';
|
import '../fake_client.dart';
|
||||||
import '../fake_database.dart';
|
import '../fake_database.dart';
|
||||||
import '../fake_matrix_api.dart';
|
import '../fake_matrix_api.dart';
|
||||||
|
|
|
||||||
|
|
@ -17,12 +17,12 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
import 'package:matrix/matrix.dart';
|
|
||||||
|
|
||||||
import 'package:test/test.dart';
|
|
||||||
import 'package:olm/olm.dart' as olm;
|
import 'package:olm/olm.dart' as olm;
|
||||||
import 'package:matrix/encryption/utils/json_signature_check_extension.dart';
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
|
import 'package:matrix/encryption/utils/json_signature_check_extension.dart';
|
||||||
|
import 'package:matrix/matrix.dart';
|
||||||
import '../fake_client.dart';
|
import '../fake_client.dart';
|
||||||
import '../fake_matrix_api.dart';
|
import '../fake_matrix_api.dart';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,11 +18,10 @@
|
||||||
|
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
|
|
||||||
import 'package:matrix/matrix.dart';
|
|
||||||
|
|
||||||
import 'package:test/test.dart';
|
|
||||||
import 'package:olm/olm.dart' as olm;
|
import 'package:olm/olm.dart' as olm;
|
||||||
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
|
import 'package:matrix/matrix.dart';
|
||||||
import '../fake_client.dart';
|
import '../fake_client.dart';
|
||||||
import '../fake_matrix_api.dart';
|
import '../fake_matrix_api.dart';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,16 +16,15 @@
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import 'dart:typed_data';
|
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
import 'dart:math';
|
import 'dart:math';
|
||||||
|
import 'dart:typed_data';
|
||||||
|
|
||||||
import 'package:matrix/matrix.dart';
|
|
||||||
import 'package:matrix/encryption.dart';
|
|
||||||
|
|
||||||
import 'package:test/test.dart';
|
|
||||||
import 'package:olm/olm.dart' as olm;
|
import 'package:olm/olm.dart' as olm;
|
||||||
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
|
import 'package:matrix/encryption.dart';
|
||||||
|
import 'package:matrix/matrix.dart';
|
||||||
import '../fake_client.dart';
|
import '../fake_client.dart';
|
||||||
import '../fake_matrix_api.dart';
|
import '../fake_matrix_api.dart';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,9 +18,10 @@
|
||||||
|
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
|
|
||||||
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
import 'package:matrix/encryption/utils/base64_unpadded.dart';
|
import 'package:matrix/encryption/utils/base64_unpadded.dart';
|
||||||
import 'package:matrix/matrix.dart';
|
import 'package:matrix/matrix.dart';
|
||||||
import 'package:test/test.dart';
|
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
group('Utils', () {
|
group('Utils', () {
|
||||||
|
|
|
||||||
|
|
@ -19,12 +19,12 @@
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
import 'dart:typed_data';
|
import 'dart:typed_data';
|
||||||
|
|
||||||
import 'package:matrix/encryption.dart';
|
|
||||||
import 'package:matrix/matrix.dart';
|
|
||||||
import 'package:matrix/src/models/timeline_chunk.dart';
|
|
||||||
import 'package:olm/olm.dart' as olm;
|
import 'package:olm/olm.dart' as olm;
|
||||||
import 'package:test/test.dart';
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
|
import 'package:matrix/encryption.dart';
|
||||||
|
import 'package:matrix/matrix.dart';
|
||||||
|
import 'package:matrix/src/models/timeline_chunk.dart';
|
||||||
import 'fake_client.dart';
|
import 'fake_client.dart';
|
||||||
import 'fake_matrix_api.dart';
|
import 'fake_matrix_api.dart';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,9 +17,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import 'package:matrix/matrix.dart';
|
import 'package:matrix/matrix.dart';
|
||||||
|
|
||||||
import 'fake_matrix_api.dart';
|
|
||||||
import 'fake_database.dart';
|
import 'fake_database.dart';
|
||||||
|
import 'fake_matrix_api.dart';
|
||||||
|
|
||||||
const ssssPassphrase = 'nae7ahDiequ7ohniufah3ieS2je1thohX4xeeka7aixohsho9O';
|
const ssssPassphrase = 'nae7ahDiequ7ohniufah3ieS2je1thohX4xeeka7aixohsho9O';
|
||||||
const ssssKey = 'EsT9 RzbW VhPW yqNp cC7j ViiW 5TZB LuY4 ryyv 9guN Ysmr WDPH';
|
const ssssKey = 'EsT9 RzbW VhPW yqNp cC7j ViiW 5TZB LuY4 ryyv 9guN Ysmr WDPH';
|
||||||
|
|
|
||||||
|
|
@ -19,10 +19,11 @@
|
||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
import 'dart:math';
|
import 'dart:math';
|
||||||
|
|
||||||
import 'package:matrix/matrix.dart';
|
|
||||||
import 'package:file/memory.dart';
|
import 'package:file/memory.dart';
|
||||||
import 'package:hive/hive.dart';
|
import 'package:hive/hive.dart';
|
||||||
|
|
||||||
|
import 'package:matrix/matrix.dart';
|
||||||
|
|
||||||
Future<DatabaseApi> getDatabase(Client? _) => getHiveCollectionsDatabase(_);
|
Future<DatabaseApi> getDatabase(Client? _) => getHiveCollectionsDatabase(_);
|
||||||
|
|
||||||
bool hiveInitialized = false;
|
bool hiveInitialized = false;
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ import 'dart:core';
|
||||||
import 'dart:math';
|
import 'dart:math';
|
||||||
|
|
||||||
import 'package:http/http.dart';
|
import 'package:http/http.dart';
|
||||||
|
|
||||||
import 'package:matrix/matrix.dart' as sdk;
|
import 'package:matrix/matrix.dart' as sdk;
|
||||||
import 'package:matrix/matrix.dart';
|
import 'package:matrix/matrix.dart';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,9 +16,10 @@
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import 'package:matrix/src/utils/html_to_text.dart';
|
|
||||||
import 'package:test/test.dart';
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
|
import 'package:matrix/src/utils/html_to_text.dart';
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
group('htmlToText', () {
|
group('htmlToText', () {
|
||||||
final testMap = <String, String>{
|
final testMap = <String, String>{
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import 'package:test/test.dart';
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
import 'package:matrix/matrix.dart';
|
import 'package:matrix/matrix.dart';
|
||||||
import 'fake_client.dart';
|
import 'fake_client.dart';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,9 +16,10 @@
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import 'package:matrix/src/utils/markdown.dart';
|
|
||||||
import 'package:test/test.dart';
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
|
import 'package:matrix/src/utils/markdown.dart';
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
group('markdown', () {
|
group('markdown', () {
|
||||||
final emotePacks = {
|
final emotePacks = {
|
||||||
|
|
|
||||||
|
|
@ -16,9 +16,10 @@
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import 'package:matrix/src/utils/map_copy_extension.dart';
|
|
||||||
import 'package:test/test.dart';
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
|
import 'package:matrix/src/utils/map_copy_extension.dart';
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
group('Map-copy-extension', () {
|
group('Map-copy-extension', () {
|
||||||
test('it should work', () {
|
test('it should work', () {
|
||||||
|
|
|
||||||
|
|
@ -17,9 +17,9 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import 'package:matrix/matrix.dart';
|
|
||||||
|
|
||||||
import 'package:test/test.dart';
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
|
import 'package:matrix/matrix.dart';
|
||||||
import 'fake_database.dart';
|
import 'fake_database.dart';
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
|
|
|
||||||
|
|
@ -15,11 +15,12 @@
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
import 'package:matrix/matrix.dart';
|
|
||||||
import 'package:http/http.dart';
|
|
||||||
|
|
||||||
|
import 'package:http/http.dart';
|
||||||
import 'package:test/test.dart';
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
|
import 'package:matrix/matrix.dart';
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
/// All Tests related to device keys
|
/// All Tests related to device keys
|
||||||
group('Matrix Exception', () {
|
group('Matrix Exception', () {
|
||||||
|
|
|
||||||
|
|
@ -18,11 +18,11 @@
|
||||||
|
|
||||||
import 'dart:typed_data';
|
import 'dart:typed_data';
|
||||||
|
|
||||||
import 'package:matrix/matrix.dart';
|
|
||||||
|
|
||||||
import 'package:test/test.dart';
|
|
||||||
import 'package:olm/olm.dart' as olm;
|
|
||||||
import 'package:http/http.dart' as http;
|
import 'package:http/http.dart' as http;
|
||||||
|
import 'package:olm/olm.dart' as olm;
|
||||||
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
|
import 'package:matrix/matrix.dart';
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
/// All Tests related to device keys
|
/// All Tests related to device keys
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import 'package:test/test.dart';
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
import 'package:matrix/src/utils/matrix_id_string_extension.dart';
|
import 'package:matrix/src/utils/matrix_id_string_extension.dart';
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
|
|
|
||||||
|
|
@ -15,9 +15,11 @@
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
import 'package:matrix/matrix.dart';
|
|
||||||
import 'package:test/test.dart';
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
|
import 'package:matrix/matrix.dart';
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
/// All Tests related to device keys
|
/// All Tests related to device keys
|
||||||
group('Matrix Localizations', () {
|
group('Matrix Localizations', () {
|
||||||
|
|
|
||||||
|
|
@ -16,9 +16,10 @@
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import 'package:matrix/src/utils/multilock.dart';
|
|
||||||
import 'package:test/test.dart';
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
|
import 'package:matrix/src/utils/multilock.dart';
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
group('lock', () {
|
group('lock', () {
|
||||||
final lock = MultiLock<String>();
|
final lock = MultiLock<String>();
|
||||||
|
|
|
||||||
|
|
@ -16,10 +16,9 @@
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import 'package:matrix/matrix.dart';
|
|
||||||
|
|
||||||
import 'package:test/test.dart';
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
|
import 'package:matrix/matrix.dart';
|
||||||
import 'fake_matrix_api.dart';
|
import 'fake_matrix_api.dart';
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,9 @@
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
|
|
||||||
import 'package:matrix/matrix.dart';
|
|
||||||
import 'package:test/test.dart';
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
|
import 'package:matrix/matrix.dart';
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
group('Push Notification', () {
|
group('Push Notification', () {
|
||||||
Logs().level = Level.error;
|
Logs().level = Level.error;
|
||||||
|
|
|
||||||
|
|
@ -19,10 +19,9 @@
|
||||||
import 'dart:convert';
|
import 'dart:convert';
|
||||||
import 'dart:typed_data';
|
import 'dart:typed_data';
|
||||||
|
|
||||||
import 'package:matrix/matrix.dart';
|
|
||||||
|
|
||||||
import 'package:test/test.dart';
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
|
import 'package:matrix/matrix.dart';
|
||||||
import 'fake_client.dart';
|
import 'fake_client.dart';
|
||||||
import 'fake_matrix_api.dart';
|
import 'fake_matrix_api.dart';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,10 +16,10 @@
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import 'package:matrix/matrix.dart';
|
|
||||||
|
|
||||||
import 'package:test/test.dart';
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
|
import 'package:matrix/matrix.dart';
|
||||||
|
|
||||||
const updates = {
|
const updates = {
|
||||||
'empty': {
|
'empty': {
|
||||||
'next_batch': 'blah',
|
'next_batch': 'blah',
|
||||||
|
|
|
||||||
|
|
@ -18,11 +18,11 @@
|
||||||
|
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
|
|
||||||
|
import 'package:olm/olm.dart' as olm;
|
||||||
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
import 'package:matrix/matrix.dart';
|
import 'package:matrix/matrix.dart';
|
||||||
import 'package:matrix/src/models/timeline_chunk.dart';
|
import 'package:matrix/src/models/timeline_chunk.dart';
|
||||||
|
|
||||||
import 'package:test/test.dart';
|
|
||||||
import 'package:olm/olm.dart' as olm;
|
|
||||||
import 'fake_client.dart';
|
import 'fake_client.dart';
|
||||||
import 'fake_matrix_api.dart';
|
import 'fake_matrix_api.dart';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,11 +19,11 @@
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'dart:math';
|
import 'dart:math';
|
||||||
|
|
||||||
|
import 'package:olm/olm.dart' as olm;
|
||||||
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
import 'package:matrix/matrix.dart';
|
import 'package:matrix/matrix.dart';
|
||||||
import 'package:matrix/src/models/timeline_chunk.dart';
|
import 'package:matrix/src/models/timeline_chunk.dart';
|
||||||
|
|
||||||
import 'package:test/test.dart';
|
|
||||||
import 'package:olm/olm.dart' as olm;
|
|
||||||
import 'fake_client.dart';
|
import 'fake_client.dart';
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
|
|
|
||||||
|
|
@ -18,10 +18,10 @@
|
||||||
|
|
||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
|
|
||||||
import 'package:matrix/matrix.dart';
|
|
||||||
|
|
||||||
import 'package:test/test.dart';
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
|
import 'package:matrix/matrix.dart';
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
group('UIA', () {
|
group('UIA', () {
|
||||||
Logs().level = Level.error;
|
Logs().level = Level.error;
|
||||||
|
|
|
||||||
|
|
@ -16,10 +16,9 @@
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import 'package:matrix/matrix.dart';
|
|
||||||
|
|
||||||
import 'package:test/test.dart';
|
import 'package:test/test.dart';
|
||||||
|
|
||||||
|
import 'package:matrix/matrix.dart';
|
||||||
import 'fake_matrix_api.dart';
|
import 'fake_matrix_api.dart';
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
|
|
|
||||||
|
|
@ -15,11 +15,13 @@
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import 'package:hive/hive.dart';
|
import 'package:hive/hive.dart';
|
||||||
|
import 'package:olm/olm.dart' as olm;
|
||||||
|
|
||||||
import 'package:matrix/matrix.dart';
|
import 'package:matrix/matrix.dart';
|
||||||
import '../test/fake_database.dart';
|
import '../test/fake_database.dart';
|
||||||
import 'test_config.dart';
|
import 'test_config.dart';
|
||||||
import 'package:olm/olm.dart' as olm;
|
|
||||||
|
|
||||||
void main() => test();
|
void main() => test();
|
||||||
const String testMessage = 'Hello world';
|
const String testMessage = 'Hello world';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue