Skip to content

Commit 932f1d6

Browse files
Merge pull request #198 from appwrite/dev
upgrade dependencies
2 parents 895c671 + b1ef4ac commit 932f1d6

File tree

6 files changed

+15
-13
lines changed

6 files changed

+15
-13
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 12.0.3
2+
3+
* Upgrade dependencies
4+
15
## 12.0.2
26

37
* Fixed realtime multiple subscription issues

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Add this to your package's `pubspec.yaml` file:
2121

2222
```yml
2323
dependencies:
24-
appwrite: ^12.0.2
24+
appwrite: ^12.0.3
2525
```
2626
2727
You can install packages from the command line:

lib/src/client_browser.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class ClientBrowser extends ClientBase with ClientMixin {
4343
'x-sdk-name': 'Flutter',
4444
'x-sdk-platform': 'client',
4545
'x-sdk-language': 'flutter',
46-
'x-sdk-version': '12.0.2',
46+
'x-sdk-version': '12.0.3',
4747
'X-Appwrite-Response-Format': '1.5.0',
4848
};
4949

@@ -162,7 +162,7 @@ class ClientBrowser extends ClientBase with ClientMixin {
162162
}
163163

164164
while (offset < size) {
165-
var chunk;
165+
List<int> chunk = [];
166166
final end = min(offset + CHUNK_SIZE, size);
167167
chunk = file.bytes!.getRange(offset, end).toList();
168168
params[paramName] =

lib/src/client_io.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class ClientIO extends ClientBase with ClientMixin {
6464
'x-sdk-name': 'Flutter',
6565
'x-sdk-platform': 'client',
6666
'x-sdk-language': 'flutter',
67-
'x-sdk-version': '12.0.2',
67+
'x-sdk-version': '12.0.3',
6868
'X-Appwrite-Response-Format' : '1.5.0',
6969
};
7070

lib/src/realtime_mixin.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ mixin RealtimeMixin {
2121
late WebSocketFactory getWebSocket;
2222
GetFallbackCookie? getFallbackCookie;
2323
int? get closeCode => _websok?.closeCode;
24-
int _subscriptionsCounter = 0;
2524
Map<int, RealtimeSubscription> _subscriptions = {};
2625
bool _notifyDone = true;
2726
StreamSubscription? _websocketSubscription;
@@ -144,7 +143,6 @@ mixin RealtimeMixin {
144143
channels: channels,
145144
close: () async {
146145
_subscriptions.remove(id);
147-
_subscriptionsCounter--;
148146
controller.close();
149147
_cleanup(channels);
150148

pubspec.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: appwrite
2-
version: 12.0.2
2+
version: 12.0.3
33
description: Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API
44
homepage: https://appwrite.io
55
repository: https://github.com/appwrite/sdk-for-flutter
@@ -19,17 +19,17 @@ dependencies:
1919
flutter:
2020
sdk: flutter
2121
cookie_jar: ^4.0.8
22-
device_info_plus: ^9.1.2
22+
device_info_plus: ^10.1.0
2323
flutter_web_auth_2: ^3.1.1
2424
http: '>=0.13.6 <2.0.0'
25-
package_info_plus: ^5.0.1
26-
path_provider: ^2.1.2
27-
web_socket_channel: ^2.4.3
28-
universal_html: ^2.2.2
25+
package_info_plus: ^8.0.0
26+
path_provider: ^2.1.3
27+
web_socket_channel: ^2.4.5
28+
universal_html: ^2.2.4
2929

3030
dev_dependencies:
3131
path_provider_platform_interface: ^2.1.2
32-
flutter_lints: ^3.0.1
32+
flutter_lints: ^3.0.2
3333
flutter_test:
3434
sdk: flutter
3535
mockito: ^5.4.4

0 commit comments

Comments
 (0)