Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions .github/workflows/runTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,23 @@ name: Run tests

on:
push:
branches: [ master, develop ]
pull_request:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: dart-lang/setup-dart@v1
- uses: actions/checkout@v4.2.2

- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version: 3.29.2

- name: Install dependencies
run: dart pub get
run: flutter pub get

- name: Verify formatting
run: dart format --output=none --set-exit-if-changed .
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 1.0.0 (2025-04-08)
# 0.1.0 (2025-04-11)

* Improve dart docs

Expand Down
3 changes: 2 additions & 1 deletion example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ void main() async {
pagination: Pagination(
limit: 10,
),
sorting: QuoteSortings.byIdAsc,
// https://github.com/gitfrosh/lotr-api/issues/188
// sorting: QuoteSortings.byIdAsc,
idFilters: [
Exists(),
],
Expand Down
7 changes: 4 additions & 3 deletions example/book_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ void main() async {
print(chapters.docs);

Response<Book> booksExceptFirstOne = await lotrApi.getBooks(
pagination: Pagination(limit: 2, page: 1, offset: 0),
sorting: BookSortings.byNameAsc,
idFilters: [Matches(firstBookId)],
pagination: Pagination(limit: 2, page: 1, offset: 1),
// https://github.com/gitfrosh/lotr-api/issues/188
// sorting: BookSortings.byNameAsc,
idFilters: [NotMatches(firstBookId)],
);
print(booksExceptFirstOne);
}
3 changes: 2 additions & 1 deletion example/chapter_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ void main(List<String> args) async {
var lotrApi = LotrApi(apiKey: args.first);

Response<Chapter> chapters = await lotrApi.getChapters(
sorting: ChapterSortings.byChapterNameAsc,
// https://github.com/gitfrosh/lotr-api/issues/188
// sorting: ChapterSortings.byChapterNameAsc,
);
print(chapters);

Expand Down
3 changes: 2 additions & 1 deletion example/movie_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ void main(List<String> args) async {
Response<Movie> response = await lotrApi.getMovies(
nameFilters: [Exists()],
budgetInMillionsFilters: [GreaterThanOrEquals(100), LessThan(250)],
sorting: MovieSortings.byAcademyAwardWinsDesc,
// https://github.com/gitfrosh/lotr-api/issues/188
// sorting: MovieSortings.byAcademyAwardWinsDesc,
);
print(response);

Expand Down
3 changes: 2 additions & 1 deletion example/quote_example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ void main(List<String> args) async {
var lotrApi = LotrApi(apiKey: args.first);

Response<Quote> quotes = await lotrApi.getQuotes(
sorting: QuoteSortings.byDialogAsc,
// https://github.com/gitfrosh/lotr-api/issues/188
// sorting: QuoteSortings.byDialogAsc,
pagination: Pagination(limit: 10, offset: 2),
dialogFilters: [MatchesRegex('Frodo')],
);
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: lotr_api
version: 1.0.0
version: 0.1.0
description: API that accesses data on quotes, characters, books, etc. from the Tolkien universe.
homepage: https://github.com/finkmoritz/lotr_api
repository: https://github.com/finkmoritz/lotr_api
Expand Down