mirror of
https://github.com/appwrite/sdk-for-flutter.git
synced 2026-04-07 19:27:41 +00:00
fix exports
This commit is contained in:
@@ -1,11 +1,3 @@
|
||||
## 1.0.0
|
||||
- Support for Appwrite 0.10
|
||||
- Refactored for better cross platform support
|
||||
- Exception implements `toString()` to get proper error message for unhandled exceptions
|
||||
- Introduces new Realtime service, [more on official docs](link-to-realtime-docs)
|
||||
- Breaking Signature for `MultipartFile` has changed as now we are using `http` package. [Here is the new signature for MultipartFile](https://pub.dev/documentation/http/latest/http/MultipartFile-class.html)
|
||||
- Breaking Signature for `Response` has changed, now it only exposes the `data`.
|
||||
|
||||
## 0.7.1
|
||||
- Fix - createOAuth2Session completing too early
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ Add this to your package's `pubspec.yaml` file:
|
||||
|
||||
```yml
|
||||
dependencies:
|
||||
appwrite: ^1.0.0
|
||||
appwrite: ^1.0.1
|
||||
```
|
||||
|
||||
You can install packages from the command line:
|
||||
|
||||
@@ -15,6 +15,7 @@ export 'src/client.dart';
|
||||
export 'src/exception.dart';
|
||||
export 'src/realtime.dart';
|
||||
export 'src/realtime_subscription.dart';
|
||||
export 'src/realtime_message.dart';
|
||||
export 'package:http/http.dart' show MultipartFile;
|
||||
|
||||
part 'services/account.dart';
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
export 'src/client_browser.dart';
|
||||
@@ -0,0 +1 @@
|
||||
export 'src/client_io.dart';
|
||||
@@ -0,0 +1 @@
|
||||
export 'src/realtime_browser.dart';
|
||||
@@ -0,0 +1 @@
|
||||
export 'src/realtime_io.dart';
|
||||
@@ -33,7 +33,7 @@ class ClientBrowser extends ClientBase with ClientMixin {
|
||||
.replaceFirst('http://', 'ws://');
|
||||
_headers = {
|
||||
'content-type': 'application/json',
|
||||
'x-sdk-version': 'appwrite:flutter:1.0.0',
|
||||
'x-sdk-version': 'appwrite:flutter:1.0.1',
|
||||
'X-Appwrite-Response-Format' : '0.10.0',
|
||||
};
|
||||
|
||||
|
||||
+12
-6
@@ -52,7 +52,7 @@ class ClientIO extends ClientBase with ClientMixin {
|
||||
.replaceFirst('http://', 'ws://');
|
||||
this._headers = {
|
||||
'content-type': 'application/json',
|
||||
'x-sdk-version': 'appwrite:flutter:1.0.0',
|
||||
'x-sdk-version': 'appwrite:flutter:1.0.1',
|
||||
'X-Appwrite-Response-Format' : '0.10.0',
|
||||
};
|
||||
|
||||
@@ -192,11 +192,17 @@ class ClientIO extends ClientBase with ClientMixin {
|
||||
|
||||
Future webAuth(Uri url) {
|
||||
return FlutterWebAuth.authenticate(
|
||||
url: url.toString(),
|
||||
callbackUrlScheme: "appwrite-callback-" + config['project']!)
|
||||
.then((value) async {
|
||||
Cookie cookie = new Cookie(
|
||||
url.queryParameters['key']!, url.queryParameters['secret']!);
|
||||
url: url.toString(),
|
||||
callbackUrlScheme: "appwrite-callback-" + config['project']!,
|
||||
).then((value) async {
|
||||
Uri url = Uri.parse(value);
|
||||
final key = url.queryParameters['key'];
|
||||
final secret = url.queryParameters['secret'];
|
||||
if (key == null || secret == null) {
|
||||
throw AppwriteException(
|
||||
"Invalid OAuth2 Response. Key and Secret not available.", 500);
|
||||
}
|
||||
Cookie cookie = new Cookie(key, secret);
|
||||
cookie.domain = Uri.parse(_endPoint).host;
|
||||
cookie.httpOnly = true;
|
||||
cookie.path = '/';
|
||||
|
||||
@@ -58,12 +58,12 @@ class RealtimeMessage {
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
if (identical(this, other)) return true;
|
||||
|
||||
|
||||
return other is RealtimeMessage &&
|
||||
other.event == event &&
|
||||
mapEquals(other.payload, payload) &&
|
||||
listEquals(other.channels, channels) &&
|
||||
other.timestamp == timestamp;
|
||||
other.event == event &&
|
||||
mapEquals(other.payload, payload) &&
|
||||
listEquals(other.channels, channels) &&
|
||||
other.timestamp == timestamp;
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
name: appwrite
|
||||
version: 1.0.0
|
||||
version: 1.0.1
|
||||
description: Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API
|
||||
homepage: https://appwrite.io
|
||||
repository: https://github.com/appwrite/sdk-for-flutter
|
||||
|
||||
Reference in New Issue
Block a user