From 3d2f98017a651c964b7608261b8a0341c7a2001c Mon Sep 17 00:00:00 2001 From: Felix Angelov Date: Thu, 2 Mar 2023 12:09:20 -0600 Subject: [PATCH] chore: create package:shorebird_code_push_api_client --- .../shorebird_code_push_api_client.yaml | 28 +++++++++++++++++++ shorebird_code_push_api_client/.gitignore | 7 +++++ shorebird_code_push_api_client/README.md | 5 ++++ .../analysis_options.yaml | 1 + .../lib/shorebird_code_push_api_client.dart | 4 +++ .../src/shorebird_code_push_api_client.dart | 7 +++++ shorebird_code_push_api_client/pubspec.yaml | 12 ++++++++ .../shorebird_code_push_api_client_test.dart | 11 ++++++++ 8 files changed, 75 insertions(+) create mode 100644 .github/workflows/shorebird_code_push_api_client.yaml create mode 100644 shorebird_code_push_api_client/.gitignore create mode 100644 shorebird_code_push_api_client/README.md create mode 100644 shorebird_code_push_api_client/analysis_options.yaml create mode 100644 shorebird_code_push_api_client/lib/shorebird_code_push_api_client.dart create mode 100644 shorebird_code_push_api_client/lib/src/shorebird_code_push_api_client.dart create mode 100644 shorebird_code_push_api_client/pubspec.yaml create mode 100644 shorebird_code_push_api_client/test/src/shorebird_code_push_api_client_test.dart diff --git a/.github/workflows/shorebird_code_push_api_client.yaml b/.github/workflows/shorebird_code_push_api_client.yaml new file mode 100644 index 00000000..b30f72ca --- /dev/null +++ b/.github/workflows/shorebird_code_push_api_client.yaml @@ -0,0 +1,28 @@ +name: shorebird_code_push_api_client + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +on: + pull_request: + paths: + - ".github/workflows/shorebird_code_push_api_client.yaml" + - "packages/shorebird_code_push_api_client/lib/**" + - "packages/shorebird_code_push_api_client/test/**" + - "packages/shorebird_code_push_api_client/pubspec.yaml" + push: + branches: + - main + paths: + - ".github/workflows/shorebird_code_push_api_client.yaml" + - "packages/shorebird_code_push_api_client/lib/**" + - "packages/shorebird_code_push_api_client/test/**" + - "packages/shorebird_code_push_api_client/pubspec.yaml" + +jobs: + semantic-pull-request: + uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/semantic_pull_request.yml@v1 + + build: + uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1 diff --git a/shorebird_code_push_api_client/.gitignore b/shorebird_code_push_api_client/.gitignore new file mode 100644 index 00000000..526da158 --- /dev/null +++ b/shorebird_code_push_api_client/.gitignore @@ -0,0 +1,7 @@ +# See https://www.dartlang.org/guides/libraries/private-files + +# Files and directories created by pub +.dart_tool/ +.packages +build/ +pubspec.lock \ No newline at end of file diff --git a/shorebird_code_push_api_client/README.md b/shorebird_code_push_api_client/README.md new file mode 100644 index 00000000..d44bc8a3 --- /dev/null +++ b/shorebird_code_push_api_client/README.md @@ -0,0 +1,5 @@ +## shorebird_code_push_api_client + +The Shorebird CodePush API Client + +🚧 Under construction... 🚧 diff --git a/shorebird_code_push_api_client/analysis_options.yaml b/shorebird_code_push_api_client/analysis_options.yaml new file mode 100644 index 00000000..84e34fba --- /dev/null +++ b/shorebird_code_push_api_client/analysis_options.yaml @@ -0,0 +1 @@ +include: package:very_good_analysis/analysis_options.4.0.0.yaml diff --git a/shorebird_code_push_api_client/lib/shorebird_code_push_api_client.dart b/shorebird_code_push_api_client/lib/shorebird_code_push_api_client.dart new file mode 100644 index 00000000..f20b77ac --- /dev/null +++ b/shorebird_code_push_api_client/lib/shorebird_code_push_api_client.dart @@ -0,0 +1,4 @@ +/// The Shorebird CodePush API Client +library shorebird_code_push_api_client; + +export 'src/shorebird_code_push_api_client.dart'; diff --git a/shorebird_code_push_api_client/lib/src/shorebird_code_push_api_client.dart b/shorebird_code_push_api_client/lib/src/shorebird_code_push_api_client.dart new file mode 100644 index 00000000..a18def86 --- /dev/null +++ b/shorebird_code_push_api_client/lib/src/shorebird_code_push_api_client.dart @@ -0,0 +1,7 @@ +/// {@template shorebird_code_push_api_client} +/// The Shorebird CodePush API Client +/// {@endtemplate} +class ShorebirdCodePushApiClient { + /// {@macro shorebird_code_push_api_client} + const ShorebirdCodePushApiClient(); +} diff --git a/shorebird_code_push_api_client/pubspec.yaml b/shorebird_code_push_api_client/pubspec.yaml new file mode 100644 index 00000000..8d9f834c --- /dev/null +++ b/shorebird_code_push_api_client/pubspec.yaml @@ -0,0 +1,12 @@ +name: shorebird_code_push_api_client +description: The Shorebird CodePush API Client +version: 0.1.0+1 +publish_to: none + +environment: + sdk: ">=2.19.0 <3.0.0" + +dev_dependencies: + mocktail: ^0.3.0 + test: ^1.19.2 + very_good_analysis: ^4.0.0 diff --git a/shorebird_code_push_api_client/test/src/shorebird_code_push_api_client_test.dart b/shorebird_code_push_api_client/test/src/shorebird_code_push_api_client_test.dart new file mode 100644 index 00000000..8ef78e37 --- /dev/null +++ b/shorebird_code_push_api_client/test/src/shorebird_code_push_api_client_test.dart @@ -0,0 +1,11 @@ +// ignore_for_file: prefer_const_constructors +import 'package:shorebird_code_push_api_client/shorebird_code_push_api_client.dart'; +import 'package:test/test.dart'; + +void main() { + group('ShorebirdCodePushApiClient', () { + test('can be instantiated', () { + expect(ShorebirdCodePushApiClient(), isNotNull); + }); + }); +}