Skip to content

Commit afdfa7b

Browse files
committed
flutter web auth switched
1 parent 2f1f7c3 commit afdfa7b

15 files changed

+798
-1040
lines changed

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 7.0.0
2+
* **BREAKING** flutter_web_auth package now switched to
3+
14
## 6.0.0
25
* Support for Appwrite 0.15
36
* **NEW** Phone authentication `account.createPhoneSession()`
@@ -6,8 +9,8 @@
69
* **BREAKING** `dateCreated` attribute removed from `Team`, `Execution`, `File` models
710
* **BREAKING** `dateCreated` and `dateUpdated` attribute removed from `Func`, `Deployment`, `Bucket` models
811
* **BREAKING** Realtime channels
9-
* collections.[COLLECTION_ID] is now databases.[DATABASE_ID].ollections.[COLLECTION_ID]
10-
* collections.[COLLECTION_ID].documents is now databases.[DATABASE_ID].ollections.[COLLECTION_ID].documents
12+
* collections.[COLLECTION_ID] is now databases.[DATABASE_ID].collections.[COLLECTION_ID]
13+
* collections.[COLLECTION_ID].documents is now databases.[DATABASE_ID].collections.[COLLECTION_ID].documents
1114

1215
**Full Changelog for Appwrite 0.15 can be found here**: https://github.com/appwrite/appwrite/blob/master/CHANGES.md#version-0150
1316

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ Redistribution and use in source and binary forms, with or without modification,
99

1010
3. Neither the name Appwrite nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
1111

12-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
12+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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-0.15.0-blue.svg?style=flat-square)
5+
![Version](https://img.shields.io/badge/api%20version-0.15.2-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)
@@ -21,7 +21,7 @@ Add this to your package's `pubspec.yaml` file:
2121

2222
```yml
2323
dependencies:
24-
appwrite: ^6.0.0
24+
appwrite: ^7.0.0
2525
```
2626
2727
You can install packages from the command line:
@@ -51,8 +51,8 @@ In order to capture the Appwrite OAuth callback url, the following activity need
5151
<application ...>
5252
....
5353
<!-- Add this inside the <application> tag, along side the existing <activity> tags -->
54-
<activity android:name="com.linusu.flutter_web_auth.CallbackActivity" >
55-
<intent-filter android:label="flutter_web_auth">
54+
<activity android:name="com.linusu.flutter_web_auth_2.CallbackActivity" >
55+
<intent-filter android:label="flutter_web_auth_2">
5656
<action android:name="android.intent.action.VIEW" />
5757
<category android:name="android.intent.category.DEFAULT" />
5858
<category android:name="android.intent.category.BROWSABLE" />
@@ -91,7 +91,7 @@ For web in order to capture the OAuth2 callback URL and send it to the applicati
9191
close the window.
9292
<script>
9393
window.opener.postMessage({
94-
flutter-web-auth: window.___location.href
94+
flutter-web-auth2: window.___location.href
9595
}, window.___location.origin);
9696
window.close();
9797
</script>

lib/appwrite.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,12 @@ library appwrite;
22

33
import 'dart:async';
44
import 'dart:typed_data';
5-
import 'package:flutter/foundation.dart';
6-
import 'package:http/http.dart' show MultipartFile;
75
import 'src/enums.dart';
86
import 'src/client.dart';
97
import 'src/service.dart';
108
import 'src/input_file.dart';
119
import 'models.dart' as models;
1210
import 'src/upload_progress.dart';
13-
import 'src/exception.dart';
1411

1512
export 'src/response.dart';
1613
export 'src/client.dart';

0 commit comments

Comments
 (0)