chore: Rename to matrix

This commit is contained in:
Christian Pauly 2021-06-17 11:25:19 +02:00
parent 38d81d6093
commit c0c7f68bf3
74 changed files with 130 additions and 130 deletions

View File

@ -1,3 +1,3 @@
## [0.1.0] - 14 May 2021 ## [0.1.0] - 17 Jun 2021
First stable version First stable version

View File

@ -1,6 +1,6 @@
# Famedly Matrix SDK # Matrix SDK
Matrix SDK for the famedly talk app written in dart. Matrix (matrix.org) SDK written in dart.
## Native libraries ## Native libraries
@ -10,22 +10,16 @@ Additionally, OpenSSL (libcrypto) must be provided on native platforms for E2EE.
For flutter apps you can easily import it with the [flutter_olm](https://pub.dev/packages/flutter_olm) and the [flutter_openssl_crypto](https://pub.dev/packages/flutter_openssl_crypto) packages. For flutter apps you can easily import it with the [flutter_olm](https://pub.dev/packages/flutter_olm) and the [flutter_openssl_crypto](https://pub.dev/packages/flutter_openssl_crypto) packages.
## API
The API is documented here: [famedly.gitlab.io/famedlysdk/](https://famedly.gitlab.io/famedlysdk/)
## How to use this ## How to use this
1. Import the sdk 1. Import the sdk
```yaml ```yaml
famedlysdk: matrix:
git:
url: https://gitlab.com/famedly/famedlysdk.git
``` ```
```dart ```dart
import 'package:famedlysdk/famedlysdk.dart'; import 'package:matrix/matrix.dart';
``` ```
2. Create a new client: 2. Create a new client:

View File

@ -1,4 +1,4 @@
import 'package:famedlysdk/famedlysdk.dart'; import 'package:matrix/matrix.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';

View File

@ -21,7 +21,7 @@ import 'dart:typed_data';
import 'package:olm/olm.dart' as olm; import 'package:olm/olm.dart' as olm;
import '../famedlysdk.dart'; import '../matrix.dart';
import 'encryption.dart'; import 'encryption.dart';
import 'ssss.dart'; import 'ssss.dart';

View File

@ -22,7 +22,7 @@ import 'dart:async';
import 'package:pedantic/pedantic.dart'; import 'package:pedantic/pedantic.dart';
import 'package:olm/olm.dart' as olm; import 'package:olm/olm.dart' as olm;
import '../famedlysdk.dart'; import '../matrix.dart';
import '../src/utils/run_in_root.dart'; import '../src/utils/run_in_root.dart';
import 'cross_signing.dart'; import 'cross_signing.dart';
import 'key_manager.dart'; import 'key_manager.dart';

View File

@ -18,13 +18,13 @@
import 'dart:convert'; import 'dart:convert';
import 'package:famedlysdk/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 'package:olm/olm.dart' as olm;
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 '../famedlysdk.dart'; import '../matrix.dart';
import '../src/utils/run_in_background.dart'; import '../src/utils/run_in_background.dart';
import '../src/utils/run_in_root.dart'; import '../src/utils/run_in_root.dart';

View File

@ -16,7 +16,7 @@
* 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 '../famedlysdk.dart'; import '../matrix.dart';
import 'encryption.dart'; import 'encryption.dart';
import 'utils/key_verification.dart'; import 'utils/key_verification.dart';

View File

@ -19,7 +19,7 @@
import 'dart:convert'; import 'dart:convert';
import 'package:canonical_json/canonical_json.dart'; import 'package:canonical_json/canonical_json.dart';
import 'package:famedlysdk/famedlysdk.dart'; import 'package:matrix/matrix.dart';
import 'package:olm/olm.dart' as olm; import 'package:olm/olm.dart' as olm;
import 'package:pedantic/pedantic.dart'; import 'package:pedantic/pedantic.dart';

View File

@ -24,7 +24,7 @@ import 'dart:async';
import 'package:base58check/base58.dart'; import 'package:base58check/base58.dart';
import 'package:crypto/crypto.dart'; import 'package:crypto/crypto.dart';
import '../famedlysdk.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_background.dart'; import '../src/utils/run_in_background.dart';
import '../src/utils/run_in_root.dart'; import '../src/utils/run_in_root.dart';

View File

@ -25,7 +25,7 @@ import 'package:olm/olm.dart' as olm;
import '../encryption.dart'; import '../encryption.dart';
import '../ssss.dart'; import '../ssss.dart';
import '../key_manager.dart'; import '../key_manager.dart';
import '../../famedlysdk.dart'; import '../../matrix.dart';
enum BootstrapState { enum BootstrapState {
/// Is loading. /// Is loading.

View File

@ -19,7 +19,7 @@
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 '../../famedlysdk.dart'; import '../../matrix.dart';
extension JsonSignatureCheckExtension on Map<String, dynamic> { extension JsonSignatureCheckExtension on Map<String, dynamic> {
/// Checks the signature of a signed json object. /// Checks the signature of a signed json object.

View File

@ -23,7 +23,7 @@ import 'package:canonical_json/canonical_json.dart';
import 'package:olm/olm.dart' as olm; import 'package:olm/olm.dart' as olm;
import 'package:pedantic/pedantic.dart'; import 'package:pedantic/pedantic.dart';
import '../../famedlysdk.dart'; import '../../matrix.dart';
import '../encryption.dart'; import '../encryption.dart';
/* /*

View File

@ -18,7 +18,7 @@
import 'package:olm/olm.dart' as olm; import 'package:olm/olm.dart' as olm;
import '../../famedlysdk.dart'; import '../../matrix.dart';
class OlmSession { class OlmSession {
String identityKey; String identityKey;

View File

@ -20,7 +20,7 @@ import 'dart:convert';
import 'package:olm/olm.dart' as olm; import 'package:olm/olm.dart' as olm;
import '../../famedlysdk.dart'; import '../../matrix.dart';
class OutboundGroupSession { class OutboundGroupSession {
/// The devices is a map from user id to device id to if the device is blocked. /// The devices is a map from user id to device id to if the device is blocked.

View File

@ -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:famedlysdk/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 'package:olm/olm.dart' as olm;
import '../../famedlysdk.dart'; import '../../matrix.dart';
class SessionKey { class SessionKey {
/// The raw json content of the key /// The raw json content of the key

View File

@ -17,7 +17,7 @@
*/ */
/// Matrix SDK written in pure Dart. /// Matrix SDK written in pure Dart.
library famedlysdk; library matrix;
export 'package:matrix_api_lite/matrix_api_lite.dart'; export 'package:matrix_api_lite/matrix_api_lite.dart';
export 'src/utils/room_update.dart'; export 'src/utils/room_update.dart';

View File

@ -21,13 +21,13 @@ import 'dart:convert';
import 'dart:core'; import 'dart:core';
import 'dart:typed_data'; import 'dart:typed_data';
import 'package:famedlysdk/src/utils/run_in_root.dart'; import 'package:matrix/src/utils/run_in_root.dart';
import 'package:http/http.dart' as http; import 'package:http/http.dart' as http;
import 'package:olm/olm.dart' as olm; import 'package:olm/olm.dart' as olm;
import 'package:pedantic/pedantic.dart'; import 'package:pedantic/pedantic.dart';
import '../encryption.dart'; import '../encryption.dart';
import '../famedlysdk.dart'; import '../matrix.dart';
import 'database/database_api.dart'; import 'database/database_api.dart';
import 'event.dart'; import 'event.dart';
import 'room.dart'; import 'room.dart';

View File

@ -19,14 +19,14 @@
import 'dart:async'; import 'dart:async';
import 'dart:convert'; import 'dart:convert';
import 'package:famedlysdk/encryption/utils/olm_session.dart'; import 'package:matrix/encryption/utils/olm_session.dart';
import 'package:famedlysdk/encryption/utils/outbound_group_session.dart'; import 'package:matrix/encryption/utils/outbound_group_session.dart';
import 'package:famedlysdk/encryption/utils/ssss_cache.dart'; import 'package:matrix/encryption/utils/ssss_cache.dart';
import 'package:famedlysdk/encryption/utils/stored_inbound_group_session.dart'; import 'package:matrix/encryption/utils/stored_inbound_group_session.dart';
import 'package:famedlysdk/src/utils/QueuedToDeviceEvent.dart'; import 'package:matrix/src/utils/QueuedToDeviceEvent.dart';
import 'package:moor/moor.dart'; import 'package:moor/moor.dart';
import '../../famedlysdk.dart' as sdk; import '../../matrix.dart' as sdk;
import 'package:matrix_api_lite/matrix_api_lite.dart' as api; import 'package:matrix_api_lite/matrix_api_lite.dart' as api;
import '../client.dart'; import '../client.dart';
import '../room.dart'; import '../room.dart';

View File

@ -18,13 +18,13 @@
import 'dart:typed_data'; import 'dart:typed_data';
import 'package:famedlysdk/encryption/utils/olm_session.dart'; import 'package:matrix/encryption/utils/olm_session.dart';
import 'package:famedlysdk/encryption/utils/outbound_group_session.dart'; import 'package:matrix/encryption/utils/outbound_group_session.dart';
import 'package:famedlysdk/encryption/utils/ssss_cache.dart'; import 'package:matrix/encryption/utils/ssss_cache.dart';
import 'package:famedlysdk/encryption/utils/stored_inbound_group_session.dart'; import 'package:matrix/encryption/utils/stored_inbound_group_session.dart';
import 'package:famedlysdk/src/utils/QueuedToDeviceEvent.dart'; import 'package:matrix/src/utils/QueuedToDeviceEvent.dart';
import '../../famedlysdk.dart'; import '../../matrix.dart';
abstract class DatabaseApi { abstract class DatabaseApi {
int get maxFileSize => 1 * 1024 * 1024; int get maxFileSize => 1 * 1024 * 1024;

View File

@ -2,14 +2,14 @@ import 'dart:async';
import 'dart:convert'; import 'dart:convert';
import 'dart:math'; import 'dart:math';
import 'package:famedlysdk/encryption/utils/stored_inbound_group_session.dart'; import 'package:matrix/encryption/utils/stored_inbound_group_session.dart';
import 'package:famedlysdk/encryption/utils/ssss_cache.dart'; import 'package:matrix/encryption/utils/ssss_cache.dart';
import 'package:famedlysdk/encryption/utils/outbound_group_session.dart'; import 'package:matrix/encryption/utils/outbound_group_session.dart';
import 'package:famedlysdk/encryption/utils/olm_session.dart'; import 'package:matrix/encryption/utils/olm_session.dart';
import 'dart:typed_data'; import 'dart:typed_data';
import 'package:famedlysdk/famedlysdk.dart'; import 'package:matrix/matrix.dart';
import 'package:famedlysdk/src/utils/QueuedToDeviceEvent.dart'; import 'package:matrix/src/utils/QueuedToDeviceEvent.dart';
import 'package:hive/hive.dart'; import 'package:hive/hive.dart';
/// This is a basic database for the Matrix SDK using the hive store. You need /// This is a basic database for the Matrix SDK using the hive store. You need

View File

@ -21,7 +21,7 @@ import 'dart:typed_data';
import 'package:http/http.dart' as http; import 'package:http/http.dart' as http;
import '../famedlysdk.dart'; import '../matrix.dart';
import 'room.dart'; import 'room.dart';
import 'utils/matrix_localizations.dart'; import 'utils/matrix_localizations.dart';
import 'utils/receipt.dart'; import 'utils/receipt.dart';

View File

@ -19,10 +19,10 @@
import 'dart:async'; import 'dart:async';
import 'dart:convert'; import 'dart:convert';
import 'package:famedlysdk/src/utils/space_child.dart'; import 'package:matrix/src/utils/space_child.dart';
import 'package:html_unescape/html_unescape.dart'; import 'package:html_unescape/html_unescape.dart';
import '../famedlysdk.dart'; import '../matrix.dart';
import 'client.dart'; import 'client.dart';
import 'event.dart'; import 'event.dart';
import 'timeline.dart'; import 'timeline.dart';

View File

@ -18,7 +18,7 @@
import 'dart:async'; import 'dart:async';
import '../famedlysdk.dart'; import '../matrix.dart';
import 'event.dart'; import 'event.dart';
import 'room.dart'; import 'room.dart';
import 'utils/event_update.dart'; import 'utils/event_update.dart';

View File

@ -16,7 +16,7 @@
* 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 '../famedlysdk.dart'; import '../matrix.dart';
import 'event.dart'; import 'event.dart';
import 'room.dart'; import 'room.dart';

View File

@ -18,7 +18,7 @@
import 'dart:async'; import 'dart:async';
import '../../famedlysdk.dart'; import '../../matrix.dart';
extension CommandsClientExtension on Client { extension CommandsClientExtension on Client {
/// Add a command to the command handler. `command` is its name, and `callback` is the /// Add a command to the command handler. `command` is its name, and `callback` is the

View File

@ -19,7 +19,7 @@
import 'dart:convert'; import 'dart:convert';
import 'package:canonical_json/canonical_json.dart'; import 'package:canonical_json/canonical_json.dart';
import 'package:famedlysdk/famedlysdk.dart'; import 'package:matrix/matrix.dart';
import 'package:olm/olm.dart' as olm; import 'package:olm/olm.dart' as olm;
import '../../encryption.dart'; import '../../encryption.dart';

View File

@ -17,7 +17,7 @@
*/ */
import '../../encryption.dart'; import '../../encryption.dart';
import '../../famedlysdk.dart'; import '../../matrix.dart';
import '../event.dart'; import '../event.dart';
import '../room.dart'; import '../room.dart';
import 'matrix_localizations.dart'; import 'matrix_localizations.dart';

View File

@ -16,7 +16,7 @@
* 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 '../../famedlysdk.dart'; import '../../matrix.dart';
enum EventUpdateType { enum EventUpdateType {
timeline, timeline,

View File

@ -23,7 +23,7 @@ import 'dart:typed_data';
import 'crypto/encrypted_file.dart'; import 'crypto/encrypted_file.dart';
import 'package:mime/mime.dart'; import 'package:mime/mime.dart';
import '../../famedlysdk.dart'; import '../../matrix.dart';
class MatrixFile { class MatrixFile {
Uint8List bytes; Uint8List bytes;

View File

@ -16,7 +16,7 @@
* 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 '../../famedlysdk.dart'; import '../../matrix.dart';
/// Represents a new room or an update for an /// Represents a new room or an update for an
/// already known room. /// already known room.

View File

@ -16,7 +16,7 @@
* 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:famedlysdk/famedlysdk.dart'; import 'package:matrix/matrix.dart';
import 'package:isolate/isolate.dart'; import 'package:isolate/isolate.dart';
import 'dart:async'; import 'dart:async';

View File

@ -18,7 +18,7 @@
import 'dart:async'; import 'dart:async';
import '../../famedlysdk.dart'; import '../../matrix.dart';
Future<T> runInRoot<T>(FutureOr<T> Function() fn) async { Future<T> runInRoot<T>(FutureOr<T> Function() fn) async {
return await Zone.root.run(() async { return await Zone.root.run(() async {

View File

@ -16,7 +16,7 @@
* 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 '../../famedlysdk.dart'; import '../../matrix.dart';
/// This extension adds easy-to-use filters for the sync update, meant to be used on the `client.onSync` stream, e.g. /// This extension adds easy-to-use filters for the sync update, meant to be used on the `client.onSync` stream, e.g.
/// `client.onSync.stream.where((s) => s.hasRoomUpdate)`. Multiple filters can easily be /// `client.onSync.stream.where((s) => s.hasRoomUpdate)`. Multiple filters can easily be

View File

@ -16,7 +16,7 @@
* 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 '../../famedlysdk.dart'; import '../../matrix.dart';
class ToDeviceEvent extends BasicEventWithSender { class ToDeviceEvent extends BasicEventWithSender {
Map<String, dynamic> encryptedContent; Map<String, dynamic> encryptedContent;

View File

@ -16,7 +16,7 @@
* 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 '../../famedlysdk.dart'; import '../../matrix.dart';
enum UiaRequestState { enum UiaRequestState {
/// The request is done /// The request is done

View File

@ -1,7 +1,6 @@
name: famedlysdk name: matrix
description: Matrix Dart SDK description: Matrix Dart SDK
version: 0.1.0 version: 0.1.0
author: Famedly GmbH <info@famedly.com>
homepage: https://famedly.com homepage: https://famedly.com
environment: environment:
@ -21,12 +20,14 @@ dependencies:
isolate: ^2.0.3 isolate: ^2.0.3
matrix_api_lite: ^0.3.3 matrix_api_lite: ^0.3.3
hive: ^2.0.4 hive: ^2.0.4
pedantic: ^1.11.0
ffi: ^1.0.0
js: ^0.6.3
dev_dependencies: dev_dependencies:
test: ^1.15.7 test: ^1.15.7
coverage: ">=0.15.0 <2.0.0" coverage: ">=0.15.0 <2.0.0"
moor_generator: ^4.0.0 moor_generator: ^4.0.0
build_runner: ^1.11.1 build_runner: ^1.11.1
pedantic: ^1.11.0
file: ^6.1.1 file: ^6.1.1
#flutter_test: {sdk: flutter} #flutter_test: {sdk: flutter}

5
scripts/publish.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh -e
mv docs .docs
flutter pub publish --dry-run
flutter pub publish
mv .docs docs

View File

@ -1,2 +1,2 @@
#!/bin/sh -e #!/bin/sh -e
pub run test_driver/famedlysdk_test.dart -p vm pub run test_driver/matrixsdk_test.dart -p vm

View File

@ -17,7 +17,7 @@
*/ */
import 'package:canonical_json/canonical_json.dart'; import 'package:canonical_json/canonical_json.dart';
import 'package:famedlysdk/famedlysdk.dart'; import 'package:matrix/matrix.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
void main() { void main() {

View File

@ -20,12 +20,12 @@ import 'dart:async';
import 'dart:convert'; import 'dart:convert';
import 'dart:typed_data'; import 'dart:typed_data';
import 'package:famedlysdk/famedlysdk.dart'; import 'package:matrix/matrix.dart';
import 'package:famedlysdk/src/client.dart'; import 'package:matrix/src/client.dart';
import 'package:famedlysdk/src/utils/event_update.dart'; import 'package:matrix/src/utils/event_update.dart';
import 'package:famedlysdk/src/utils/matrix_file.dart'; import 'package:matrix/src/utils/matrix_file.dart';
import 'package:famedlysdk/src/utils/room_update.dart'; import 'package:matrix/src/utils/room_update.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:canonical_json/canonical_json.dart';

View File

@ -19,7 +19,7 @@
import 'dart:convert'; import 'dart:convert';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'package:famedlysdk/famedlysdk.dart'; import 'package:matrix/matrix.dart';
import 'fake_client.dart'; import 'fake_client.dart';
import 'fake_matrix_api.dart'; import 'fake_matrix_api.dart';

View File

@ -17,7 +17,7 @@
*/ */
import 'dart:convert'; import 'dart:convert';
import 'package:famedlysdk/famedlysdk.dart'; import 'package:matrix/matrix.dart';
import 'package:moor/moor.dart'; import 'package:moor/moor.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'package:olm/olm.dart' as olm; import 'package:olm/olm.dart' as olm;

View File

@ -18,7 +18,7 @@
import 'dart:convert'; import 'dart:convert';
import 'package:famedlysdk/famedlysdk.dart'; import 'package:matrix/matrix.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'package:olm/olm.dart' as olm; import 'package:olm/olm.dart' as olm;

View File

@ -19,8 +19,8 @@
import 'dart:async'; import 'dart:async';
import 'dart:convert'; import 'dart:convert';
import 'package:famedlysdk/famedlysdk.dart'; import 'package:matrix/matrix.dart';
import 'package:famedlysdk/encryption.dart'; import 'package:matrix/encryption.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'package:olm/olm.dart' as olm; import 'package:olm/olm.dart' as olm;

View File

@ -18,7 +18,7 @@
import 'dart:convert'; import 'dart:convert';
import 'package:famedlysdk/famedlysdk.dart'; import 'package:matrix/matrix.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'package:olm/olm.dart' as olm; import 'package:olm/olm.dart' as olm;

View File

@ -16,7 +16,7 @@
* 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:famedlysdk/famedlysdk.dart'; import 'package:matrix/matrix.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'package:olm/olm.dart' as olm; import 'package:olm/olm.dart' as olm;

View File

@ -16,7 +16,7 @@
* 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:famedlysdk/famedlysdk.dart'; import 'package:matrix/matrix.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'package:olm/olm.dart' as olm; import 'package:olm/olm.dart' as olm;

View File

@ -18,7 +18,7 @@
import 'dart:convert'; import 'dart:convert';
import 'package:famedlysdk/famedlysdk.dart'; import 'package:matrix/matrix.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'package:olm/olm.dart' as olm; import 'package:olm/olm.dart' as olm;

View File

@ -17,7 +17,7 @@
*/ */
import 'dart:convert'; import 'dart:convert';
import 'package:famedlysdk/famedlysdk.dart'; import 'package:matrix/matrix.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'package:olm/olm.dart' as olm; import 'package:olm/olm.dart' as olm;

View File

@ -18,8 +18,8 @@
import 'dart:convert'; import 'dart:convert';
import 'package:famedlysdk/famedlysdk.dart'; import 'package:matrix/matrix.dart';
import 'package:famedlysdk/encryption.dart'; import 'package:matrix/encryption.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'package:olm/olm.dart' as olm; import 'package:olm/olm.dart' as olm;

View File

@ -17,11 +17,11 @@
*/ */
import 'dart:convert'; import 'dart:convert';
import 'package:famedlysdk/famedlysdk.dart'; import 'package:matrix/matrix.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'package:olm/olm.dart' as olm; import 'package:olm/olm.dart' as olm;
import 'package:famedlysdk/encryption/utils/json_signature_check_extension.dart'; import 'package:matrix/encryption/utils/json_signature_check_extension.dart';
import '../fake_client.dart'; import '../fake_client.dart';
import '../fake_matrix_api.dart'; import '../fake_matrix_api.dart';

View File

@ -18,7 +18,7 @@
import 'dart:convert'; import 'dart:convert';
import 'package:famedlysdk/famedlysdk.dart'; import 'package:matrix/matrix.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'package:olm/olm.dart' as olm; import 'package:olm/olm.dart' as olm;

View File

@ -20,8 +20,8 @@ import 'dart:typed_data';
import 'dart:convert'; import 'dart:convert';
import 'dart:math'; import 'dart:math';
import 'package:famedlysdk/famedlysdk.dart'; import 'package:matrix/matrix.dart';
import 'package:famedlysdk/encryption.dart'; import 'package:matrix/encryption.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'package:olm/olm.dart' as olm; import 'package:olm/olm.dart' as olm;

View File

@ -19,9 +19,9 @@
import 'dart:convert'; import 'dart:convert';
import 'dart:typed_data'; import 'dart:typed_data';
import 'package:famedlysdk/famedlysdk.dart'; import 'package:matrix/matrix.dart';
import 'package:famedlysdk/encryption.dart'; import 'package:matrix/encryption.dart';
import 'package:famedlysdk/src/event.dart'; import 'package:matrix/src/event.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'package:olm/olm.dart' as olm; import 'package:olm/olm.dart' as olm;

View File

@ -16,7 +16,7 @@
* 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:famedlysdk/famedlysdk.dart'; import 'package:matrix/matrix.dart';
import 'fake_matrix_api.dart'; import 'fake_matrix_api.dart';
import 'fake_database.dart'; import 'fake_database.dart';

View File

@ -19,8 +19,8 @@
import 'dart:io'; import 'dart:io';
import 'dart:math'; import 'dart:math';
import 'package:famedlysdk/famedlysdk.dart'; import 'package:matrix/matrix.dart';
import 'package:famedlysdk/src/database/hive_database.dart'; import 'package:matrix/src/database/hive_database.dart';
import 'package:file/memory.dart'; import 'package:file/memory.dart';
import 'package:hive/hive.dart'; import 'package:hive/hive.dart';
import 'package:moor/moor.dart'; import 'package:moor/moor.dart';

View File

@ -16,7 +16,7 @@
* 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:famedlysdk/famedlysdk.dart'; import 'package:matrix/matrix.dart';
import 'package:moor/moor.dart'; import 'package:moor/moor.dart';
import 'package:moor/moor_web.dart' as moor; import 'package:moor/moor_web.dart' as moor;

View File

@ -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:famedlysdk/famedlysdk.dart' as sdk; import 'package:matrix/matrix.dart' as sdk;
import 'package:famedlysdk/famedlysdk.dart'; import 'package:matrix/matrix.dart';
import 'dart:convert'; import 'dart:convert';
import 'dart:core'; import 'dart:core';

View File

@ -16,7 +16,7 @@
* 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:famedlysdk/famedlysdk.dart'; import 'package:matrix/matrix.dart';
class FakeMatrixLocalizations extends MatrixLocalizations { class FakeMatrixLocalizations extends MatrixLocalizations {
@override @override

View File

@ -16,7 +16,7 @@
* 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:famedlysdk/src/utils/markdown.dart'; import 'package:matrix/src/utils/markdown.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
void main() { void main() {

View File

@ -16,7 +16,7 @@
* 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:famedlysdk/src/utils/map_copy_extension.dart'; import 'package:matrix/src/utils/map_copy_extension.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
void main() { void main() {

View File

@ -17,7 +17,7 @@
* *
*/ */
import 'package:famedlysdk/famedlysdk.dart'; import 'package:matrix/matrix.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'fake_database.dart'; import 'fake_database.dart';

View File

@ -15,7 +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:famedlysdk/famedlysdk.dart'; import 'package:matrix/matrix.dart';
class MatrixDefaultLocalizations extends MatrixLocalizations { class MatrixDefaultLocalizations extends MatrixLocalizations {
const MatrixDefaultLocalizations(); const MatrixDefaultLocalizations();

View File

@ -15,7 +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:famedlysdk/famedlysdk.dart'; 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';

View File

@ -18,7 +18,7 @@
import 'dart:typed_data'; import 'dart:typed_data';
import 'package:famedlysdk/famedlysdk.dart'; import 'package:matrix/matrix.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'package:olm/olm.dart' as olm; import 'package:olm/olm.dart' as olm;

View File

@ -17,7 +17,7 @@
*/ */
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'package:famedlysdk/src/utils/matrix_id_string_extension.dart'; import 'package:matrix/src/utils/matrix_id_string_extension.dart';
void main() { void main() {
/// All Tests related to the ChatTime /// All Tests related to the ChatTime

View File

@ -15,7 +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:famedlysdk/famedlysdk.dart'; import 'package:matrix/matrix.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'matrix_default_localizations.dart'; import 'matrix_default_localizations.dart';

View File

@ -16,11 +16,11 @@
* 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:famedlysdk/famedlysdk.dart'; import 'package:matrix/matrix.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'package:famedlysdk/src/client.dart'; import 'package:matrix/src/client.dart';
import 'package:famedlysdk/src/utils/uri_extension.dart'; import 'package:matrix/src/utils/uri_extension.dart';
import 'fake_matrix_api.dart'; import 'fake_matrix_api.dart';

View File

@ -19,14 +19,14 @@
import 'dart:convert'; import 'dart:convert';
import 'dart:typed_data'; import 'dart:typed_data';
import 'package:famedlysdk/famedlysdk.dart'; import 'package:matrix/matrix.dart';
import 'package:famedlysdk/src/client.dart'; import 'package:matrix/src/client.dart';
import 'package:famedlysdk/src/database/database.dart' import 'package:matrix/src/database/database.dart'
show DbRoom, DbRoomAccountData, DbRoomState, getRoomFromTableRow; show DbRoom, DbRoomAccountData, DbRoomState, getRoomFromTableRow;
import 'package:famedlysdk/src/event.dart'; import 'package:matrix/src/event.dart';
import 'package:famedlysdk/src/room.dart'; import 'package:matrix/src/room.dart';
import 'package:famedlysdk/src/user.dart'; import 'package:matrix/src/user.dart';
import 'package:famedlysdk/src/utils/matrix_file.dart'; import 'package:matrix/src/utils/matrix_file.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';

View File

@ -16,7 +16,7 @@
* 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:famedlysdk/famedlysdk.dart'; import 'package:matrix/matrix.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';

View File

@ -16,14 +16,14 @@
* 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:famedlysdk/famedlysdk.dart'; import 'package:matrix/matrix.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';
import 'package:famedlysdk/src/client.dart'; import 'package:matrix/src/client.dart';
import 'package:famedlysdk/src/room.dart'; import 'package:matrix/src/room.dart';
import 'package:famedlysdk/src/timeline.dart'; import 'package:matrix/src/timeline.dart';
import 'package:famedlysdk/src/utils/event_update.dart'; import 'package:matrix/src/utils/event_update.dart';
import 'package:famedlysdk/src/utils/room_update.dart'; import 'package:matrix/src/utils/room_update.dart';
import 'package:olm/olm.dart' as olm; import 'package:olm/olm.dart' as olm;
import 'fake_client.dart'; import 'fake_client.dart';

View File

@ -18,7 +18,7 @@
import 'dart:async'; import 'dart:async';
import 'package:famedlysdk/famedlysdk.dart'; import 'package:matrix/matrix.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';

View File

@ -16,9 +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:famedlysdk/famedlysdk.dart'; import 'package:matrix/matrix.dart';
import 'package:famedlysdk/src/event.dart'; import 'package:matrix/src/event.dart';
import 'package:famedlysdk/src/user.dart'; import 'package:matrix/src/user.dart';
import 'package:test/test.dart'; import 'package:test/test.dart';

View File

@ -1,4 +1,4 @@
import 'package:famedlysdk/famedlysdk.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; import 'package:olm/olm.dart' as olm;