Skip to content

WIP Dart SDK generation #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions config/client/dart.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pubAuthor: ORY GmbH
pubAuthorEmail: [email protected]
pubHomepage: https://www.ory.sh
pubName: ory-${PROJECT}-client
pubVersion: $VERSION
16 changes: 16 additions & 0 deletions scripts/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ cleanup() {
rm "clients/${PROJECT}/python/git_push.sh" || true
rm "clients/${PROJECT}/ruby/git_push.sh" || true
rm "clients/${PROJECT}/typescript/git_push.sh" || true
rm "clients/${PROJECT}/dart/git_push.sh" || true

rm "clients/${PROJECT}/java/.travis.yml" || true
rm "clients/${PROJECT}/php/.travis.yml" || true
Expand Down Expand Up @@ -47,6 +48,20 @@ typescript () {
cat "${file}"
}

dart () {
echo "Generating Dart..."

dir="clients/${PROJECT}/dart"

openapi-generator generate -i "${SPEC_FILE}" \
-g dart \
-o "$dir" \
--git-user-id ory \
--git-repo-id sdk \
--git-host github.com \
-c ./config/client/dart.yml.proc.yml
}

java () {
echo "Generating Java..."

Expand Down Expand Up @@ -184,5 +199,6 @@ java
php
python
ruby
dart

cleanup