Skip to content

Commit 4adba1f

Browse files
committed
Release candidate for 1.5.x
1 parent 319aae7 commit 4adba1f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+294
-218
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ install:
2424
deploy:
2525
provider: script
2626
skip_cleanup: true
27-
script: cd $TRAVIS_BUILD_DIR && dart format ./lib/ && flutter pub publish -f
27+
script: cd $TRAVIS_BUILD_DIR && dart format ./lib/ && dart format ./test/ && flutter pub publish -f
2828
on:
2929
tags: true

README.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Add this to your package's `pubspec.yaml` file:
2121

2222
```yml
2323
dependencies:
24-
appwrite: ^12.0.0-rc.4
24+
appwrite: ^12.0.0-rc.5
2525
```
2626
2727
You can install packages from the command line:
@@ -138,10 +138,7 @@ When trying to connect to Appwrite from an emulator or a mobile device, localhos
138138
Account account = Account(client);
139139
final user = await account
140140
.create(
141-
userId: ID.unique(),
142-
143-
password: 'password',
144-
name: 'My Name'
141+
userId: ID.unique(), email: "[email protected]", password: "password", name: "Walter O'Brien"
145142
);
146143
```
147144

@@ -166,10 +163,7 @@ void main() {
166163
167164
final user = await account
168165
.create(
169-
userId: ID.unique(),
170-
171-
password: 'password',
172-
name: 'My Name'
166+
userId: ID.unique(), email: "[email protected]", password: "password", name: "Walter O'Brien"
173167
);
174168
}
175169
```
@@ -181,7 +175,7 @@ The Appwrite Flutter SDK raises `AppwriteException` object with `message`, `type
181175
Account account = Account(client);
182176
183177
try {
184-
final user = await account.create(userId: ID.unique(), email: [email protected]’,password: password, name: ‘name’);
178+
final user = await account.create(userId: ID.unique(), email: "[email protected]", password: "password", name: "Walter O'Brien");
185179
print(user.toMap());
186180
} on AppwriteException catch(e) {
187181
//show message to user or do other operation based on error as required

docs/examples/account/create2f-a-challenge.md renamed to docs/examples/account/create-challenge.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Client client = Client()
66

77
Account account = Account(client);
88

9-
Future result = account.create2FAChallenge(
9+
Future result = account.createChallenge(
1010
factor: AuthenticationFactor.totp,
1111
);
1212

docs/examples/account/create-email-token.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Client client = Client()
77
Account account = Account(client);
88

99
Future result = account.createEmailToken(
10-
userId: '[USER_ID]',
10+
userId: '<USER_ID>',
1111
1212
phrase: false, // (optional)
1313
);

docs/examples/account/create-magic-u-r-l-token.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Client client = Client()
77
Account account = Account(client);
88

99
Future result = account.createMagicURLToken(
10-
userId: '[USER_ID]',
10+
userId: '<USER_ID>',
1111
1212
url: 'https://example.com', // (optional)
1313
phrase: false, // (optional)

docs/examples/account/create-o-auth2session.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ Future result = account.createOAuth2Session(
1010
provider: OAuthProvider.amazon,
1111
success: 'https://example.com', // (optional)
1212
failure: 'https://example.com', // (optional)
13-
token: false, // (optional)
1413
scopes: [], // (optional)
1514
);
1615

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import 'package:appwrite/appwrite.dart';
2+
3+
Client client = Client()
4+
.setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
5+
.setProject('5df5acd0d48c2'); // Your project ID
6+
7+
Account account = Account(client);
8+
9+
Future result = account.createOAuth2Token(
10+
provider: OAuthProvider.amazon,
11+
success: 'https://example.com', // (optional)
12+
failure: 'https://example.com', // (optional)
13+
scopes: [], // (optional)
14+
);
15+
16+
result.then((response) {
17+
print(response);
18+
}).catchError((error) {
19+
print(error.response);
20+
});
21+

docs/examples/account/create-phone-token.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Client client = Client()
77
Account account = Account(client);
88

99
Future result = account.createPhoneToken(
10-
userId: '[USER_ID]',
10+
userId: '<USER_ID>',
1111
phone: '+12065550100',
1212
);
1313

docs/examples/account/create-push-target.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ Client client = Client()
77
Account account = Account(client);
88

99
Future result = account.createPushTarget(
10-
targetId: '[TARGET_ID]',
11-
identifier: '[IDENTIFIER]',
12-
providerId: '[PROVIDER_ID]', // (optional)
10+
targetId: '<TARGET_ID>',
11+
identifier: '<IDENTIFIER>',
12+
providerId: '<PROVIDER_ID>', // (optional)
1313
);
1414

1515
result.then((response) {

docs/examples/account/create-session.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Client client = Client()
77
Account account = Account(client);
88

99
Future result = account.createSession(
10-
userId: '[USER_ID]',
11-
secret: '[SECRET]',
10+
userId: '<USER_ID>',
11+
secret: '<SECRET>',
1212
);
1313

1414
result.then((response) {

0 commit comments

Comments
 (0)