Skip to content

Commit 39e6013

Browse files
committed
Improved code score and added support for private files
1 parent ac0fc40 commit 39e6013

Some content is hidden

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

72 files changed

+304
-344
lines changed

.travis.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
language: dart
2+
3+
dart: stable
4+
5+
os: linux
6+
7+
install:
8+
- mkdir -p ~/.pub-cache
9+
- |
10+
cat <<EOF > ~/.pub-cache/credentials.json
11+
{
12+
"accessToken":"$PUB_ACCESS_TOKEN",
13+
"refreshToken":"$PUB_REFRESH_TOKEN",
14+
"tokenEndpoint":"$PUB_TOKEN_EDNPOINT",
15+
"scopes":["https://www.googleapis.com/auth/plus.me","https://www.googleapis.com/auth/userinfo.email"],
16+
"expiration":$PUB_EXPIRATION
17+
}
18+
19+
deploy:
20+
provider: script
21+
skip_cleanup: true
22+
script: pub publish -f
23+
on:
24+
tags: true

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## 0.4.0-dev.1
2+
3+
- Improved code quality
4+
- Enabled access to private storage file
5+
- Added easier integration for preview images and the Image widget
6+
7+
## 0.3.0
8+
9+
- Upgraded to work with Appwrite 0.7
10+
111
## 0.3.0-dev.2
212

313
- Fix for an error when using a self-signed certificate for Web

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Add this to your package's `pubspec.yaml` file:
2020

2121
```yml
2222
dependencies:
23-
appwrite: ^0.3.0
23+
appwrite: ^0.4.0-dev.1
2424
```
2525
2626
You can install packages from the command line:

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ void main() { // Init SDK
88
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
99
.setProject('5df5acd0d48c2') // Your project ID
1010
;
11-
1211
Future result = account.createOAuth2Session(
1312
provider: 'amazon',
1413
);
@@ -19,4 +18,4 @@ void main() { // Init SDK
1918
}).catchError((error) {
2019
print(error.response);
2120
});
22-
}
21+
}

docs/examples/account/create-recovery.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ void main() { // Init SDK
88
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
99
.setProject('5df5acd0d48c2') // Your project ID
1010
;
11-
1211
Future result = account.createRecovery(
1312
email: 'email@example.com',
1413
url: 'https://example.com',
@@ -20,4 +19,4 @@ void main() { // Init SDK
2019
}).catchError((error) {
2120
print(error.response);
2221
});
23-
}
22+
}

docs/examples/account/create-session.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ void main() { // Init SDK
88
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
99
.setProject('5df5acd0d48c2') // Your project ID
1010
;
11-
1211
Future result = account.createSession(
1312
email: 'email@example.com',
1413
password: 'password',
@@ -20,4 +19,4 @@ void main() { // Init SDK
2019
}).catchError((error) {
2120
print(error.response);
2221
});
23-
}
22+
}

docs/examples/account/create-verification.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ void main() { // Init SDK
88
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
99
.setProject('5df5acd0d48c2') // Your project ID
1010
;
11-
1211
Future result = account.createVerification(
1312
url: 'https://example.com',
1413
);
@@ -19,4 +18,4 @@ void main() { // Init SDK
1918
}).catchError((error) {
2019
print(error.response);
2120
});
22-
}
21+
}

docs/examples/account/create.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ void main() { // Init SDK
88
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
99
.setProject('5df5acd0d48c2') // Your project ID
1010
;
11-
1211
Future result = account.create(
1312
email: 'email@example.com',
1413
password: 'password',
@@ -20,4 +19,4 @@ void main() { // Init SDK
2019
}).catchError((error) {
2120
print(error.response);
2221
});
23-
}
22+
}

docs/examples/account/delete-session.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ void main() { // Init SDK
88
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
99
.setProject('5df5acd0d48c2') // Your project ID
1010
;
11-
1211
Future result = account.deleteSession(
1312
sessionId: '[SESSION_ID]',
1413
);
@@ -19,4 +18,4 @@ void main() { // Init SDK
1918
}).catchError((error) {
2019
print(error.response);
2120
});
22-
}
21+
}

docs/examples/account/delete-sessions.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ void main() { // Init SDK
88
.setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint
99
.setProject('5df5acd0d48c2') // Your project ID
1010
;
11-
1211
Future result = account.deleteSessions();
1312

1413
result
@@ -17,4 +16,4 @@ void main() { // Init SDK
1716
}).catchError((error) {
1817
print(error.response);
1918
});
20-
}
19+
}

0 commit comments

Comments
 (0)