Skip to content

Commit a505d07

Browse files
fix realtime reconnect
1 parent aa2cdfa commit a505d07

38 files changed

+179
-12
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.0.1
2+
- Fix realtime close and reconnect working only 1 out of two times due to future returning too early
3+
- Add dart doc comments to newly added response models
4+
15
## 2.0.0
26
- BREAKING All services and methods now return proper response objects instead of `Response` object
37

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: ^2.0.0
24+
appwrite: ^2.0.1
2525
```
2626
2727
You can install packages from the command line:

lib/appwrite.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import 'src/redirect_stub.dart'
88
if (dart.library.html) 'src/redirect_browser.dart';
99
import 'src/enums.dart';
1010
import 'src/client.dart';
11-
import 'src/response.dart';
1211
import 'src/service.dart';
1312
import 'models.dart' as models;
1413

lib/src/client_browser.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ClientBrowser extends ClientBase with ClientMixin {
3333
.replaceFirst('http://', 'ws://');
3434
_headers = {
3535
'content-type': 'application/json',
36-
'x-sdk-version': 'appwrite:flutter:2.0.0',
36+
'x-sdk-version': 'appwrite:flutter:2.0.1',
3737
'X-Appwrite-Response-Format' : '0.10.0',
3838
};
3939

lib/src/client_io.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class ClientIO extends ClientBase with ClientMixin {
5252
.replaceFirst('http://', 'ws://');
5353
this._headers = {
5454
'content-type': 'application/json',
55-
'x-sdk-version': 'appwrite:flutter:2.0.0',
55+
'x-sdk-version': 'appwrite:flutter:2.0.1',
5656
'X-Appwrite-Response-Format' : '0.10.0',
5757
};
5858

lib/src/models/continent.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
part of appwrite.models;
22

3+
/// Continent
34
class Continent {
5+
/// Continent name.
46
final String name;
7+
/// Continent two letter code.
58
final String code;
69

710
Continent({

lib/src/models/continent_list.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
part of appwrite.models;
22

3+
/// Continents List
34
class ContinentList {
5+
/// Total sum of items in the list.
46
final int sum;
7+
/// List of continents.
58
final List<Continent> continents;
69

710
ContinentList({

lib/src/models/country.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
part of appwrite.models;
22

3+
/// Country
34
class Country {
5+
/// Country name.
46
final String name;
7+
/// Country two-character ISO 3166-1 alpha code.
58
final String code;
69

710
Country({

lib/src/models/country_list.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
part of appwrite.models;
22

3+
/// Countries List
34
class CountryList {
5+
/// Total sum of items in the list.
46
final int sum;
7+
/// List of countries.
58
final List<Country> countries;
69

710
CountryList({

lib/src/models/currency.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
part of appwrite.models;
22

3+
/// Currency
34
class Currency {
5+
/// Currency symbol.
46
final String symbol;
7+
/// Currency name.
58
final String name;
9+
/// Currency native symbol.
610
final String symbolNative;
11+
/// Number of decimal digits.
712
final int decimalDigits;
13+
/// Currency digit rounding.
814
final double rounding;
15+
/// Currency code in [ISO 4217-1](http://en.wikipedia.org/wiki/ISO_4217) three-character format.
916
final String code;
17+
/// Currency plural name
1018
final String namePlural;
1119

1220
Currency({

0 commit comments

Comments
 (0)