Skip to content

Commit 0eb088a

Browse files
committed
Merge remote-tracking branch 'origin/master' into feat-fix-deploy-collection
2 parents dd8eefa + 6a3e452 commit 0eb088a

File tree

173 files changed

+5868
-2614
lines changed

Some content is hidden

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

173 files changed

+5868
-2614
lines changed

.travis.yml

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ language: php
1414
php:
1515
- 8.1
1616

17+
stages:
18+
- lint
19+
- test
20+
1721
env:
1822
- SDK=Android11Java8
1923
- SDK=Android11Java11
@@ -23,11 +27,12 @@ env:
2327
- SDK=CLINode16
2428
- SDK=DartBeta
2529
- SDK=DartStable
26-
- SDK=Deno1171
30+
- SDK=Deno1193
31+
- SDK=Deno1303
2732
- SDK=FlutterStable
33+
- SDK=FlutterBeta
2834
- SDK=Go112
2935
- SDK=Go118
30-
- SDK=FlutterBeta
3136
- SDK=KotlinJava8
3237
- SDK=KotlinJava11
3338
- SDK=KotlinJava17
@@ -42,25 +47,31 @@ env:
4247
- SDK=Ruby27
4348
- SDK=Ruby30
4449
- SDK=Ruby31
45-
- SDK=SwiftClient55
46-
- SDK=SwiftServer55
50+
- SDK=AppleSwift55
51+
- SDK=Swift55
4752
- SDK=WebChromium
4853
- SDK=WebNode
4954

5055
notifications:
5156
email:
5257
5358

59+
jobs:
60+
include:
61+
- stage: lint
62+
name: Lint
63+
install:
64+
- composer install
65+
script:
66+
- composer lint
67+
5468
before_install:
5569
- >
5670
if [ ! -z "${DOCKERHUB_PULL_USERNAME:-}" ]; then
5771
echo "${DOCKERHUB_PULL_PASSWORD}" | docker login --username "${DOCKERHUB_PULL_USERNAME}" --password-stdin
5872
fi
59-
60-
6173
install:
6274
- docker --version
6375
- composer install
64-
6576
script:
66-
- vendor/bin/phpunit tests/${SDK}Test.php
77+
- composer test tests/${SDK}Test.php

CONTRIBUTING.md

Lines changed: 44 additions & 44 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88

99
**WORK IN PROGRESS - NOT READY FOR GENERAL USAGE**
1010

11-
[Appwrite](https://appwrite.io) SDK generator is a PHP library for auto generating SDK libraries for multiple languages and platforms.
11+
[Appwrite](https://appwrite.io) SDK generator is a PHP library for auto-generating SDK libraries for multiple languages and platforms.
1212

1313
The SDK Generator uses predefined language settings as [Twig templates](https://twig.symfony.com/) to generate codebases based on different API specs.
1414

15-
Currently, the only spec supported is Swagger 2.0, but we intend to add support for more specifications in the near future. This generator is still lacking support for any definition/models specs.
15+
Currently, the only spec supported is Swagger 2.0, but we intend to add support for more specifications in the near future. This generator is still lacking support for any definition/model specs.
1616

1717
## Getting Started
1818

@@ -134,7 +134,7 @@ $sdk->generate(__DIR__ . '/examples/php'); // Generate source code
134134

135135
## Contributing
136136

137-
All code contributions - including those of people having commit access - must go through a pull request and approved by a core developer before being merged. This is to ensure proper review of all the code.
137+
All code contributions, including those by people with commit access, must go through a pull request and be approved by a core developer before being merged. This is to ensure proper review of all the code.
138138

139139
We truly ❤️ pull requests! If you wish to help, you can learn more about how you can contribute to this project in the [contribution guide](CONTRIBUTING.md).
140140

composer.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
"email": "[email protected]"
1010
}
1111
],
12+
"scripts": {
13+
"test": "vendor/bin/phpunit",
14+
"lint": "vendor/bin/phpcs",
15+
"format": "vendor/bin/phpcbf"
16+
},
1217
"autoload": {
1318
"psr-4": {
1419
"Appwrite\\SDK\\": "src/SDK",
@@ -19,7 +24,7 @@
1924
"psr-4": {"Tests\\": "tests"}
2025
},
2126
"require": {
22-
"php": ">=7.0.0",
27+
"php": ">=8.0",
2328
"ext-curl": "*",
2429
"ext-mbstring": "*",
2530
"ext-json": "*",
@@ -28,7 +33,8 @@
2833
},
2934
"require-dev": {
3035
"phpunit/phpunit": "^9.5.21",
31-
"brianium/paratest": "^6.4"
36+
"brianium/paratest": "^6.4",
37+
"squizlabs/php_codesniffer": "^3.6"
3238
},
3339
"minimum-stability": "dev",
3440
"prefer-stable": true

0 commit comments

Comments
 (0)