Skip to content

Commit cb9894e

Browse files
committed
Updates for 1.3.x
1 parent 6d1eebd commit cb9894e

File tree

6 files changed

+47
-19
lines changed

6 files changed

+47
-19
lines changed

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
## 9.0.0
2+
3+
* Added relationships support
4+
* Added support for new queries: `isNull`, `isNotNull`, `startsWith`, `notStartsWith`, `endsWith`, `between` and `select`.
5+
* Added update attribute support
6+
* Added team prefs support
7+
* Changed function create/update `execute` parameter to optional
8+
* Changed team `update` to `updateName`
9+
* Changed `Account` service to use the `User` model instead of `Account`
10+
11+
## 8.3.0
12+
13+
* Fix: back navigation bringing back web browser after OAuth session creation
14+
* Update: Deprecated `InputFile` default constructor and introduced `InputFile.fromPath` and `InputFile.fromBytes` for consistency with other SDKs
15+
16+
## 8.2.2
17+
18+
* Fix: notify callback when websocket closes [#604](https://github.com/appwrite/sdk-generator/pull/604)
19+
20+
## 8.2.1
21+
22+
* Fix OAuth on web
23+
* Improve helper classes
24+
125
## 8.2.0
226

327
* Support for GraphQL

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![pub package](https://img.shields.io/pub/v/appwrite?style=flat-square)](https://pub.dartlang.org/packages/appwrite)
44
![License](https://img.shields.io/github/license/appwrite/sdk-for-flutter.svg?style=flat-square)
5-
![Version](https://img.shields.io/badge/api%20version-1.2.1-blue.svg?style=flat-square)
5+
![Version](https://img.shields.io/badge/api%20version-1.3.0-blue.svg?style=flat-square)
66
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
77
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
88
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
@@ -21,7 +21,7 @@ Add this to your package's `pubspec.yaml` file:
2121

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

lib/query.dart

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,41 +3,41 @@ part of appwrite;
33
class Query {
44
Query._();
55

6-
static equal(String attribute, dynamic value) =>
6+
static String equal(String attribute, dynamic value) =>
77
_addQuery(attribute, 'equal', value);
88

9-
static notEqual(String attribute, dynamic value) =>
9+
static String notEqual(String attribute, dynamic value) =>
1010
_addQuery(attribute, 'notEqual', value);
1111

12-
static lessThan(String attribute, dynamic value) =>
12+
static String lessThan(String attribute, dynamic value) =>
1313
_addQuery(attribute, 'lessThan', value);
1414

15-
static lessThanEqual(String attribute, dynamic value) =>
15+
static String lessThanEqual(String attribute, dynamic value) =>
1616
_addQuery(attribute, 'lessThanEqual', value);
1717

18-
static greaterThan(String attribute, dynamic value) =>
18+
static String greaterThan(String attribute, dynamic value) =>
1919
_addQuery(attribute, 'greaterThan', value);
2020

21-
static greaterThanEqual(String attribute, dynamic value) =>
21+
static String greaterThanEqual(String attribute, dynamic value) =>
2222
_addQuery(attribute, 'greaterThanEqual', value);
2323

24-
static search(String attribute, String value) =>
24+
static String search(String attribute, String value) =>
2525
_addQuery(attribute, 'search', value);
2626

27-
static isNull(String attribute) => 'isNull("$attribute")';
27+
static String isNull(String attribute) => 'isNull("$attribute")';
2828

29-
static isNotNull(String attribute) => 'isNotNull("$attribute")';
29+
static String isNotNull(String attribute) => 'isNotNull("$attribute")';
3030

31-
static between(String attribute, dynamic start, dynamic end) =>
31+
static String between(String attribute, dynamic start, dynamic end) =>
3232
_addQuery(attribute, 'between', [start, end]);
3333

34-
static startsWith(String attribute, String value) =>
34+
static String startsWith(String attribute, String value) =>
3535
_addQuery(attribute, 'startsWith', value);
3636

37-
static endsWith(String attribute, String value) =>
37+
static String endsWith(String attribute, String value) =>
3838
_addQuery(attribute, 'endsWith', value);
3939

40-
static select(List<String> attributes) => 'select([${attributes.map((attr) => "\"$attr\"").join(",")}])';
40+
static String select(List<String> attributes) => 'select([${attributes.map((attr) => "\"$attr\"").join(",")}])';
4141

4242
static String orderAsc(String attribute) => 'orderAsc("$attribute")';
4343

lib/src/client_browser.dart

Lines changed: 1 addition & 1 deletion
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': '8.3.0',
46+
'x-sdk-version': '9.0.0',
4747
'X-Appwrite-Response-Format': '1.0.0',
4848
};
4949

lib/src/client_io.dart

Lines changed: 6 additions & 2 deletions
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': '8.3.0',
67+
'x-sdk-version': '9.0.0',
6868
'X-Appwrite-Response-Format' : '1.0.0',
6969
};
7070

@@ -312,11 +312,15 @@ class ClientIO extends ClientBase with ClientMixin {
312312
return res;
313313
}
314314

315+
bool get _customSchemeAllowed => Platform.isWindows || Platform.isLinux;
316+
315317
@override
316318
Future webAuth(Uri url, {String? callbackUrlScheme}) {
317319
return FlutterWebAuth2.authenticate(
318320
url: url.toString(),
319-
callbackUrlScheme: callbackUrlScheme != null && Platform.isWindows ? callbackUrlScheme : "appwrite-callback-" + config['project']!,
321+
callbackUrlScheme: callbackUrlScheme != null && _customSchemeAllowed
322+
? callbackUrlScheme
323+
: "appwrite-callback-" + config['project']!,
320324
preferEphemeral: true,
321325
).then((value) async {
322326
Uri url = Uri.parse(value);

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: appwrite
2-
version: 8.3.0
2+
version: 9.0.0
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

0 commit comments

Comments
 (0)