feat: Deprecate OmemoSessionManager
This commit is contained in:
parent
bca4840ca6
commit
4dc3cfb2b1
@ -37,8 +37,8 @@
|
|||||||
- Every decryption failure now causes the ratchet to be restored to a pre-decryption state
|
- Every decryption failure now causes the ratchet to be restored to a pre-decryption state
|
||||||
- Add method to get the device's fingerprint
|
- Add method to get the device's fingerprint
|
||||||
|
|
||||||
## 1.0.0
|
## 0.4.0
|
||||||
|
|
||||||
- [Breaking] Replace `OmemoSessionManager` with `OmemoManager`
|
- Deprecate `OmemoSessionManager`. Use `OmemoManager` instead.
|
||||||
- Implement queued access to the ratchets inside the `OmemoManager`
|
- Implement queued access to the ratchets inside the `OmemoManager`.
|
||||||
- Implement heartbeat messages
|
- Implement heartbeat messages.
|
||||||
|
2
lib/src/omemo/constants.dart
Normal file
2
lib/src/omemo/constants.dart
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
/// The info used for when encrypting the AES key for the actual payload.
|
||||||
|
const omemoPayloadInfoString = 'OMEMO Payload';
|
@ -12,6 +12,7 @@ import 'package:omemo_dart/src/errors.dart';
|
|||||||
import 'package:omemo_dart/src/helpers.dart';
|
import 'package:omemo_dart/src/helpers.dart';
|
||||||
import 'package:omemo_dart/src/keys.dart';
|
import 'package:omemo_dart/src/keys.dart';
|
||||||
import 'package:omemo_dart/src/omemo/bundle.dart';
|
import 'package:omemo_dart/src/omemo/bundle.dart';
|
||||||
|
import 'package:omemo_dart/src/omemo/constants.dart';
|
||||||
import 'package:omemo_dart/src/omemo/decryption_result.dart';
|
import 'package:omemo_dart/src/omemo/decryption_result.dart';
|
||||||
import 'package:omemo_dart/src/omemo/device.dart';
|
import 'package:omemo_dart/src/omemo/device.dart';
|
||||||
import 'package:omemo_dart/src/omemo/encrypted_key.dart';
|
import 'package:omemo_dart/src/omemo/encrypted_key.dart';
|
||||||
@ -27,9 +28,6 @@ import 'package:omemo_dart/src/trust/base.dart';
|
|||||||
import 'package:omemo_dart/src/x3dh/x3dh.dart';
|
import 'package:omemo_dart/src/x3dh/x3dh.dart';
|
||||||
import 'package:synchronized/synchronized.dart';
|
import 'package:synchronized/synchronized.dart';
|
||||||
|
|
||||||
/// The info used for when encrypting the AES key for the actual payload.
|
|
||||||
const omemoPayloadInfoString = 'OMEMO Payload';
|
|
||||||
|
|
||||||
class OmemoManager {
|
class OmemoManager {
|
||||||
OmemoManager(
|
OmemoManager(
|
||||||
this._device,
|
this._device,
|
||||||
|
@ -11,6 +11,7 @@ import 'package:omemo_dart/src/errors.dart';
|
|||||||
import 'package:omemo_dart/src/helpers.dart';
|
import 'package:omemo_dart/src/helpers.dart';
|
||||||
import 'package:omemo_dart/src/keys.dart';
|
import 'package:omemo_dart/src/keys.dart';
|
||||||
import 'package:omemo_dart/src/omemo/bundle.dart';
|
import 'package:omemo_dart/src/omemo/bundle.dart';
|
||||||
|
import 'package:omemo_dart/src/omemo/constants.dart';
|
||||||
import 'package:omemo_dart/src/omemo/device.dart';
|
import 'package:omemo_dart/src/omemo/device.dart';
|
||||||
import 'package:omemo_dart/src/omemo/encrypted_key.dart';
|
import 'package:omemo_dart/src/omemo/encrypted_key.dart';
|
||||||
import 'package:omemo_dart/src/omemo/encryption_result.dart';
|
import 'package:omemo_dart/src/omemo/encryption_result.dart';
|
||||||
@ -24,9 +25,7 @@ import 'package:omemo_dart/src/trust/base.dart';
|
|||||||
import 'package:omemo_dart/src/x3dh/x3dh.dart';
|
import 'package:omemo_dart/src/x3dh/x3dh.dart';
|
||||||
import 'package:synchronized/synchronized.dart';
|
import 'package:synchronized/synchronized.dart';
|
||||||
|
|
||||||
/// The info used for when encrypting the AES key for the actual payload.
|
@Deprecated('Use OmemoManager instead')
|
||||||
const omemoPayloadInfoString = 'OMEMO Payload';
|
|
||||||
|
|
||||||
class OmemoSessionManager {
|
class OmemoSessionManager {
|
||||||
OmemoSessionManager(this._device, this._deviceMap, this._ratchetMap, this._trustManager)
|
OmemoSessionManager(this._device, this._deviceMap, this._ratchetMap, this._trustManager)
|
||||||
: _lock = Lock(),
|
: _lock = Lock(),
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
name: omemo_dart
|
name: omemo_dart
|
||||||
description: An XMPP library independent OMEMO library
|
description: An XMPP library independent OMEMO library
|
||||||
version: 1.0.0
|
version: 0.4.0
|
||||||
homepage: https://github.com/PapaTutuWawa/omemo_dart
|
homepage: https://github.com/PapaTutuWawa/omemo_dart
|
||||||
publish_to: https://git.polynom.me/api/packages/PapaTutuWawa/pub
|
publish_to: https://git.polynom.me/api/packages/PapaTutuWawa/pub
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user