Skip to content

Commit

Permalink
Merge pull request #168 from appwrite/dev
Browse files Browse the repository at this point in the history
feat: release 1.4.0
  • Loading branch information
christyjacob4 authored Aug 30, 2023
2 parents b6df911 + 193a1c3 commit 81c1e23
Show file tree
Hide file tree
Showing 37 changed files with 776 additions and 227 deletions.
18 changes: 13 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
## 9.0.1

* Added documentation comments
* Added unit tests
* Upgraded dependencies
## 10.0.0

* Support for Appwrite 1.4.0
* New endpoints for fetching user identities
* New endpoints for listing locale codes
* Updated documentation
* Breaking changes:
* The `createFunction` method has a new signature.
* The `createExecution` method has a new signature.
* The `updateFunction` method has a new signature.
* The `createDeployment` method no longer requires an entrypoint.
* The `updateFile` method now includes the ability to update the file name.
* The `updateMembershipRoles` method has been renamed to `updateMembership`.

## 9.0.0

Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

[![pub package](https://img.shields.io/pub/v/appwrite?style=flat-square)](https://pub.dartlang.org/packages/appwrite)
![License](https://img.shields.io/github/license/appwrite/sdk-for-flutter.svg?style=flat-square)
![Version](https://img.shields.io/badge/api%20version-1.3.x-blue.svg?style=flat-square)
![Version](https://img.shields.io/badge/api%20version-1.4.x-blue.svg?style=flat-square)
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)

**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).**
**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).**

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)

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

```yml
dependencies:
appwrite: ^9.0.1
appwrite: ^10.0.0
```
You can install packages from the command line:
Expand Down Expand Up @@ -79,6 +79,8 @@ For **Linux** add your app <u>name</u> and <u>package name</u>, Your package nam
### Mac OS
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.

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.

### Web
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.

Expand Down
21 changes: 21 additions & 0 deletions docs/examples/account/delete-identity.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import 'package:appwrite/appwrite.dart';

void main() { // Init SDK
Client client = Client();
Account account = Account(client);

client
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
Future result = account.deleteIdentity(
identityId: '[IDENTITY_ID]',
);

result
.then((response) {
print(response);
}).catchError((error) {
print(error.response);
});
}
20 changes: 20 additions & 0 deletions docs/examples/account/list-identities.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import 'package:appwrite/appwrite.dart';

void main() { // Init SDK
Client client = Client();
Account account = Account(client);

client
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
Future result = account.listIdentities(
);

result
.then((response) {
print(response);
}).catchError((error) {
print(error.response);
});
}
19 changes: 19 additions & 0 deletions docs/examples/locale/list-codes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import 'package:appwrite/appwrite.dart';

void main() { // Init SDK
Client client = Client();
Locale locale = Locale(client);

client
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
Future result = locale.listCodes();

result
.then((response) {
print(response);
}).catchError((error) {
print(error.response);
});
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ void main() { // Init SDK
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
.setProject('5df5acd0d48c2') // Your project ID
;
Future result = teams.updateMembershipRoles(
Future result = teams.updateMembership(
teamId: '[TEAM_ID]',
membershipId: '[MEMBERSHIP_ID]',
roles: [],
Expand Down
2 changes: 1 addition & 1 deletion lib/appwrite.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// Appwrite Flutter SDK
///
/// This SDK is compatible with Appwrite server version 1.3.x.
/// 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).
library appwrite;
Expand Down
5 changes: 5 additions & 0 deletions lib/models.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ library appwrite.models;
part 'src/models/model.dart';
part 'src/models/document_list.dart';
part 'src/models/session_list.dart';
part 'src/models/identity_list.dart';
part 'src/models/log_list.dart';
part 'src/models/file_list.dart';
part 'src/models/team_list.dart';
Expand All @@ -14,6 +15,7 @@ part 'src/models/continent_list.dart';
part 'src/models/language_list.dart';
part 'src/models/currency_list.dart';
part 'src/models/phone_list.dart';
part 'src/models/locale_code_list.dart';
part 'src/models/document.dart';
part 'src/models/log.dart';
part 'src/models/user.dart';
Expand All @@ -26,9 +28,11 @@ part 'src/models/algo_scrypt_modified.dart';
part 'src/models/algo_argon2.dart';
part 'src/models/preferences.dart';
part 'src/models/session.dart';
part 'src/models/identity.dart';
part 'src/models/token.dart';
part 'src/models/jwt.dart';
part 'src/models/locale.dart';
part 'src/models/locale_code.dart';
part 'src/models/file.dart';
part 'src/models/team.dart';
part 'src/models/membership.dart';
Expand All @@ -38,3 +42,4 @@ part 'src/models/continent.dart';
part 'src/models/language.dart';
part 'src/models/currency.dart';
part 'src/models/phone.dart';
part 'src/models/headers.dart';
Loading

0 comments on commit 81c1e23

Please sign in to comment.