diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..fde4917 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,19 @@ +name: Publish to pub.dev + +on: + push: + tags: + - 'v[0-9]+.[0-9]+.[0-9]+*' + +jobs: + publish: + runs-on: ubuntu-latest + permissions: + id-token: write # Required for authentication using GitHub-signed OIDC token + steps: + - uses: actions/checkout@v3 + - uses: flutter-actions/setup-flutter@v2 + - name: Install dependencies + run: flutter pub get + - name: Publish + run: dart pub publish --force diff --git a/CHANGELOG.md b/CHANGELOG.md index 321c7ee..3c5efed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## Version 0.1.1 + +- Fix connector base url and auto release via Github actions + ## Version 0.1.0 - Initial release of the project diff --git a/example/pubspec.lock b/example/pubspec.lock index dd75757..93af59d 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -134,7 +134,7 @@ packages: path: ".." relative: true source: path - version: "0.1.0" + version: "0.1.1" sky_engine: dependency: transitive description: flutter diff --git a/lib/quiltt_connector.dart b/lib/quiltt_connector.dart index 9cfa88f..d01236b 100644 --- a/lib/quiltt_connector.dart +++ b/lib/quiltt_connector.dart @@ -59,7 +59,7 @@ class _WebViewPage { Widget build(BuildContext context) { var oauthRedirectUrl = Uri.encodeComponent(_config.oauthRedirectUrl); var connectorUrl = - "https://${_config.connectorId}.quiltt.dev/?mode=webview&oauth_redirect_url=$oauthRedirectUrl&quiltt_debug=true"; + "https://${_config.connectorId}.quiltt.app/?mode=webview&oauth_redirect_url=$oauthRedirectUrl"; var javaScript = """ const options = { source: 'quiltt', diff --git a/pubspec.yaml b/pubspec.yaml index 6f812fc..6ddda04 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: quiltt_connector -description: Quiltt Connector SDK -version: 0.1.0 +description: A Flutter SDK for Quiltt Connector, support iOS and Android. +version: 0.1.1 homepage: https://quiltt.io/ repository: https://github.com/quiltt/quiltt-connector-flutter-sdk