From 780842839d0809e212a4b6dce1379366b7dfac63 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Sun, 24 May 2020 08:30:49 +0300 Subject: [PATCH] Updates to Flutter SDK --- app/sdks/client-flutter/CHANGELOG.md | 3 ++- .../client-flutter/lib/services/avatars.dart | 20 +++++++++---------- .../client-flutter/lib/services/storage.dart | 12 +++++------ composer.lock | 16 +++++++-------- docs/sdks/flutter/CHANGELOG.md | 3 ++- 5 files changed, 28 insertions(+), 26 deletions(-) diff --git a/app/sdks/client-flutter/CHANGELOG.md b/app/sdks/client-flutter/CHANGELOG.md index b94443aeb5..37f6a30a69 100644 --- a/app/sdks/client-flutter/CHANGELOG.md +++ b/app/sdks/client-flutter/CHANGELOG.md @@ -1,7 +1,8 @@ ## 0.2.2 - Fixed an error that happend when the OAuth session creation request was sent before any other API call -- +- Fixed a bug in the Avatars service where location URL generation had syntax error + ## 0.2.1 - Fixed callback scheme diff --git a/app/sdks/client-flutter/lib/services/avatars.dart b/app/sdks/client-flutter/lib/services/avatars.dart index 2ce6ed2633..db73c0de86 100644 --- a/app/sdks/client-flutter/lib/services/avatars.dart +++ b/app/sdks/client-flutter/lib/services/avatars.dart @@ -51,14 +51,14 @@ class Avatars extends Service { }; Uri endpoint = Uri.parse(client.endPoint); - Uri url = new Uri(scheme: endpoint.scheme, + Uri location = new Uri(scheme: endpoint.scheme, host: endpoint.host, port: endpoint.port, path: endpoint.path + path, queryParameters:params, ); - return url.toString(); + return location.toString(); } /// Get Favicon @@ -75,14 +75,14 @@ class Avatars extends Service { }; Uri endpoint = Uri.parse(client.endPoint); - Uri url = new Uri(scheme: endpoint.scheme, + Uri location = new Uri(scheme: endpoint.scheme, host: endpoint.host, port: endpoint.port, path: endpoint.path + path, queryParameters:params, ); - return url.toString(); + return location.toString(); } /// Get Country Flag @@ -102,14 +102,14 @@ class Avatars extends Service { }; Uri endpoint = Uri.parse(client.endPoint); - Uri url = new Uri(scheme: endpoint.scheme, + Uri location = new Uri(scheme: endpoint.scheme, host: endpoint.host, port: endpoint.port, path: endpoint.path + path, queryParameters:params, ); - return url.toString(); + return location.toString(); } /// Get Image from URL @@ -130,14 +130,14 @@ class Avatars extends Service { }; Uri endpoint = Uri.parse(client.endPoint); - Uri url = new Uri(scheme: endpoint.scheme, + Uri location = new Uri(scheme: endpoint.scheme, host: endpoint.host, port: endpoint.port, path: endpoint.path + path, queryParameters:params, ); - return url.toString(); + return location.toString(); } /// Get QR Code @@ -157,13 +157,13 @@ class Avatars extends Service { }; Uri endpoint = Uri.parse(client.endPoint); - Uri url = new Uri(scheme: endpoint.scheme, + Uri location = new Uri(scheme: endpoint.scheme, host: endpoint.host, port: endpoint.port, path: endpoint.path + path, queryParameters:params, ); - return url.toString(); + return location.toString(); } } \ No newline at end of file diff --git a/app/sdks/client-flutter/lib/services/storage.dart b/app/sdks/client-flutter/lib/services/storage.dart index 47497c7699..696c15ee3a 100644 --- a/app/sdks/client-flutter/lib/services/storage.dart +++ b/app/sdks/client-flutter/lib/services/storage.dart @@ -125,14 +125,14 @@ class Storage extends Service { }; Uri endpoint = Uri.parse(client.endPoint); - Uri url = new Uri(scheme: endpoint.scheme, + Uri location = new Uri(scheme: endpoint.scheme, host: endpoint.host, port: endpoint.port, path: endpoint.path + path, queryParameters:params, ); - return url.toString(); + return location.toString(); } /// Get File Preview @@ -155,14 +155,14 @@ class Storage extends Service { }; Uri endpoint = Uri.parse(client.endPoint); - Uri url = new Uri(scheme: endpoint.scheme, + Uri location = new Uri(scheme: endpoint.scheme, host: endpoint.host, port: endpoint.port, path: endpoint.path + path, queryParameters:params, ); - return url.toString(); + return location.toString(); } /// Get File for View @@ -179,13 +179,13 @@ class Storage extends Service { }; Uri endpoint = Uri.parse(client.endPoint); - Uri url = new Uri(scheme: endpoint.scheme, + Uri location = new Uri(scheme: endpoint.scheme, host: endpoint.host, port: endpoint.port, path: endpoint.path + path, queryParameters:params, ); - return url.toString(); + return location.toString(); } } \ No newline at end of file diff --git a/composer.lock b/composer.lock index 8515bf6cd8..bc26085ac2 100644 --- a/composer.lock +++ b/composer.lock @@ -485,12 +485,12 @@ "source": { "type": "git", "url": "https://github.com/guzzle/guzzle.git", - "reference": "c8162bee934111d42b1db4869c09fb58926074c7" + "reference": "0d137e94480b275aadd1f2536a76d91cf580711c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/c8162bee934111d42b1db4869c09fb58926074c7", - "reference": "c8162bee934111d42b1db4869c09fb58926074c7", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/0d137e94480b275aadd1f2536a76d91cf580711c", + "reference": "0d137e94480b275aadd1f2536a76d91cf580711c", "shasum": "" }, "require": { @@ -498,7 +498,7 @@ "guzzlehttp/promises": "^1.0", "guzzlehttp/psr7": "^1.6.1", "php": ">=5.5", - "symfony/polyfill-intl-idn": "^1.11" + "symfony/polyfill-intl-idn": "1.17.0" }, "require-dev": { "ext-curl": "*", @@ -544,7 +544,7 @@ "rest", "web service" ], - "time": "2020-05-19T12:55:02+00:00" + "time": "2020-05-23T18:58:46+00:00" }, { "name": "guzzlehttp/promises", @@ -1141,7 +1141,7 @@ }, { "name": "symfony/polyfill-intl-idn", - "version": "dev-master", + "version": "v1.17.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-idn.git", @@ -1745,7 +1745,7 @@ "source": { "type": "git", "url": "https://github.com/appwrite/sdk-generator", - "reference": "e889aa5764f6cca683b5ccd83eed2e4632173937" + "reference": "69f8cfabf7f40cb9fb7198cdd9770afdd030a88a" }, "require": { "ext-curl": "*", @@ -1775,7 +1775,7 @@ } ], "description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms", - "time": "2020-05-23T14:30:05+00:00" + "time": "2020-05-24T05:26:35+00:00" }, { "name": "doctrine/instantiator", diff --git a/docs/sdks/flutter/CHANGELOG.md b/docs/sdks/flutter/CHANGELOG.md index b94443aeb5..37f6a30a69 100644 --- a/docs/sdks/flutter/CHANGELOG.md +++ b/docs/sdks/flutter/CHANGELOG.md @@ -1,7 +1,8 @@ ## 0.2.2 - Fixed an error that happend when the OAuth session creation request was sent before any other API call -- +- Fixed a bug in the Avatars service where location URL generation had syntax error + ## 0.2.1 - Fixed callback scheme