Skip to content

Commit

Permalink
removes flutter dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
maeddin committed Jul 28, 2024
1 parent 74661b5 commit 3ba0d16
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
steps:
- uses: actions/checkout@v4

# testing is simpler with Flutter
- uses: subosito/flutter-action@v2

- name: Install dependencies
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ migrate_working_dir/
**/doc/api/
.dart_tool/
build/

# Coverage
coverage/
10 changes: 0 additions & 10 deletions .metadata

This file was deleted.

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.1.1

- removes Flutter dependency

## 0.1.0

- initial release
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![likes](https://img.shields.io/pub/likes/token_bucket_algorithm)](https://pub.dev/packages/token_bucket_algorithm/score)
[![popularity](https://img.shields.io/pub/popularity/token_bucket_algorithm)](https://pub.dev/packages/token_bucket_algorithm/score)
[![pub points](https://img.shields.io/pub/points/token_bucket_algorithm)](https://pub.dev/packages/token_bucket_algorithm/score)
[![license](https://img.shields.io/github/license/splashbyte/dart_token_bucket_algorithm.svg)](https://github.com/SplashByte/dart_token_bucket_algorithm/blob/main/LICENSE)
[![license](https://img.shields.io/github/license/splashbyte/dart_token_bucket_algorithm.svg)](https://github.com/splashbyte/dart_token_bucket_algorithm/blob/main/LICENSE)
[![codecov](https://codecov.io/gh/splashbyte/dart_token_bucket_algorithm/branch/main/graph/badge.svg?token=NY1D6W88H2)](https://codecov.io/gh/splashbyte/dart_token_bucket_algorithm)

This Dart package provides rate limiting by using an implementation of the token bucket algorithm.
Expand Down
2 changes: 1 addition & 1 deletion analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include: package:flutter_lints/flutter.yaml
include: package:lints/recommended.yaml

analyzer:
language:
Expand Down
10 changes: 3 additions & 7 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: token_bucket_algorithm
description: "Implementation of the token bucket algorithm."
version: 0.1.0
version: 0.1.1
repository: https://github.com/splashbyte/dart_token_bucket_algorithm
issue_tracker: https://github.com/splashbyte/dart_token_bucket_algorithm/issues

Expand All @@ -12,16 +12,12 @@ topics:

environment:
sdk: '>=3.0.0 <4.0.0'
flutter: ">=1.17.0"

dependencies:
flutter:
sdk: flutter
clock: ^1.1.1

dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^3.0.0
test: '>=1.15.0 <2.0.0'
lints: ^4.0.0
fake_async: ^1.3.1
mocktail: ^1.0.4
3 changes: 2 additions & 1 deletion test/token_bucket_state_test.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:test/expect.dart';
import 'package:test/scaffolding.dart';
import 'package:token_bucket_algorithm/token_bucket_algorithm.dart';

void main() {
Expand Down
3 changes: 2 additions & 1 deletion test/token_bucket_storage_test.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:test/expect.dart';
import 'package:test/scaffolding.dart';
import 'package:token_bucket_algorithm/token_bucket_algorithm.dart';

void _testStorage(TokenBucketStorage storage) {
Expand Down
3 changes: 2 additions & 1 deletion test/token_bucket_test.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import 'package:clock/clock.dart';
import 'package:fake_async/fake_async.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mocktail/mocktail.dart';
import 'package:test/expect.dart';
import 'package:test/scaffolding.dart';
import 'package:token_bucket_algorithm/token_bucket_algorithm.dart';

import 'mocks.dart';
Expand Down

0 comments on commit 3ba0d16

Please sign in to comment.