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
4 changes: 2 additions & 2 deletions .github/workflows/runTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Run tests

on:
push:
branches: [ master, develop ]
branches: [ master, develop, feature/update-2025 ]

jobs:
build:
Expand All @@ -15,7 +15,7 @@ jobs:
uses: subosito/flutter-action@v2
with:
channel: stable
flutter-version-file: pubspec.yaml
flutter-version: 3.29.2

- name: Install dependencies
run: flutter pub get
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