Skip to content

Commit 3ba0d16

Browse files
committed
removes flutter dependency
1 parent 74661b5 commit 3ba0d16

File tree

10 files changed

+19
-22
lines changed

10 files changed

+19
-22
lines changed

.github/workflows/flutter.yml renamed to .github/workflows/dart.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v4
1111

12+
# testing is simpler with Flutter
1213
- uses: subosito/flutter-action@v2
1314

1415
- name: Install dependencies

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,6 @@ migrate_working_dir/
2727
**/doc/api/
2828
.dart_tool/
2929
build/
30+
31+
# Coverage
32+
coverage/

.metadata

Lines changed: 0 additions & 10 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.1.1
2+
3+
- removes Flutter dependency
4+
15
## 0.1.0
26

37
- initial release

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![likes](https://img.shields.io/pub/likes/token_bucket_algorithm)](https://pub.dev/packages/token_bucket_algorithm/score)
66
[![popularity](https://img.shields.io/pub/popularity/token_bucket_algorithm)](https://pub.dev/packages/token_bucket_algorithm/score)
77
[![pub points](https://img.shields.io/pub/points/token_bucket_algorithm)](https://pub.dev/packages/token_bucket_algorithm/score)
8-
[![license](https://img.shields.io/github/license/splashbyte/dart_token_bucket_algorithm.svg)](https://github.com/SplashByte/dart_token_bucket_algorithm/blob/main/LICENSE)
8+
[![license](https://img.shields.io/github/license/splashbyte/dart_token_bucket_algorithm.svg)](https://github.com/splashbyte/dart_token_bucket_algorithm/blob/main/LICENSE)
99
[![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)
1010

1111
This Dart package provides rate limiting by using an implementation of the token bucket algorithm.

analysis_options.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include: package:flutter_lints/flutter.yaml
1+
include: package:lints/recommended.yaml
22

33
analyzer:
44
language:

pubspec.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: token_bucket_algorithm
22
description: "Implementation of the token bucket algorithm."
3-
version: 0.1.0
3+
version: 0.1.1
44
repository: https://github.com/splashbyte/dart_token_bucket_algorithm
55
issue_tracker: https://github.com/splashbyte/dart_token_bucket_algorithm/issues
66

@@ -12,16 +12,12 @@ topics:
1212

1313
environment:
1414
sdk: '>=3.0.0 <4.0.0'
15-
flutter: ">=1.17.0"
1615

1716
dependencies:
18-
flutter:
19-
sdk: flutter
2017
clock: ^1.1.1
2118

2219
dev_dependencies:
23-
flutter_test:
24-
sdk: flutter
25-
flutter_lints: ^3.0.0
20+
test: '>=1.15.0 <2.0.0'
21+
lints: ^4.0.0
2622
fake_async: ^1.3.1
2723
mocktail: ^1.0.4

test/token_bucket_state_test.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import 'package:flutter_test/flutter_test.dart';
1+
import 'package:test/expect.dart';
2+
import 'package:test/scaffolding.dart';
23
import 'package:token_bucket_algorithm/token_bucket_algorithm.dart';
34

45
void main() {

test/token_bucket_storage_test.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import 'package:flutter_test/flutter_test.dart';
1+
import 'package:test/expect.dart';
2+
import 'package:test/scaffolding.dart';
23
import 'package:token_bucket_algorithm/token_bucket_algorithm.dart';
34

45
void _testStorage(TokenBucketStorage storage) {

test/token_bucket_test.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import 'package:clock/clock.dart';
22
import 'package:fake_async/fake_async.dart';
3-
import 'package:flutter_test/flutter_test.dart';
43
import 'package:mocktail/mocktail.dart';
4+
import 'package:test/expect.dart';
5+
import 'package:test/scaffolding.dart';
56
import 'package:token_bucket_algorithm/token_bucket_algorithm.dart';
67

78
import 'mocks.dart';

0 commit comments

Comments
 (0)