Skip to content

Commit

Permalink
Feature/subscriptions (#7)
Browse files Browse the repository at this point in the history
* Update README.md

* chore: Update .github/workflows/checkout.yml to fix Codecov upload issue

* chore: Update .github/workflows/checkout.yml to fix Codecov upload issue

* chore: Fix Codecov upload issue in .github/workflows/checkout.yml

* Add token

* Refactor imports to use 'channel_event.dart' instead of 'channel_push.dart'

* chore: Refactor ChatRepositorySpinifyImpl to use lazy loading for event streams

* Refactor imports to use 'channel_event.dart' instead of 'channel_push.dart'

* Refactor imports to use 'channel_event.dart' instead of 'channel_push.dart'

* Refactor SpinifySubscriptionMixin to use specific implementation classes for client and server subscriptions

* Refactor SpinifySubscriptionMixin to use specific implementation classes for client and server subscriptions

* Refactor SpinifySubscriptionMixin to use specific implementation classes for client and server subscriptions

* Refactor SpinifySubscriptionMixin to use specific implementation classes for client and server subscriptions

* Refactor SpinifySubscriptionMixin to use specific implementation classes for client and server subscriptions

* Refactor SpinifySubscriptionMixin to use specific implementation classes for client and server subscriptions

* Refactor SpinifySubscriptionMixin to use specific implementation classes for client and server subscriptions

* Reformat

* Refactor SpinifyChannelEvents extension to use a more descriptive parameter name

* Refactor SpinifyChannelEvents extension parameter name for clarity

* Refactor SpinifyServerSubscription test to use fakeAsync

* Refactor SpinifyImpl to handle missing subscriptions in SpinifySubscriptionMixin

* Refactor SpinifyImpl to handle missing subscriptions in SpinifySubscriptionMixin

* Refactor task groups in .vscode/tasks.json for better organization

* Refactor SpinifyImpl to handle missing subscriptions in SpinifySubscriptionMixin

* Refactor SpinifyImpl to improve handling of server subscriptions in SpinifySubscriptionMixin

* Refactor SpinifyImpl to use Future instead of FutureOr in callback types

* Refactor SpinifyImpl to handle missing subscriptions in SpinifySubscriptionMixin

* Refactor SpinifyImpl to handle missing subscriptions in SpinifySubscriptionMixin

* Refactor SpinifyImpl to handle missing subscriptions in SpinifySubscriptionMixin

* Refactor SpinifyImpl to handle missing subscriptions in SpinifySubscriptionMixin

* Refactor SpinifyImpl to add support for Protobuf transport

* Refactor SpinifyImpl to improve handling of server subscriptions in SpinifySubscriptionMixin

* Refactor SpinifyImpl to improve handling of server subscriptions in SpinifySubscriptionMixin

* Refactor SpinifyImpl to update JSON codec support in SpinifySubscriptionMixin

* Refactor SpinifyImpl to add support for Protobuf transport

* Refactor SpinifyImpl to add support for Protobuf transport

* Refactor SpinifyImpl to add support for Protobuf transport

* Refactor SpinifyImpl to handle nullable data in subscription state

* Refactor SpinifyImpl to update JSON codec support in SpinifySubscriptionMixin

* Refactor SpinifyImpl to update JSON codec support in SpinifySubscriptionMixin

* Refactor SpinifyImpl to update JSON codec support in SpinifySubscriptionMixin

* Refactor SpinifyImpl to handle disconnect advice from the server

* Refactor SpinifyImpl to handle disconnect advice from the server

* Refactor SpinifyImpl to handle disconnect advice from the server

* Refactor SpinifyImpl to handle disconnect advice from the server

* Refactor SpinifyImpl to improve handling of WebSocket close codes and reasons

* Refactor SpinifyImpl to remove redundant code in SpinifySubscriptionMixin

* Refactor SpinifyImpl to handle WebSocket close codes and reasons more effectively

* Refactor SpinifyImpl to remove redundant code in SpinifySubscriptionMixin

* Refactor SpinifyImpl to add dart:build_runner:watch task

* Refactor SpinifyImpl to add WebSocket close code and reason handling

* Refactor SpinifyImpl to add optional subscription on creation

* Refactor SpinifyImpl to handle WebSocket close codes and reasons more effectively

* Refactor SpinifyImpl to handle WebSocket close codes and reasons more effectively

* Refactor SpinifyImpl to add SpinifyAnnotation for manual user methods

* Refactor SpinifyImpl to improve handling of WebSocket close codes and reasons

* Refactor SpinifyImpl to remove redundant code in SpinifySubscriptionMixin

* Refactor SpinifyMetrics to remove commented out code for ping

* Merge branch 'feature/subscriptions' of https://github.com/PlugFox/spinify into feature/subscriptions

* Refactor SpinifyImpl to handle WebSocket close codes and reasons more effectively

* Refactor SpinifyImpl to tear down reconnect timer on subscription implementation

* Refactor SpinifyImpl to add publications to client _eventController

* Refactor SpinifyImpl to remove commented out code and add publication handling

* Refactor SpinifyImpl to remove commented out code, handle publications, and improve WebSocket close code handling

* Refactor SpinifySubscriptionImpl to update error message for closed Spinify client

* Refactor SpinifyImpl to update publication handling and offset in client subscription

* Refactor SpinifyImpl to export SpinifyMetrics and SpinifyMetrics$Channel

* Refactor SpinifyImpl to update subscription state handling and fix setState calls

* Refactor SpinifyImpl to import Metric model and handle publications

* Refactor SpinifyImpl to update SpinifyMetrics class references

* Refactor SpinifyImpl to implement rotating log buffer

* Refactor SpinifySubscriptionState to update data parameter in subscribed factory constructor

* Refactor SpinifyImpl to update log level handling and add isError property

* Refactor SpinifyClientSubscriptionImpl to improve unsubscribe logic and error handling

* Refactor SpinifyClientSubscriptionImpl to update refresh subscription timer logic

* Refactor SpinifyImpl to update SpinifyMetrics class references

* Refactor SpinifyImpl to update SpinifyMetrics class references

* Refactor SpinifyImpl to improve unsubscribe logic and error handling

* Refactor SpinifyImpl to implement rotating log buffer

* Refactor SpinifyImpl to remove unused code and update dependencies

* Refactor SpinifyImpl to update dependencies and improve WebSocket handling

* Refactor SpinifyImpl to update dependencies and improve WebSocket handling

* Refactor SpinifyImpl to update dependencies and improve WebSocket handling
  • Loading branch information
PlugFox authored Jul 16, 2024
1 parent 8f29d14 commit 337bf34
Show file tree
Hide file tree
Showing 269 changed files with 3,234 additions and 23,371 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/checkout.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,13 @@ jobs:
key: ${{ runner.os }}-spinify-${{ env.cache-name }}-${{ hashFiles('**/pubspec.yaml') }}

- name: 🗄️ Export pub cache directory
run: export PUB_CACHE=$PWD/.pub_cache/
run: |
export PUB_CACHE=$PWD/.pub_cache/
export PATH="$PATH":"$HOME/.pub-cache/bin"
- name: 👷 Install Dependencies
timeout-minutes: 1
run: |
dart pub get --no-example
run: dart pub get --no-example

- name: 🔎 Check format
timeout-minutes: 1
Expand All @@ -81,5 +82,5 @@ jobs:
- name: 📥 Upload coverage to Codecov
timeout-minutes: 1
uses: codecov/codecov-action@v3
# with:
# token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
42 changes: 34 additions & 8 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": "0.2.0",
"configurations": [
{
/* {
"name": "[Flutter] Example (Local)",
"request": "launch",
"type": "dart",
Expand All @@ -17,8 +17,8 @@
"args": [
"--dart-define-from-file=config/local.json"
]
},
{
}, */
/* {
"name": "[Flutter] Example (Development)",
"request": "launch",
"type": "dart",
Expand All @@ -34,11 +34,11 @@
"args": [
"--dart-define-from-file=config/development.json"
]
},
}, */
// https://pub.dev/packages/test
// dart test test/unit_test.dart --color --platform=vm
{
"name": "[Dart] Unit test (VM)",
"name": "[Dart] Unit test (vm)",
"request": "launch",
"type": "dart",
"program": "test/unit_test.dart",
Expand Down Expand Up @@ -115,7 +115,7 @@
},
// dart test test/smoke_test.dart --color --platform=vm
{
"name": "[Dart] Smoke Test (VM)",
"name": "[Dart] Smoke Test (vm)",
"request": "launch",
"type": "dart",
"program": "test/smoke_test.dart",
Expand All @@ -136,8 +136,34 @@
"--concurrency=12"
],
"args": [],
"preLaunchTask": "echo-server:start",
"postDebugTask": "echo-server:stop"
"preLaunchTask": "echo:start",
"postDebugTask": "echo:stop"
},
{
"name": "[Dart] Smoke Test (dart2js)",
"request": "launch",
"type": "dart",
"program": "test/smoke_test.dart",
"env": {
"ENVIRONMENT": "test"
},
"console": "debugConsole",
"runTestsOnDevice": false,
"templateFor": "test",
"toolArgs": [
"--color",
"--debug",
"--coverage=coverage",
"--reporter=expanded",
"--platform=chrome",
"--compiler=dart2js",
"--file-reporter=json:coverage/tests.json",
"--timeout=30s",
"--concurrency=12"
],
"args": [],
/* "preLaunchTask": "echo:start",
"postDebugTask": "echo:stop" */
},
// dart run server/bin/server.dart
{
Expand Down
Loading

0 comments on commit 337bf34

Please sign in to comment.