File tree 9 files changed +62
-29
lines changed
9 files changed +62
-29
lines changed Original file line number Diff line number Diff line change @@ -24,3 +24,4 @@ example/config.dart
24
24
25
25
.idea
26
26
27
+ .keystore.json
Original file line number Diff line number Diff line change
1
+ ## 1.2.9
2
+
3
+ * update verification response
4
+
1
5
## 1.2.8
2
6
3
7
* Fix code generation for ` Asset ` class.
Original file line number Diff line number Diff line change @@ -53,10 +53,10 @@ packages:
53
53
dependency: transitive
54
54
description:
55
55
name: crypto
56
- sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab
56
+ sha256: ec30d999af904f33454ba22ed9a86162b35e52b44ac4807d1d93c288041d7d27
57
57
url: "https://pub.dev"
58
58
source: hosted
59
- version: "3.0.3 "
59
+ version: "3.0.5 "
60
60
dart_jsonwebtoken:
61
61
dependency: transitive
62
62
description:
@@ -77,18 +77,18 @@ packages:
77
77
dependency: transitive
78
78
description:
79
79
name: dio
80
- sha256: e17f6b3097b8c51b72c74c9f071a605c47bcc8893839bd66732457a5ebe73714
80
+ sha256: "5598aa796bbf4699afd5c67c0f5f6e2ed542afc956884b9cd58c306966efc260"
81
81
url: "https://pub.dev"
82
82
source: hosted
83
- version: "5.5.0+1 "
83
+ version: "5.7.0 "
84
84
dio_web_adapter:
85
85
dependency: transitive
86
86
description:
87
87
name: dio_web_adapter
88
- sha256: "36c5b2d79eb17cdae41e974b7a8284fec631651d2a6f39a8a2ff22327e90aeac "
88
+ sha256: "33259a9276d6cea88774a0000cfae0d861003497755969c92faa223108620dc8 "
89
89
url: "https://pub.dev"
90
90
source: hosted
91
- version: "1 .0.1 "
91
+ version: "2 .0.0 "
92
92
ed25519_edwards:
93
93
dependency: "direct main"
94
94
description:
@@ -133,10 +133,10 @@ packages:
133
133
dependency: transitive
134
134
description:
135
135
name: http_parser
136
- sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b "
136
+ sha256: "40f592dd352890c3b60fec1b68e786cefb9603e05ff303dbc4dda49b304ecdf4 "
137
137
url: "https://pub.dev"
138
138
source: hosted
139
- version: "4.0.2 "
139
+ version: "4.1.0 "
140
140
intl:
141
141
dependency: transitive
142
142
description:
@@ -175,7 +175,7 @@ packages:
175
175
path: ".."
176
176
relative: true
177
177
source: path
178
- version: "1.2.7 "
178
+ version: "1.2.8 "
179
179
path:
180
180
dependency: transitive
181
181
description:
@@ -260,10 +260,10 @@ packages:
260
260
dependency: transitive
261
261
description:
262
262
name: uuid
263
- sha256: "83d37c7ad7aaf9aa8e275490669535c8080377cfa7a7004c24dfac53afffaa90"
263
+ sha256: f33d6bb662f0e4f79dcd7ada2e6170f3b3a2530c28fc41f49a411ddedd576a77
264
264
url: "https://pub.dev"
265
265
source: hosted
266
- version: "4.4.2 "
266
+ version: "4.5.0 "
267
267
very_good_analysis:
268
268
dependency: "direct dev"
269
269
description:
@@ -272,6 +272,14 @@ packages:
272
272
url: "https://pub.dev"
273
273
source: hosted
274
274
version: "5.1.0"
275
+ web:
276
+ dependency: transitive
277
+ description:
278
+ name: web
279
+ sha256: d43c1d6b787bf0afad444700ae7f4db8827f701bc61c255ac8d328c6f4d52062
280
+ url: "https://pub.dev"
281
+ source: hosted
282
+ version: "1.0.0"
275
283
x25519:
276
284
dependency: transitive
277
285
description:
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ class Account with EquatableMixin {
37
37
required this .tipKeyBase64,
38
38
this .fullName,
39
39
this .avatarUrl,
40
+ this .membership,
40
41
});
41
42
42
43
factory Account .fromJson (Map <String , dynamic > json) =>
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ class VerificationResponse extends Equatable {
10
10
required this .id,
11
11
this .hasEmergencyContact = false ,
12
12
this .contactId,
13
- this .deactivatedAt,
13
+ this .deactivationEffectiveAt,
14
+ this .deactivationRequestedAt,
14
15
});
15
16
16
17
factory VerificationResponse .fromJson (Map <String , dynamic > json) =>
@@ -28,16 +29,19 @@ class VerificationResponse extends Equatable {
28
29
@JsonKey (name: 'contact_id' )
29
30
final String ? contactId;
30
31
31
- @JsonKey (name: 'deactivated_at' )
32
- final String ? deactivatedAt;
32
+ @JsonKey (name: 'deactivation_requested_at' )
33
+ final DateTime ? deactivationRequestedAt;
34
+ @JsonKey (name: 'deactivation_effective_at' )
35
+ final DateTime ? deactivationEffectiveAt;
33
36
34
37
@override
35
38
List <Object ?> get props => [
36
39
type,
37
40
id,
38
41
hasEmergencyContact,
39
42
contactId,
40
- deactivatedAt,
43
+ deactivationRequestedAt,
44
+ deactivationEffectiveAt,
41
45
];
42
46
43
47
Map <String , dynamic > toJson () => _$VerificationResponseToJson (this );
Original file line number Diff line number Diff line change 1
1
name : mixin_bot_sdk_dart
2
2
description : Mixin Messenger API for Dart/Flutter, build decentrialized applications on Mixin
3
- version : 1.2.8
3
+ version : 1.2.9
4
4
homepage : https://github.com/MixinNetwork/mixin_bot_sdk_dart
5
5
6
6
environment :
@@ -29,8 +29,7 @@ dependencies:
29
29
edwards25519 : ^1.0.4
30
30
31
31
dev_dependencies :
32
- test : ^1.17.9
32
+ test : ^1.25.8
33
33
very_good_analysis : " >=5.1.0 <7.0.0"
34
- # pedantic: ^1.11.0
35
- build_runner : any
36
- json_serializable : ^6.1.4
34
+ build_runner : ^2.4.9
35
+ json_serializable : ^6.8.0
Original file line number Diff line number Diff line change 1
1
// Get APP data from https://developers.mixin.one/dashboard
2
+ import 'dart:convert' ;
3
+ import 'dart:io' ;
4
+
2
5
import 'package:mixin_bot_sdk_dart/mixin_bot_sdk_dart.dart' ;
3
6
4
- const uid = '23cec735-ffb8-435d-8c2c-e352c98a8b59' ;
5
- const sid = '63f600c8-7247-4a02-8a71-1546c3a2abdb' ;
6
- final private = Key .froHex (
7
- 'da34117b06b3d186d9f3455717b67861b5340f283c613f75ccb39092485b722bc9db931e3cea42c34f5d33afa306ed2f0b24446779a4e3347cdead21e0216480' );
7
+ final _keystore = () {
8
+ final content = File ('.keystore.json' ).readAsStringSync ();
9
+ return json.decode (content) as Map <String , dynamic >;
10
+ }();
11
+
12
+ final uid = _keystore['app_id' ] as String ;
13
+ final sid = _keystore['session_id' ] as String ;
14
+ final private = Key .fromHexSeed (_keystore['session_private_key' ] as String );
8
15
9
16
final uids = < String > ['773e5e77-4107-45c2-b648-8fc722ed77f5' ];
10
17
You can’t perform that action at this time.
0 commit comments