Skip to content

Commit f478379

Browse files
committed
Merge branch 'master' into feat-improve-tests
2 parents 6f8dcfa + cfbb5a2 commit f478379

File tree

8 files changed

+93
-69
lines changed

8 files changed

+93
-69
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ composer update --ignore-platform-reqs --optimize-autoloader
2626
**Docker (UNIX)**
2727

2828
```bash
29-
docker run --rm --interactive --tty --volume "$(pwd)":/app composer install
29+
docker run --rm --interactive --tty --volume "$(pwd)":/app composer install --ignore-platform-reqs
3030
```
3131

3232
**Docker (Windows)**
3333

3434
```bash
35-
docker run --rm --interactive --tty --volume "%cd%":/app composer install
35+
docker run --rm --interactive --tty --volume "%cd%":/app composer install --ignore-platform-reqs
3636
```
3737

3838
Create language and SDK instances and generate code to target directory.
@@ -87,7 +87,7 @@ $sdk->generate(__DIR__ . '/examples/php'); // Generate source code
8787
| Web | ES5+ | [NPM Coding Style] | NPM, Yarn, | [@eldadfux] |
8888
| Flutter | | [Effective Dart] | pub tool | [@bartektartanus] [@Almoullim] [@lohanidamodar] |
8989
| Android (Kotlin, Java) | 5.0+ | [Android style guide] | Gradle, Maven | [@abnegate] |
90-
| iOS (Swift) | | | Swift Pkg Manager | [@armino-dev] |
90+
| iOS, macOS (Swift) | iOS 15+, macOS 11+ | [Swift Style Guide] | Swift Pkg Manager | [@abnegate] |
9191
| Unity (Csharp) | | | ? | [You?](https://github.com/appwrite/sdk-generator/issues/20) |
9292

9393
## Supported Server SDKs
@@ -97,15 +97,15 @@ $sdk->generate(__DIR__ . '/examples/php'); // Generate source code
9797
| TypeScript | | [NPM Coding Style] | NPM, Yarn | [@eldadfux] |
9898
| NodeJS | 8, 10, 12 | [NPM Coding Style] | NPM, Yarn | [@eldadfux] |
9999
| PHP | 7.0+ | [PHP FIG] | Composer | [@eldadfux] |
100-
| Ruby | 2.4+ | [Ruby Style Guide] | GEM | [@eldadfux] |
101-
| Python | 3.5+ | [PEP8] | PIP | [@eldadfux] |
100+
| Ruby | 2.4+ | [Ruby Style Guide] | GEM | [@eldadfux] [@abnegate] |
101+
| Python | 3.5+ | [PEP8] | PIP | [@eldadfux] [@abnegate] |
102102
| Dart | 2.7+ | [Effective Dart] | pub | [@lohanidamodar] |
103103
| Go | | [Effective Go] | go get | [@panz3r] |
104104
| .NET | .NET core 3.1 | [C# Coding Conventions]| NuGet | [@komemi] [@TorstenDittmann] |
105105
| D | | | ? | [You?](https://github.com/appwrite/sdk-generator/issues/20) |
106106
| Kotlin | 1.4.31+ | [Kotlin style guide] | Gradle, Maven | [@abnegate] |
107107
| Java | 8+ | [Google style guide] | Gradle, Maven | [@abnegate] |
108-
| Swift | | | Swift Pkg Manager | [@armino-dev] |
108+
| Swift | 5.5+ | [Swift Style Guide] | Swift Pkg Manager | [@abnegate] |
109109
| Docker CLI | | | Docker Hub | [@christyjacob4] |
110110

111111
[@Almoullim]: https://github.com/Almoullim

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"ext-curl": "*",
2424
"ext-mbstring": "*",
2525
"ext-json": "*",
26-
"twig/twig": "^2.14",
26+
"twig/twig": "^3.3",
2727
"matthiasmullie/minify": "^1.3"
2828
},
2929
"require-dev": {

composer.lock

Lines changed: 32 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/deno/src/models.d.ts.twig

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% macro sub_schema(property, definition, spec) %}
2-
{% spaceless %}
2+
{% apply spaceless %}
33
{% if property.sub_schema %}
44
{% if _self.get_generics_sub(definition, spec) %}
55
{{property.sub_schema | caseUcfirst}}<{{ _self.get_generics_sub(definition, spec) }}>{% if property.type == 'array' %}[]{% endif %}
@@ -9,10 +9,10 @@
99
{% else %}
1010
{{property.type | typeName}}
1111
{% endif %}
12-
{% endspaceless %}
12+
{% endapply %}
1313
{% endmacro %}
1414
{% macro get_generics(definition, spec) %}
15-
{% spaceless %}
15+
{% apply spaceless %}
1616
{% for property in definition.properties %}
1717
{% if spec.definitions[property.sub_schema].additionalProperties %}
1818
{{property.sub_schema | caseUcfirst}} extends Models.{{property.sub_schema | caseUcfirst}}
@@ -21,10 +21,10 @@
2121
{{_self.get_generics(spec.definitions[property.sub_schema], spec)}}
2222
{% endif %}
2323
{% endfor %}
24-
{% endspaceless %}
24+
{% endapply %}
2525
{% endmacro %}
2626
{% macro get_generics_sub(definition, spec, output = false) %}
27-
{% spaceless %}
27+
{% apply spaceless %}
2828
{% for property in definition.properties %}
2929
{% if spec.definitions[property.sub_schema].additionalProperties and output %}
3030
{{property.sub_schema | caseUcfirst}}
@@ -33,7 +33,7 @@
3333
{{_self.get_generics_sub(spec.definitions[property.sub_schema], spec, true)}}
3434
{% endif %}
3535
{% endfor %}
36-
{% endspaceless %}
36+
{% endapply %}
3737
{% endmacro %}
3838
export namespace Models {
3939
{% for definition in spec.definitions %}

templates/deno/src/services/service.ts.twig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% macro get_generics(definition, spec, output = false, first = false) %}
2-
{% spaceless %}
2+
{% apply spaceless %}
33
{% if first and definition.additionalProperties %}
44
{{definition.name | caseUcfirst}} extends Models.{{definition.name | caseUcfirst}}
55
{% endif %}
@@ -11,10 +11,10 @@
1111
{{_self.get_generics(spec.definitions[property.sub_schema], spec, true)}}
1212
{% endif %}
1313
{% endfor %}
14-
{% endspaceless %}
14+
{% endapply %}
1515
{% endmacro %}
1616
{% macro get_generics_return(definition, spec) %}
17-
{% spaceless %}
17+
{% apply spaceless %}
1818
{% for property in definition.properties %}
1919
{% if spec.definitions[property.sub_schema].additionalProperties %}
2020
{{property.sub_schema | caseUcfirst}}
@@ -23,7 +23,7 @@
2323
{{_self.get_generics_return(spec.definitions[property.sub_schema], spec)}}
2424
{% endif %}
2525
{% endfor %}
26-
{% endspaceless %}
26+
{% endapply %}
2727
{% endmacro %}
2828
import { Service } from '../service.ts';
2929
import { Payload } from '../client.ts';

0 commit comments

Comments
 (0)