Skip to content

Commit 2e12a95

Browse files
authored
Merge pull request #35 from appwrite/dev
Appwrite 1.2.0 support
2 parents e7ec446 + 1b17c76 commit 2e12a95

36 files changed

+159
-274
lines changed

CHANGELOG.md

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
1-
## 7.0.0-dev.2
1+
## 7.2.0
2+
3+
* Support for GraphQL
4+
5+
## 7.1.0
6+
7+
* Role helper update
8+
9+
## 7.0.0
10+
211
### NEW
3-
* Support for Appwrite 1.0.0-RC1
12+
* Support for Appwrite 1.0.0
413
* More verbose headers have been included in the Clients - `x-sdk-name`, `x-sdk-platform`, `x-sdk-language`, `x-sdk-version`
514
* Helper classes and methods for Permissions, Roles and IDs
615
* Helper methods to suport new queries
@@ -26,7 +35,7 @@
2635
3. `greater` renamed to `greaterThan`
2736
4. `greaterEqual` renamed to `greaterThanEqual`
2837

29-
**Full Changelog for Appwrite 1.0.0-RC1 can be found here**: https://github.com/appwrite/appwrite/blob/master/CHANGES.md
38+
**Full Changelog for Appwrite 1.0.0 can be found here**: https://github.com/appwrite/appwrite/blob/master/CHANGES.md
3039

3140
## 6.0.1
3241
* Dependency upgrades

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ Redistribution and use in source and binary forms, with or without modification,
77

88
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
99

10-
3. Neither the name Appwrite nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
10+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
1111

1212
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
[![pub package](https://img.shields.io/pub/v/dart_appwrite.svg?style=flat-square)](https://pub.dartlang.org/packages/dart_appwrite)
44
![License](https://img.shields.io/github/license/appwrite/sdk-for-dart.svg?style=flat-square)
5-
![Version](https://img.shields.io/badge/api%20version-1.0.0-blue.svg?style=flat-square)
5+
![Version](https://img.shields.io/badge/api%20version-1.2.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)
99

10-
**This SDK is compatible with Appwrite server version 1.0.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-dart/releases).**
10+
**This SDK is compatible with Appwrite server version 1.2.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-dart/releases).**
1111

1212
> This is the Dart SDK for integrating with Appwrite from your Dart server-side code. If you're looking for the Flutter SDK you should check [appwrite/sdk-for-flutter](https://github.com/appwrite/sdk-for-flutter)
1313
@@ -23,7 +23,7 @@ Add this to your package's `pubspec.yaml` file:
2323

2424
```yml
2525
dependencies:
26-
dart_appwrite: ^7.1.0
26+
dart_appwrite: ^7.2.0
2727
```
2828
2929
You can install packages from the command line:

docs/examples/account/get-logs.md

-22
This file was deleted.

docs/examples/account/get-sessions.md

-21
This file was deleted.

docs/examples/account/update-phone.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ void main() { // Init SDK
1111
;
1212

1313
Future result = account.updatePhone(
14-
phone: '',
14+
phone: '+12065550100',
1515
password: 'password',
1616
);
1717

docs/examples/functions/retry-build.md docs/examples/functions/create-build.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ void main() { // Init SDK
1010
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
1111
;
1212

13-
Future result = functions.retryBuild(
13+
Future result = functions.createBuild(
1414
functionId: '[FUNCTION_ID]',
1515
deploymentId: '[DEPLOYMENT_ID]',
1616
buildId: '[BUILD_ID]',

docs/examples/users/get-logs.md docs/examples/graphql/mutation.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
void main() { // Init SDK
44
Client client = Client();
5-
Users users = Users(client);
5+
Graphql graphql = Graphql(client);
66

77
client
88
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
99
.setProject('5df5acd0d48c2') // Your project ID
1010
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
1111
;
1212

13-
Future result = users.getLogs(
14-
userId: '[USER_ID]',
13+
Future result = graphql.mutation(
14+
query: {},
1515
);
1616

1717
result

docs/examples/locale/get-countries-e-u.md docs/examples/graphql/query.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@ import 'package:dart_appwrite/dart_appwrite.dart';
22

33
void main() { // Init SDK
44
Client client = Client();
5-
Locale locale = Locale(client);
5+
Graphql graphql = Graphql(client);
66

77
client
88
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
99
.setProject('5df5acd0d48c2') // Your project ID
1010
.setKey('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
1111
;
1212

13-
Future result = locale.getCountriesEU();
13+
Future result = graphql.query(
14+
query: {},
15+
);
1416

1517
result
1618
.then((response) {

docs/examples/locale/get-continents.md

-21
This file was deleted.

docs/examples/locale/get-countries-phones.md

-21
This file was deleted.

docs/examples/locale/get-countries.md

-21
This file was deleted.

docs/examples/locale/get-currencies.md

-21
This file was deleted.

docs/examples/locale/get-languages.md

-21
This file was deleted.

docs/examples/teams/get-memberships.md

-23
This file was deleted.

docs/examples/users/get-memberships.md

-23
This file was deleted.

docs/examples/users/get-sessions.md

-23
This file was deleted.

docs/examples/users/update-phone.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ void main() { // Init SDK
1212

1313
Future result = users.updatePhone(
1414
userId: '[USER_ID]',
15-
number: '',
15+
number: '+12065550100',
1616
);
1717

1818
result

lib/dart_appwrite.dart

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ part 'services/account.dart';
2323
part 'services/avatars.dart';
2424
part 'services/databases.dart';
2525
part 'services/functions.dart';
26+
part 'services/graphql.dart';
2627
part 'services/health.dart';
2728
part 'services/locale.dart';
2829
part 'services/storage.dart';

0 commit comments

Comments
 (0)