diff --git a/app/config/platforms.php b/app/config/platforms.php index eb92e7a774..7812e04462 100644 --- a/app/config/platforms.php +++ b/app/config/platforms.php @@ -130,7 +130,7 @@ return [ [ 'key' => 'dart', 'name' => 'Dart', - 'version' => '0.0.10', + 'version' => '0.0.11', 'url' => 'https://github.com/appwrite/sdk-for-dart', 'enabled' => true, 'beta' => true, diff --git a/app/sdks/flutter-dart/.dart_tool/package_config.json b/app/sdks/flutter-dart/.dart_tool/package_config.json new file mode 100644 index 0000000000..d278c92a34 --- /dev/null +++ b/app/sdks/flutter-dart/.dart_tool/package_config.json @@ -0,0 +1,242 @@ +{ + "configVersion": 2, + "packages": [ + { + "name": "archive", + "rootUri": "file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/archive-2.0.11", + "packageUri": "lib/", + "languageVersion": "2.0" + }, + { + "name": "args", + "rootUri": "file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/args-1.5.2", + "packageUri": "lib/", + "languageVersion": "2.0" + }, + { + "name": "async", + "rootUri": "file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/async-2.4.0", + "packageUri": "lib/", + "languageVersion": "2.0" + }, + { + "name": "boolean_selector", + "rootUri": "file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/boolean_selector-1.0.5", + "packageUri": "lib/", + "languageVersion": "2.0" + }, + { + "name": "charcode", + "rootUri": "file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/charcode-1.1.2", + "packageUri": "lib/", + "languageVersion": "1.0" + }, + { + "name": "collection", + "rootUri": "file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/collection-1.14.11", + "packageUri": "lib/", + "languageVersion": "2.0" + }, + { + "name": "convert", + "rootUri": "file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/convert-2.1.1", + "packageUri": "lib/", + "languageVersion": "1.17" + }, + { + "name": "cookie_jar", + "rootUri": "file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/cookie_jar-1.0.1", + "packageUri": "lib/", + "languageVersion": "1.20" + }, + { + "name": "crypto", + "rootUri": "file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/crypto-2.1.3", + "packageUri": "lib/", + "languageVersion": "2.1" + }, + { + "name": "cupertino_icons", + "rootUri": "file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/cupertino_icons-0.1.3", + "packageUri": "lib/", + "languageVersion": "2.0" + }, + { + "name": "dio", + "rootUri": "file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/dio-3.0.9", + "packageUri": "lib/", + "languageVersion": "2.4" + }, + { + "name": "dio_cookie_manager", + "rootUri": "file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/dio_cookie_manager-1.0.0", + "packageUri": "lib/", + "languageVersion": "2.4" + }, + { + "name": "flutter", + "rootUri": "file:///Users/eldadfux/Desktop/github/flutter/packages/flutter", + "packageUri": "lib/", + "languageVersion": "2.2" + }, + { + "name": "flutter_test", + "rootUri": "file:///Users/eldadfux/Desktop/github/flutter/packages/flutter_test", + "packageUri": "lib/", + "languageVersion": "2.2" + }, + { + "name": "flutter_web_auth", + "rootUri": "file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/flutter_web_auth-0.1.3", + "packageUri": "lib/", + "languageVersion": "2.1" + }, + { + "name": "http_parser", + "rootUri": "file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/http_parser-3.1.4", + "packageUri": "lib/", + "languageVersion": "2.3" + }, + { + "name": "image", + "rootUri": "file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/image-2.1.4", + "packageUri": "lib/", + "languageVersion": "2.0" + }, + { + "name": "matcher", + "rootUri": "file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.6", + "packageUri": "lib/", + "languageVersion": "2.2" + }, + { + "name": "meta", + "rootUri": "file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/meta-1.1.8", + "packageUri": "lib/", + "languageVersion": "1.12" + }, + { + "name": "path", + "rootUri": "file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/path-1.6.4", + "packageUri": "lib/", + "languageVersion": "2.0" + }, + { + "name": "path_provider", + "rootUri": "file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.5", + "packageUri": "lib/", + "languageVersion": "2.0" + }, + { + "name": "path_provider_macos", + "rootUri": "file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-0.0.4", + "packageUri": "lib/", + "languageVersion": "2.1" + }, + { + "name": "path_provider_platform_interface", + "rootUri": "file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/path_provider_platform_interface-1.0.1", + "packageUri": "lib/", + "languageVersion": "2.0" + }, + { + "name": "pedantic", + "rootUri": "file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/pedantic-1.8.0+1", + "packageUri": "lib/", + "languageVersion": "2.1" + }, + { + "name": "petitparser", + "rootUri": "file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/petitparser-2.4.0", + "packageUri": "lib/", + "languageVersion": "2.4" + }, + { + "name": "platform", + "rootUri": "file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/platform-2.2.1", + "packageUri": "lib/", + "languageVersion": "1.24" + }, + { + "name": "plugin_platform_interface", + "rootUri": "file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/plugin_platform_interface-1.0.2", + "packageUri": "lib/", + "languageVersion": "2.1" + }, + { + "name": "quiver", + "rootUri": "file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/quiver-2.0.5", + "packageUri": "lib/", + "languageVersion": "2.0" + }, + { + "name": "sky_engine", + "rootUri": "file:///Users/eldadfux/Desktop/github/flutter/bin/cache/pkg/sky_engine", + "packageUri": "lib/", + "languageVersion": "1.11" + }, + { + "name": "source_span", + "rootUri": "file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/source_span-1.5.5", + "packageUri": "lib/", + "languageVersion": "1.8" + }, + { + "name": "stack_trace", + "rootUri": "file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.9.3", + "packageUri": "lib/", + "languageVersion": "1.23" + }, + { + "name": "stream_channel", + "rootUri": "file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/stream_channel-2.0.0", + "packageUri": "lib/", + "languageVersion": "2.0" + }, + { + "name": "string_scanner", + "rootUri": "file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.0.5", + "packageUri": "lib/", + "languageVersion": "2.0" + }, + { + "name": "term_glyph", + "rootUri": "file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.1.0", + "packageUri": "lib/", + "languageVersion": "1.8" + }, + { + "name": "test_api", + "rootUri": "file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/test_api-0.2.11", + "packageUri": "lib/", + "languageVersion": "2.2" + }, + { + "name": "typed_data", + "rootUri": "file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/typed_data-1.1.6", + "packageUri": "lib/", + "languageVersion": "2.0" + }, + { + "name": "vector_math", + "rootUri": "file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/vector_math-2.0.8", + "packageUri": "lib/", + "languageVersion": "2.0" + }, + { + "name": "xml", + "rootUri": "file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/xml-3.5.0", + "packageUri": "lib/", + "languageVersion": "2.3" + }, + { + "name": "appwrite", + "rootUri": "../", + "packageUri": "lib/", + "languageVersion": "2.6" + } + ], + "generated": "2020-04-09T04:05:31.119957Z", + "generator": "pub", + "generatorVersion": "2.7.2" +} diff --git a/app/sdks/flutter-dart/.flutter-plugins b/app/sdks/flutter-dart/.flutter-plugins new file mode 100644 index 0000000000..b7534076d1 --- /dev/null +++ b/app/sdks/flutter-dart/.flutter-plugins @@ -0,0 +1,4 @@ +# This is a generated file; do not edit or check into version control. +flutter_web_auth=/Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/flutter_web_auth-0.1.3/ +path_provider=/Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.5/ +path_provider_macos=/Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-0.0.4/ diff --git a/app/sdks/flutter-dart/.flutter-plugins-dependencies b/app/sdks/flutter-dart/.flutter-plugins-dependencies new file mode 100644 index 0000000000..876688227d --- /dev/null +++ b/app/sdks/flutter-dart/.flutter-plugins-dependencies @@ -0,0 +1 @@ +{"_info":"// This is a generated file; do not edit or check into version control.","dependencyGraph":[{"name":"flutter_web_auth","dependencies":[]},{"name":"path_provider","dependencies":["path_provider_macos"]},{"name":"path_provider_macos","dependencies":[]}]} \ No newline at end of file diff --git a/app/sdks/flutter-dart/.packages b/app/sdks/flutter-dart/.packages new file mode 100644 index 0000000000..e90938fd26 --- /dev/null +++ b/app/sdks/flutter-dart/.packages @@ -0,0 +1,40 @@ +# Generated by pub on 2020-04-09 07:05:31.104233. +archive:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/archive-2.0.11/lib/ +args:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/args-1.5.2/lib/ +async:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/async-2.4.0/lib/ +boolean_selector:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/boolean_selector-1.0.5/lib/ +charcode:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/charcode-1.1.2/lib/ +collection:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/collection-1.14.11/lib/ +convert:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/convert-2.1.1/lib/ +cookie_jar:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/cookie_jar-1.0.1/lib/ +crypto:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/crypto-2.1.3/lib/ +cupertino_icons:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/cupertino_icons-0.1.3/lib/ +dio:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/dio-3.0.9/lib/ +dio_cookie_manager:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/dio_cookie_manager-1.0.0/lib/ +flutter:file:///Users/eldadfux/Desktop/github/flutter/packages/flutter/lib/ +flutter_test:file:///Users/eldadfux/Desktop/github/flutter/packages/flutter_test/lib/ +flutter_web_auth:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/flutter_web_auth-0.1.3/lib/ +http_parser:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/http_parser-3.1.4/lib/ +image:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/image-2.1.4/lib/ +matcher:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/matcher-0.12.6/lib/ +meta:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/meta-1.1.8/lib/ +path:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/path-1.6.4/lib/ +path_provider:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.5/lib/ +path_provider_macos:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-0.0.4/lib/ +path_provider_platform_interface:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/path_provider_platform_interface-1.0.1/lib/ +pedantic:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/pedantic-1.8.0+1/lib/ +petitparser:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/petitparser-2.4.0/lib/ +platform:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/platform-2.2.1/lib/ +plugin_platform_interface:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/plugin_platform_interface-1.0.2/lib/ +quiver:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/quiver-2.0.5/lib/ +sky_engine:file:///Users/eldadfux/Desktop/github/flutter/bin/cache/pkg/sky_engine/lib/ +source_span:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/source_span-1.5.5/lib/ +stack_trace:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/stack_trace-1.9.3/lib/ +stream_channel:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/stream_channel-2.0.0/lib/ +string_scanner:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/string_scanner-1.0.5/lib/ +term_glyph:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/term_glyph-1.1.0/lib/ +test_api:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/test_api-0.2.11/lib/ +typed_data:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/typed_data-1.1.6/lib/ +vector_math:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/vector_math-2.0.8/lib/ +xml:file:///Users/eldadfux/.pub-cache/hosted/pub.dartlang.org/xml-3.5.0/lib/ +appwrite:lib/ diff --git a/app/sdks/flutter-dart/README.md b/app/sdks/flutter-dart/README.md index 9c4efe1491..45a6839f4a 100644 --- a/app/sdks/flutter-dart/README.md +++ b/app/sdks/flutter-dart/README.md @@ -20,7 +20,7 @@ Add this to your package's `pubspec.yaml` file: ```yml dependencies: - appwrite: ^0.0.10 + appwrite: ^0.0.11 ``` You can install packages from the command line: diff --git a/app/sdks/flutter-dart/lib/client.dart b/app/sdks/flutter-dart/lib/client.dart index 511194caae..ce09936018 100644 --- a/app/sdks/flutter-dart/lib/client.dart +++ b/app/sdks/flutter-dart/lib/client.dart @@ -30,7 +30,7 @@ class Client { this.headers = { 'content-type': 'application/json', - 'x-sdk-version': 'appwrite:dart:0.0.10', + 'x-sdk-version': 'appwrite:dart:0.0.11', }; this.config = {}; diff --git a/app/sdks/flutter-dart/pubspec.lock b/app/sdks/flutter-dart/pubspec.lock new file mode 100644 index 0000000000..41d653a49a --- /dev/null +++ b/app/sdks/flutter-dart/pubspec.lock @@ -0,0 +1,266 @@ +# Generated by pub +# See https://dart.dev/tools/pub/glossary#lockfile +packages: + archive: + dependency: transitive + description: + name: archive + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.11" + args: + dependency: transitive + description: + name: args + url: "https://pub.dartlang.org" + source: hosted + version: "1.5.2" + async: + dependency: transitive + description: + name: async + url: "https://pub.dartlang.org" + source: hosted + version: "2.4.0" + boolean_selector: + dependency: transitive + description: + name: boolean_selector + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.5" + charcode: + dependency: transitive + description: + name: charcode + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.2" + collection: + dependency: transitive + description: + name: collection + url: "https://pub.dartlang.org" + source: hosted + version: "1.14.11" + convert: + dependency: transitive + description: + name: convert + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.1" + cookie_jar: + dependency: "direct main" + description: + name: cookie_jar + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.1" + crypto: + dependency: transitive + description: + name: crypto + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.3" + cupertino_icons: + dependency: "direct main" + description: + name: cupertino_icons + url: "https://pub.dartlang.org" + source: hosted + version: "0.1.3" + dio: + dependency: "direct main" + description: + name: dio + url: "https://pub.dartlang.org" + source: hosted + version: "3.0.9" + dio_cookie_manager: + dependency: "direct main" + description: + name: dio_cookie_manager + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.0" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_test: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" + flutter_web_auth: + dependency: "direct main" + description: + name: flutter_web_auth + url: "https://pub.dartlang.org" + source: hosted + version: "0.1.3" + http_parser: + dependency: transitive + description: + name: http_parser + url: "https://pub.dartlang.org" + source: hosted + version: "3.1.4" + image: + dependency: transitive + description: + name: image + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.4" + matcher: + dependency: transitive + description: + name: matcher + url: "https://pub.dartlang.org" + source: hosted + version: "0.12.6" + meta: + dependency: "direct main" + description: + name: meta + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.8" + path: + dependency: transitive + description: + name: path + url: "https://pub.dartlang.org" + source: hosted + version: "1.6.4" + path_provider: + dependency: "direct main" + description: + name: path_provider + url: "https://pub.dartlang.org" + source: hosted + version: "1.6.5" + path_provider_macos: + dependency: transitive + description: + name: path_provider_macos + url: "https://pub.dartlang.org" + source: hosted + version: "0.0.4" + path_provider_platform_interface: + dependency: transitive + description: + name: path_provider_platform_interface + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.1" + pedantic: + dependency: transitive + description: + name: pedantic + url: "https://pub.dartlang.org" + source: hosted + version: "1.8.0+1" + petitparser: + dependency: transitive + description: + name: petitparser + url: "https://pub.dartlang.org" + source: hosted + version: "2.4.0" + platform: + dependency: transitive + description: + name: platform + url: "https://pub.dartlang.org" + source: hosted + version: "2.2.1" + plugin_platform_interface: + dependency: transitive + description: + name: plugin_platform_interface + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.2" + quiver: + dependency: transitive + description: + name: quiver + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.5" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.99" + source_span: + dependency: transitive + description: + name: source_span + url: "https://pub.dartlang.org" + source: hosted + version: "1.5.5" + stack_trace: + dependency: transitive + description: + name: stack_trace + url: "https://pub.dartlang.org" + source: hosted + version: "1.9.3" + stream_channel: + dependency: transitive + description: + name: stream_channel + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.0" + string_scanner: + dependency: transitive + description: + name: string_scanner + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.5" + term_glyph: + dependency: transitive + description: + name: term_glyph + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.0" + test_api: + dependency: transitive + description: + name: test_api + url: "https://pub.dartlang.org" + source: hosted + version: "0.2.11" + typed_data: + dependency: transitive + description: + name: typed_data + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.6" + vector_math: + dependency: transitive + description: + name: vector_math + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.8" + xml: + dependency: transitive + description: + name: xml + url: "https://pub.dartlang.org" + source: hosted + version: "3.5.0" +sdks: + dart: ">=2.6.0 <3.0.0" + flutter: ">=1.10.0 <2.0.0" diff --git a/app/sdks/flutter-dart/pubspec.yaml b/app/sdks/flutter-dart/pubspec.yaml index 808c30e9a2..0db87d1568 100644 --- a/app/sdks/flutter-dart/pubspec.yaml +++ b/app/sdks/flutter-dart/pubspec.yaml @@ -1,5 +1,5 @@ name: appwrite -version: 0.0.10 +version: 0.0.11 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