Skip to content

Commit 68ca6b4

Browse files
committed
fix: chunked upload, pong error
1 parent e1ed112 commit 68ca6b4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+4595
-4919
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2024 Appwrite (https://appwrite.io) and individual contributors.
1+
Copyright (c) 2025 Appwrite (https://appwrite.io) and individual contributors.
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

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

docs/examples/account/update-mfa-challenge.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Client client = Client()
66

77
Account account = Account(client);
88

9-
result = await account.updateMfaChallenge(
9+
Session result = await account.updateMfaChallenge(
1010
challengeId: '<CHALLENGE_ID>',
1111
otp: '<OTP>',
1212
);

lib/appwrite.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// Appwrite Flutter SDK
22
///
3-
/// This SDK is compatible with Appwrite server version 1.6.x.
3+
/// This SDK is compatible with Appwrite server version 1.6.x.
44
/// For older versions, please check
55
/// [previous releases](https://github.com/appwrite/sdk-for-flutter/releases).
66
library appwrite;

lib/client_browser.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export 'src/client_browser.dart';
1+
export 'src/client_browser.dart';

lib/client_io.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export 'src/client_io.dart';
1+
export 'src/client_io.dart';

lib/id.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ class ID {
1010
final now = DateTime.now();
1111
final sec = (now.millisecondsSinceEpoch / 1000).floor();
1212
final usec = now.microsecondsSinceEpoch - (sec * 1000000);
13-
return sec.toRadixString(16) + usec.toRadixString(16).padLeft(5, '0');
13+
return sec.toRadixString(16) +
14+
usec.toRadixString(16).padLeft(5, '0');
1415
}
1516

1617
// Generate a unique ID with padding to have a longer ID

lib/query.dart

Lines changed: 19 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
part of 'appwrite.dart';
22

3+
34
/// Helper class to generate query strings.
45
class Query {
56
final String method;
@@ -13,11 +14,11 @@ class Query {
1314
'method': method,
1415
};
1516

16-
if (attribute != null) {
17+
if(attribute != null) {
1718
map['attribute'] = attribute;
1819
}
19-
20-
if (values != null) {
20+
21+
if(values != null) {
2122
map['values'] = values is List ? values : [values];
2223
}
2324

@@ -28,7 +29,7 @@ class Query {
2829
String toString() => jsonEncode(toJson());
2930

3031
/// Filter resources where [attribute] is equal to [value].
31-
///
32+
///
3233
/// [value] can be a single value or a list. If a list is used
3334
/// the query will return resources where [attribute] is equal
3435
/// to any of the values in the list.
@@ -60,12 +61,10 @@ class Query {
6061
Query._('search', attribute, value).toString();
6162

6263
/// Filter resources where [attribute] is null.
63-
static String isNull(String attribute) =>
64-
Query._('isNull', attribute).toString();
64+
static String isNull(String attribute) => Query._('isNull', attribute).toString();
6565

6666
/// Filter resources where [attribute] is not null.
67-
static String isNotNull(String attribute) =>
68-
Query._('isNotNull', attribute).toString();
67+
static String isNotNull(String attribute) => Query._('isNotNull', attribute).toString();
6968

7069
/// Filter resources where [attribute] is between [start] and [end] (inclusive).
7170
static String between(String attribute, dynamic start, dynamic end) =>
@@ -85,46 +84,40 @@ class Query {
8584
Query._('contains', attribute, value).toString();
8685

8786
static String or(List<String> queries) =>
88-
Query._('or', null, queries.map((query) => jsonDecode(query)).toList())
89-
.toString();
87+
Query._('or', null, queries.map((query) => jsonDecode(query)).toList()).toString();
9088

9189
static String and(List<String> queries) =>
92-
Query._('and', null, queries.map((query) => jsonDecode(query)).toList())
93-
.toString();
90+
Query._('and', null, queries.map((query) => jsonDecode(query)).toList()).toString();
9491

9592
/// Specify which attributes should be returned by the API call.
9693
static String select(List<String> attributes) =>
9794
Query._('select', null, attributes).toString();
9895

9996
/// Sort results by [attribute] ascending.
100-
static String orderAsc(String attribute) =>
101-
Query._('orderAsc', attribute).toString();
97+
static String orderAsc(String attribute) => Query._('orderAsc', attribute).toString();
10298

10399
/// Sort results by [attribute] descending.
104-
static String orderDesc(String attribute) =>
105-
Query._('orderDesc', attribute).toString();
100+
static String orderDesc(String attribute) => Query._('orderDesc', attribute).toString();
106101

107102
/// Return results before [id].
108-
///
103+
///
109104
/// Refer to the [Cursor Based Pagination](https://appwrite.io/docs/pagination#cursor-pagination)
110105
/// docs for more information.
111-
static String cursorBefore(String id) =>
112-
Query._('cursorBefore', null, id).toString();
106+
static String cursorBefore(String id) => Query._('cursorBefore', null, id).toString();
113107

114108
/// Return results after [id].
115-
///
109+
///
116110
/// Refer to the [Cursor Based Pagination](https://appwrite.io/docs/pagination#cursor-pagination)
117111
/// docs for more information.
118-
static String cursorAfter(String id) =>
119-
Query._('cursorAfter', null, id).toString();
112+
static String cursorAfter(String id) => Query._('cursorAfter', null, id).toString();
120113

121114
/// Return only [limit] results.
122115
static String limit(int limit) => Query._('limit', null, limit).toString();
123116

124117
/// Return results from [offset].
125-
///
118+
///
126119
/// Refer to the [Offset Pagination](https://appwrite.io/docs/pagination#offset-pagination)
127120
/// docs for more information.
128-
static String offset(int offset) =>
129-
Query._('offset', null, offset).toString();
130-
}
121+
static String offset(int offset) => Query._('offset', null, offset).toString();
122+
123+
}

lib/realtime_browser.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export 'src/realtime_browser.dart';
1+
export 'src/realtime_browser.dart';

lib/realtime_io.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export 'src/realtime_io.dart';
1+
export 'src/realtime_io.dart';

0 commit comments

Comments
 (0)