Skip to content

Commit 3047ad8

Browse files
committed
release 2.0.3
1 parent 7170bf7 commit 3047ad8

File tree

4 files changed

+33
-85
lines changed

4 files changed

+33
-85
lines changed

CHANGELOG.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,11 @@
2424

2525
## [2.0.1] - May 31 2k21
2626
* Migrated to null-safety
27-
* Changed the Data Classes
27+
* Changed the Data Classes
28+
29+
## [2.0.2] - Sep 26 2k21
30+
* Fixed some null-safety induced bugs
31+
* Removed Data Classes
32+
33+
## [2.0.3] - Sep 26 2k21
34+
* Versioning Error

README.md

+3-69
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ A wrapper based on [SplitWise](http://dev.splitwise.com/#introduction)
44

55
- Feel free to open a PR or Issue
66
- Uses OAuth 1
7-
- Data Classes Included
7+
- Data Classes Not Included
88
- Based on null-safety
99

1010
### Steps
@@ -13,8 +13,6 @@ A wrapper based on [SplitWise](http://dev.splitwise.com/#introduction)
1313

1414
### Project Structure
1515
```text
16-
|-- .gitignore
17-
|-- .metadata
1816
|-- CHANGELOG.md
1917
|-- LICENSE
2018
|-- README.md
@@ -26,74 +24,15 @@ A wrapper based on [SplitWise](http://dev.splitwise.com/#introduction)
2624
| '-- util
2725
| |-- auth
2826
| | '-- splitwise_main.dart
29-
| |-- data
30-
| | '-- model
31-
| | |-- CategoriesEntity
32-
| | | |-- CategoriesEntity.dart
33-
| | | |-- categories.dart
34-
| | | |-- icon_types.dart
35-
| | | |-- slim.dart
36-
| | | |-- square.dart
37-
| | | '-- subcategories.dart
38-
| | |-- CommentsEntity
39-
| | | |-- CommentsEntity.dart
40-
| | | '-- comments.dart
41-
| | |-- CurrentUserEntity
42-
| | | |-- CurrentUserEntity.dart
43-
| | | |-- notifications.dart
44-
| | | '-- picture.dart
45-
| | |-- ExpensesEntity
46-
| | | |-- ExpensesEntity.dart
47-
| | | |-- category.dart
48-
| | | |-- comments.dart
49-
| | | | (6 more...)
50-
| | | |-- updated_by.dart
51-
| | | |-- user.dart
52-
| | | '-- users.dart
53-
| | |-- FriendsEntity
54-
| | | |-- FriendsEntity.dart
55-
| | | |-- balance.dart
56-
| | | |-- friends.dart
57-
| | | |-- groups.dart
58-
| | | '-- picture.dart
59-
| | |-- GroupsEntity
60-
| | | |-- GroupsEntity.dart
61-
| | | |-- avatar.dart
62-
| | | |-- balance.dart
63-
| | | |-- cover_photo.dart
64-
| | | |-- groups.dart
65-
| | | |-- members.dart
66-
| | | |-- original_debts.dart
67-
| | | |-- picture.dart
68-
| | | '-- simplified_debts.dart
69-
| | |-- NotificationsEntity
70-
| | | |-- NotificationsEntity.dart
71-
| | | |-- notifications.dart
72-
| | | '-- source.dart
73-
| | |-- PostExpense
74-
| | | |-- PostExpense.dart
75-
| | | |-- category.dart
76-
| | | |-- comments.dart
77-
| | | | (7 more...)
78-
| | | |-- updated_by.dart
79-
| | | |-- user.dart
80-
| | | '-- users.dart
81-
| | |-- PostResponse
82-
| | | |-- post_response.dart
83-
| | | '-- post_response.g.dart
84-
| | '-- SingleUserEntity
85-
| | |-- SingleUserEntity.dart
86-
| | '-- picture.dart
8727
| '-- helper
8828
| '-- TokensHelper.dart
8929
'-- pubspec.yaml
90-
9130
```
9231
#### Usage
9332
- Import the package
9433
```yaml
9534
dependencies:
96-
splitwise_api: ^2.0.1
35+
splitwise_api: ^2.0.3
9736
```
9837
- Import in the file
9938
@@ -121,8 +60,6 @@ class SplitWiseHelper {
12160
- ForExample :-
12261
```dart
12362
import 'package:splitwise_api/splitwise_api.dart';
124-
import 'package:splitwise_api/src/util/data/model/current_user_entity.dart';
125-
12663
12764
void main() async {
12865
SplitWiseService splitWiseService =
@@ -142,10 +79,7 @@ void main() async {
14279
} else {
14380
splitWiseService.validateClient(
14481
tokens: /* tokens from saved */);
145-
//Example
146-
CurrentUserEntity currentUserEntity = await splitWiseService
147-
.getCurrentUser();
148-
print(currentUserEntity.user.firstName);
82+
print(await splitWiseService.getCurrentUser());
14983
}
15084
}
15185
```

pubspec.lock

+18-11
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ packages:
77
name: _fe_analyzer_shared
88
url: "https://pub.dartlang.org"
99
source: hosted
10-
version: "22.0.0"
10+
version: "26.0.0"
1111
analyzer:
1212
dependency: transitive
1313
description:
1414
name: analyzer
1515
url: "https://pub.dartlang.org"
1616
source: hosted
17-
version: "1.7.0"
17+
version: "2.3.0"
1818
args:
1919
dependency: transitive
2020
description:
@@ -35,7 +35,7 @@ packages:
3535
name: build
3636
url: "https://pub.dartlang.org"
3737
source: hosted
38-
version: "2.0.2"
38+
version: "2.1.0"
3939
build_config:
4040
dependency: transitive
4141
description:
@@ -56,21 +56,21 @@ packages:
5656
name: build_resolvers
5757
url: "https://pub.dartlang.org"
5858
source: hosted
59-
version: "2.0.3"
59+
version: "2.0.4"
6060
build_runner:
6161
dependency: "direct dev"
6262
description:
6363
name: build_runner
6464
url: "https://pub.dartlang.org"
6565
source: hosted
66-
version: "2.0.4"
66+
version: "2.1.2"
6767
build_runner_core:
6868
dependency: transitive
6969
description:
7070
name: build_runner_core
7171
url: "https://pub.dartlang.org"
7272
source: hosted
73-
version: "7.0.0"
73+
version: "7.1.0"
7474
built_collection:
7575
dependency: transitive
7676
description:
@@ -140,7 +140,7 @@ packages:
140140
name: dart_style
141141
url: "https://pub.dartlang.org"
142142
source: hosted
143-
version: "2.0.1"
143+
version: "2.2.0"
144144
file:
145145
dependency: transitive
146146
description:
@@ -217,14 +217,14 @@ packages:
217217
name: json_annotation
218218
url: "https://pub.dartlang.org"
219219
source: hosted
220-
version: "4.0.1"
220+
version: "4.1.0"
221221
json_serializable:
222222
dependency: "direct main"
223223
description:
224224
name: json_serializable
225225
url: "https://pub.dartlang.org"
226226
source: hosted
227-
version: "4.1.3"
227+
version: "5.0.2"
228228
logging:
229229
dependency: transitive
230230
description:
@@ -245,7 +245,7 @@ packages:
245245
name: meta
246246
url: "https://pub.dartlang.org"
247247
source: hosted
248-
version: "1.4.0"
248+
version: "1.7.0"
249249
mime:
250250
dependency: transitive
251251
description:
@@ -322,7 +322,14 @@ packages:
322322
name: source_gen
323323
url: "https://pub.dartlang.org"
324324
source: hosted
325-
version: "1.0.1"
325+
version: "1.1.0"
326+
source_helper:
327+
dependency: transitive
328+
description:
329+
name: source_helper
330+
url: "https://pub.dartlang.org"
331+
source: hosted
332+
version: "1.3.0"
326333
source_span:
327334
dependency: transitive
328335
description:

pubspec.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ description: >-
33
A Wrapper over SplitWise API.
44
* Uses OAuth 1 as Authentication.
55
* Includes all methods stated on SplitWise DEV website.
6-
version: 2.0.0
6+
version: 2.0.3
77
homepage: https://github.com/srthkpthk/splitwise_api
88
environment:
99
sdk: ">=2.12.0 <3.0.0"
1010
dependencies:
1111
oauth1: ^2.0.0
12-
json_serializable: ^4.1.3
13-
json_annotation: ^4.0.1
12+
json_serializable: ^5.0.2
13+
json_annotation: ^4.1.0
1414
dev_dependencies:
15-
build_runner: ^2.0.4
15+
build_runner: ^2.1.2
1616

0 commit comments

Comments
 (0)