Skip to content

Commit 81c1e23

Browse files
Merge pull request #168 from appwrite/dev
feat: release 1.4.0
2 parents b6df911 + 193a1c3 commit 81c1e23

37 files changed

+776
-227
lines changed

CHANGELOG.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
1-
## 9.0.1
2-
3-
* Added documentation comments
4-
* Added unit tests
5-
* Upgraded dependencies
1+
## 10.0.0
2+
3+
* Support for Appwrite 1.4.0
4+
* New endpoints for fetching user identities
5+
* New endpoints for listing locale codes
6+
* Updated documentation
7+
* Breaking changes:
8+
* The `createFunction` method has a new signature.
9+
* The `createExecution` method has a new signature.
10+
* The `updateFunction` method has a new signature.
11+
* The `createDeployment` method no longer requires an entrypoint.
12+
* The `updateFile` method now includes the ability to update the file name.
13+
* The `updateMembershipRoles` method has been renamed to `updateMembership`.
614

715
## 9.0.0
816

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
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.3.x-blue.svg?style=flat-square)
5+
![Version](https://img.shields.io/badge/api%20version-1.4.x-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.3.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-flutter/releases).**
10+
**This SDK is compatible with Appwrite server version 1.4.x. For older versions, please check [previous releases](https://github.com/appwrite/sdk-for-flutter/releases).**
1111

1212
Appwrite is an open-source backend as a service server that abstract and simplify complex and repetitive development tasks behind a very simple to use REST API. Appwrite aims to help you develop your apps faster and in a more secure way. Use the Flutter SDK to integrate your app with the Appwrite server to easily start interacting with all of Appwrite backend APIs and tools. For full API documentation and tutorials go to [https://appwrite.io/docs](https://appwrite.io/docs)
1313

@@ -21,7 +21,7 @@ Add this to your package's `pubspec.yaml` file:
2121

2222
```yml
2323
dependencies:
24-
appwrite: ^9.0.1
24+
appwrite: ^10.0.0
2525
```
2626
2727
You can install packages from the command line:
@@ -79,6 +79,8 @@ For **Linux** add your app <u>name</u> and <u>package name</u>, Your package nam
7979
### Mac OS
8080
For **Mac OS** add your app name and Bundle ID, You can find your Bundle Identifier in the General tab for your app's primary target in Xcode.
8181

82+
The Appwrite SDK uses ASWebAuthenticationSession on macOS 10.15+ to allow OAuth authentication. You have to change your macOS Deployment Target in Xcode to be macOS >= 10.15 to be able to build your app for macOS.
83+
8284
### Web
8385
Appwrite 0.7, and the Appwrite Flutter SDK 0.3.0 have added support for Flutter Web. To build web apps that integrate with Appwrite successfully, all you have to do is add a web platform on your Appwrite project's dashboard and list the domain your website will use to allow communication to the Appwrite API.
8486

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import 'package:appwrite/appwrite.dart';
2+
3+
void main() { // Init SDK
4+
Client client = Client();
5+
Account account = Account(client);
6+
7+
client
8+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
9+
.setProject('5df5acd0d48c2') // Your project ID
10+
;
11+
Future result = account.deleteIdentity(
12+
identityId: '[IDENTITY_ID]',
13+
);
14+
15+
result
16+
.then((response) {
17+
print(response);
18+
}).catchError((error) {
19+
print(error.response);
20+
});
21+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import 'package:appwrite/appwrite.dart';
2+
3+
void main() { // Init SDK
4+
Client client = Client();
5+
Account account = Account(client);
6+
7+
client
8+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
9+
.setProject('5df5acd0d48c2') // Your project ID
10+
;
11+
Future result = account.listIdentities(
12+
);
13+
14+
result
15+
.then((response) {
16+
print(response);
17+
}).catchError((error) {
18+
print(error.response);
19+
});
20+
}

docs/examples/locale/list-codes.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import 'package:appwrite/appwrite.dart';
2+
3+
void main() { // Init SDK
4+
Client client = Client();
5+
Locale locale = Locale(client);
6+
7+
client
8+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
9+
.setProject('5df5acd0d48c2') // Your project ID
10+
;
11+
Future result = locale.listCodes();
12+
13+
result
14+
.then((response) {
15+
print(response);
16+
}).catchError((error) {
17+
print(error.response);
18+
});
19+
}

docs/examples/teams/update-membership-roles.md renamed to docs/examples/teams/update-membership.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ void main() { // Init SDK
88
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
99
.setProject('5df5acd0d48c2') // Your project ID
1010
;
11-
Future result = teams.updateMembershipRoles(
11+
Future result = teams.updateMembership(
1212
teamId: '[TEAM_ID]',
1313
membershipId: '[MEMBERSHIP_ID]',
1414
roles: [],

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.3.x.
3+
/// This SDK is compatible with Appwrite server version 1.4.x.
44
/// For older versions, please check
55
/// [previous releases](https://github.com/appwrite/sdk-for-flutter/releases).
66
library appwrite;

lib/models.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ library appwrite.models;
44
part 'src/models/model.dart';
55
part 'src/models/document_list.dart';
66
part 'src/models/session_list.dart';
7+
part 'src/models/identity_list.dart';
78
part 'src/models/log_list.dart';
89
part 'src/models/file_list.dart';
910
part 'src/models/team_list.dart';
@@ -14,6 +15,7 @@ part 'src/models/continent_list.dart';
1415
part 'src/models/language_list.dart';
1516
part 'src/models/currency_list.dart';
1617
part 'src/models/phone_list.dart';
18+
part 'src/models/locale_code_list.dart';
1719
part 'src/models/document.dart';
1820
part 'src/models/log.dart';
1921
part 'src/models/user.dart';
@@ -26,9 +28,11 @@ part 'src/models/algo_scrypt_modified.dart';
2628
part 'src/models/algo_argon2.dart';
2729
part 'src/models/preferences.dart';
2830
part 'src/models/session.dart';
31+
part 'src/models/identity.dart';
2932
part 'src/models/token.dart';
3033
part 'src/models/jwt.dart';
3134
part 'src/models/locale.dart';
35+
part 'src/models/locale_code.dart';
3236
part 'src/models/file.dart';
3337
part 'src/models/team.dart';
3438
part 'src/models/membership.dart';
@@ -38,3 +42,4 @@ part 'src/models/continent.dart';
3842
part 'src/models/language.dart';
3943
part 'src/models/currency.dart';
4044
part 'src/models/phone.dart';
45+
part 'src/models/headers.dart';

0 commit comments

Comments
 (0)