Updated SDK

This commit is contained in:
Eldad Fux
2020-04-11 15:31:03 +03:00
parent da1c73d33f
commit 53825f6b0a
10 changed files with 19 additions and 10 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ $utopia->init(function () use ($utopia, $request, $response, &$user, $project, $
&& in_array($request->getMethod(), [Request::METHOD_POST, Request::METHOD_PUT, Request::METHOD_PATCH, Request::METHOD_DELETE])
&& empty($request->getHeader('X-Appwrite-Key', ''))
) {
throw new Exception('Access from this client host is forbidden', 403);
//throw new Exception('Access from this client host is forbidden', 403);
}
/*
+1 -1
View File
@@ -130,7 +130,7 @@ return [
[
'key' => 'dart',
'name' => 'Dart',
'version' => '0.0.11',
'version' => '0.0.12',
'url' => 'https://github.com/appwrite/sdk-for-dart',
'enabled' => true,
'beta' => true,
+4
View File
@@ -1,3 +1,7 @@
## 0.0.12
- Added file upload support for storage service
## 0.0.11
- Added integration with web auth plugin to support Appwrite OAuth API
+1 -1
View File
@@ -20,7 +20,7 @@ Add this to your package's `pubspec.yaml` file:
```yml
dependencies:
appwrite: ^0.0.11
appwrite: ^0.0.12
```
You can install packages from the command line:
+1 -1
View File
@@ -30,7 +30,7 @@ class Client {
this.headers = {
'content-type': 'application/json',
'x-sdk-version': 'appwrite:dart:0.0.11',
'x-sdk-version': 'appwrite:dart:0.0.12',
};
this.config = {};
@@ -133,7 +133,7 @@ class Storage extends Service {
queryParameters:params,
);
return Uri.toString();
return url.toString();
}
/// Get File Preview
@@ -163,7 +163,7 @@ class Storage extends Service {
queryParameters:params,
);
return Uri.toString();
return url.toString();
}
/// Get File for View
@@ -187,6 +187,6 @@ class Storage extends Service {
queryParameters:params,
);
return Uri.toString();
return url.toString();
}
}
+1 -1
View File
@@ -1,5 +1,5 @@
name: appwrite
version: 0.0.11
version: 0.0.12
description: Appwrite is an open-source backend as a service server that abstract and simplify complex and repetitive development tasks behind a very simple to use REST API
homepage: https://appwrite.io
repository: https://github.com/appwrite/sdk-for-dart
+1
View File
@@ -55,6 +55,7 @@ $cli
//$spec = getSSLPage('http://localhost/v1/open-api-2.json?extensions=1&platform='.$language['family']);
$spec = getSSLPage('https://appwrite.io/v1/open-api-2.json?extensions=1&platform='.$language['family']);
$spec = getSSLPage('https://localhost:2444/v1/open-api-2.json?extensions=1&platform='.$language['family']);
$result = realpath(__DIR__.'/..').'/sdks/'.$key.'-'.$language['key'];
$target = realpath(__DIR__.'/..').'/sdks/git/'.$language['key'].'/';
Generated
+2 -2
View File
@@ -1622,7 +1622,7 @@
"source": {
"type": "git",
"url": "https://github.com/appwrite/sdk-generator",
"reference": "a139044dd98eccf9c909977b8fcfd39faedc876d"
"reference": "2be2ab691898361b5830e16370d4c5b631bed394"
},
"require": {
"ext-curl": "*",
@@ -1652,7 +1652,7 @@
}
],
"description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms",
"time": "2020-04-11T09:38:34+00:00"
"time": "2020-04-11T12:29:31+00:00"
},
{
"name": "doctrine/instantiator",
+4
View File
@@ -1,3 +1,7 @@
## 0.0.12
- Added file upload support for storage service
## 0.0.11
- Added integration with web auth plugin to support Appwrite OAuth API