Skip to content

Commit

Permalink
Merge pull request #198 from appwrite/dev
Browse files Browse the repository at this point in the history
upgrade dependencies
  • Loading branch information
lohanidamodar authored Apr 25, 2024
2 parents 895c671 + b1ef4ac commit 932f1d6
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 13 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 12.0.3

* Upgrade dependencies

## 12.0.2

* Fixed realtime multiple subscription issues
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Add this to your package's `pubspec.yaml` file:

```yml
dependencies:
appwrite: ^12.0.2
appwrite: ^12.0.3
```
You can install packages from the command line:
Expand Down
4 changes: 2 additions & 2 deletions lib/src/client_browser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class ClientBrowser extends ClientBase with ClientMixin {
'x-sdk-name': 'Flutter',
'x-sdk-platform': 'client',
'x-sdk-language': 'flutter',
'x-sdk-version': '12.0.2',
'x-sdk-version': '12.0.3',
'X-Appwrite-Response-Format': '1.5.0',
};

Expand Down Expand Up @@ -162,7 +162,7 @@ class ClientBrowser extends ClientBase with ClientMixin {
}

while (offset < size) {
var chunk;
List<int> chunk = [];
final end = min(offset + CHUNK_SIZE, size);
chunk = file.bytes!.getRange(offset, end).toList();
params[paramName] =
Expand Down
2 changes: 1 addition & 1 deletion lib/src/client_io.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class ClientIO extends ClientBase with ClientMixin {
'x-sdk-name': 'Flutter',
'x-sdk-platform': 'client',
'x-sdk-language': 'flutter',
'x-sdk-version': '12.0.2',
'x-sdk-version': '12.0.3',
'X-Appwrite-Response-Format' : '1.5.0',
};

Expand Down
2 changes: 0 additions & 2 deletions lib/src/realtime_mixin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ mixin RealtimeMixin {
late WebSocketFactory getWebSocket;
GetFallbackCookie? getFallbackCookie;
int? get closeCode => _websok?.closeCode;
int _subscriptionsCounter = 0;
Map<int, RealtimeSubscription> _subscriptions = {};
bool _notifyDone = true;
StreamSubscription? _websocketSubscription;
Expand Down Expand Up @@ -144,7 +143,6 @@ mixin RealtimeMixin {
channels: channels,
close: () async {
_subscriptions.remove(id);
_subscriptionsCounter--;
controller.close();
_cleanup(channels);

Expand Down
14 changes: 7 additions & 7 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: appwrite
version: 12.0.2
version: 12.0.3
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
homepage: https://appwrite.io
repository: https://github.com/appwrite/sdk-for-flutter
Expand All @@ -19,17 +19,17 @@ dependencies:
flutter:
sdk: flutter
cookie_jar: ^4.0.8
device_info_plus: ^9.1.2
device_info_plus: ^10.1.0
flutter_web_auth_2: ^3.1.1
http: '>=0.13.6 <2.0.0'
package_info_plus: ^5.0.1
path_provider: ^2.1.2
web_socket_channel: ^2.4.3
universal_html: ^2.2.2
package_info_plus: ^8.0.0
path_provider: ^2.1.3
web_socket_channel: ^2.4.5
universal_html: ^2.2.4

dev_dependencies:
path_provider_platform_interface: ^2.1.2
flutter_lints: ^3.0.1
flutter_lints: ^3.0.2
flutter_test:
sdk: flutter
mockito: ^5.4.4

0 comments on commit 932f1d6

Please sign in to comment.