From bceb7d0c66af6cc6776ecca258f7f1781868fb18 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Thu, 3 Mar 2022 07:44:38 +0000 Subject: [PATCH 1/2] updates --- docs/sdks/dart/CHANGELOG.md | 12 ++++++++++++ docs/sdks/dart/EXAMPLES.md | 5 +++-- docs/sdks/flutter/CHANGELOG.md | 12 ++++++++++++ docs/sdks/flutter/EXAMPLES.md | 11 +++++++++-- 4 files changed, 36 insertions(+), 4 deletions(-) diff --git a/docs/sdks/dart/CHANGELOG.md b/docs/sdks/dart/CHANGELOG.md index b34a6a3bd2..577116a5bc 100644 --- a/docs/sdks/dart/CHANGELOG.md +++ b/docs/sdks/dart/CHANGELOG.md @@ -1,3 +1,15 @@ +## 4.0.0 +* Support for Appwrite 0.13 +* **BREAKING** **Tags** have been renamed to **Deployments** +* **BREAKING** `createFile` function expects Bucket ID as the first parameter +* **BREAKING** `createDeployment` and `createFile` functions expect an instance **InputFile** rather than the instance of **MultipartFile** +* **BREAKING** `list` endpoints now contain a `total` attribute instead of `sum` +* `onProgress()` callback function for endpoints supporting file uploads +* Support for synchronous function executions +* Bug fixes and Improvements + +**Full Changelog for Appwrite 0.13 can be found here**: https://github.com/appwrite/appwrite/blob/master/CHANGES.md#version-0130 + ## 3.0.2 - String Attribute Type got fixed diff --git a/docs/sdks/dart/EXAMPLES.md b/docs/sdks/dart/EXAMPLES.md index 961f82cf3d..9b766b2229 100644 --- a/docs/sdks/dart/EXAMPLES.md +++ b/docs/sdks/dart/EXAMPLES.md @@ -41,10 +41,11 @@ Upload File: ```dart Storage storage = Storage(client); -MultipartFile file = MultipartFile.fromFile('./path-to-file/image.jpg', filename: 'image.jpg'); +InputFile file = InputFile(path: './path-to-file/image.jpg', fileName: 'image.jpg'); storage.createFile( - fileId: '[FILE_ID]', + bucketId: '[BUCKET_ID]', + fileId: '[FILE_ID]', // use 'unique()' to automatically generate a unique ID file: file, read: ['role:all'], write: [] diff --git a/docs/sdks/flutter/CHANGELOG.md b/docs/sdks/flutter/CHANGELOG.md index 6a6ccc90d7..e06f6421ee 100644 --- a/docs/sdks/flutter/CHANGELOG.md +++ b/docs/sdks/flutter/CHANGELOG.md @@ -1,3 +1,15 @@ +## 4.0.0 +* Support for Appwrite 0.13 +* **BREAKING** **Tags** have been renamed to **Deployments** +* **BREAKING** `createFile` function expects Bucket ID as the first parameter +* **BREAKING** `createDeployment` and `createFile` functions expect an instance **InputFile** rather than the instance of **MultipartFile** +* **BREAKING** `list` endpoints now contain a `total` attribute instead of `sum` +* `onProgress()` callback function for endpoints supporting file uploads +* Support for synchronous function executions +* Bug fixes and Improvements + +**Full Changelog for Appwrite 0.13 can be found here**: https://github.com/appwrite/appwrite/blob/master/CHANGES.md#version-0130 + ## 3.0.1 - Export Query Builder diff --git a/docs/sdks/flutter/EXAMPLES.md b/docs/sdks/flutter/EXAMPLES.md index 2d468db888..7b4015d308 100644 --- a/docs/sdks/flutter/EXAMPLES.md +++ b/docs/sdks/flutter/EXAMPLES.md @@ -37,10 +37,17 @@ Upload File: ```dart Storage storage = Storage(client); -MultipartFile file = MultipartFile.fromFile('./path-to-file/image.jpg', filename: 'image.jpg'); +late InputFile file; + +if(kIsWeb) { + file = InputFile(file: MultipartFile.fromFile('./path-to-file/image.jpg', filename: 'image.jpg')); +} else { + file = InputFile(path: './path-to-file/image.jpg', fileName: 'image.jpg'); +} storage.createFile( - fileId: '[FILE_ID]', + bucketId: '[BUCKET_ID]', + fileId: '[FILE_ID]', // use 'unique()' to automatically generate a unique ID file: file, read: ['role:all'], write: [] From d30f94195613846633b09a6b7015dff76e516d93 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Thu, 3 Mar 2022 09:42:24 +0000 Subject: [PATCH 2/2] downgrade CLI version --- app/config/platforms.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/config/platforms.php b/app/config/platforms.php index 01bbc3e578..7efa8367b5 100644 --- a/app/config/platforms.php +++ b/app/config/platforms.php @@ -180,7 +180,7 @@ return [ [ 'key' => 'cli', 'name' => 'Command Line', - 'version' => '0.16.0', + 'version' => '0.15.0', 'url' => 'https://github.com/appwrite/sdk-for-cli', 'package' => 'https://www.npmjs.com/package/appwrite-cli', 'enabled' => true,