diff --git a/.github/workflows/runTests.yml b/.github/workflows/runTests.yml index d10cbc1..838285e 100644 --- a/.github/workflows/runTests.yml +++ b/.github/workflows/runTests.yml @@ -2,7 +2,7 @@ name: Run tests on: push: - branches: [ master, develop ] + branches: [ master, develop, feature/update-2025 ] jobs: build: @@ -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 diff --git a/example/README.md b/example/README.md index 177ccb7..8402e4e 100644 --- a/example/README.md +++ b/example/README.md @@ -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(), ], diff --git a/example/book_example.dart b/example/book_example.dart index 2d3dbe7..9d681df 100644 --- a/example/book_example.dart +++ b/example/book_example.dart @@ -15,9 +15,10 @@ void main() async { print(chapters.docs); Response 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); } diff --git a/example/chapter_example.dart b/example/chapter_example.dart index 741c49c..0148602 100644 --- a/example/chapter_example.dart +++ b/example/chapter_example.dart @@ -8,7 +8,8 @@ void main(List args) async { var lotrApi = LotrApi(apiKey: args.first); Response chapters = await lotrApi.getChapters( - sorting: ChapterSortings.byChapterNameAsc, + // https://github.com/gitfrosh/lotr-api/issues/188 + // sorting: ChapterSortings.byChapterNameAsc, ); print(chapters); diff --git a/example/movie_example.dart b/example/movie_example.dart index 022edf9..f1503a8 100644 --- a/example/movie_example.dart +++ b/example/movie_example.dart @@ -9,7 +9,8 @@ void main(List args) async { Response 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); diff --git a/example/quote_example.dart b/example/quote_example.dart index d88c651..afd49eb 100644 --- a/example/quote_example.dart +++ b/example/quote_example.dart @@ -8,7 +8,8 @@ void main(List args) async { var lotrApi = LotrApi(apiKey: args.first); Response 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')], ); diff --git a/pubspec.yaml b/pubspec.yaml index 15c7b08..19001c4 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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