From 2856d5966a8a6f9b99fab91886b5da36beb28dfb Mon Sep 17 00:00:00 2001 From: Andrea Bizzotto Date: Tue, 7 May 2024 14:11:38 +0100 Subject: [PATCH] Update to the latest packages, rerun codegen --- .gitattributes | 5 + .../features/movies/domain/tmdb_movie.g.dart | 2 +- .../movies/domain/tmdb_movies_response.g.dart | 6 +- pubspec.lock | 96 +++++++------------ pubspec.yaml | 12 +-- 5 files changed, 51 insertions(+), 70 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fbe6b93 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,5 @@ +*.config.dart -diff +*.freezed.dart -diff +*.g.dart -diff +*.gen.dart -diff +*.gr.dart -diff diff --git a/lib/src/features/movies/domain/tmdb_movie.g.dart b/lib/src/features/movies/domain/tmdb_movie.g.dart index 6122610..ba113b5 100644 --- a/lib/src/features/movies/domain/tmdb_movie.g.dart +++ b/lib/src/features/movies/domain/tmdb_movie.g.dart @@ -8,7 +8,7 @@ part of 'tmdb_movie.dart'; _$TMDBMovieBasicImpl _$$TMDBMovieBasicImplFromJson(Map json) => _$TMDBMovieBasicImpl( - id: json['id'] as int, + id: (json['id'] as num).toInt(), title: json['title'] as String, posterPath: json['poster_path'] as String?, releaseDate: json['release_date'] as String?, diff --git a/lib/src/features/movies/domain/tmdb_movies_response.g.dart b/lib/src/features/movies/domain/tmdb_movies_response.g.dart index c4c260b..6b58ef8 100644 --- a/lib/src/features/movies/domain/tmdb_movies_response.g.dart +++ b/lib/src/features/movies/domain/tmdb_movies_response.g.dart @@ -9,12 +9,12 @@ part of 'tmdb_movies_response.dart'; _$TMDBMoviesResponseImpl _$$TMDBMoviesResponseImplFromJson( Map json) => _$TMDBMoviesResponseImpl( - page: json['page'] as int, + page: (json['page'] as num).toInt(), results: (json['results'] as List) .map((e) => TMDBMovie.fromJson(e as Map)) .toList(), - totalResults: json['total_results'] as int, - totalPages: json['total_pages'] as int, + totalResults: (json['total_results'] as num).toInt(), + totalPages: (json['total_pages'] as num).toInt(), errors: (json['errors'] as List?) ?.map((e) => e as String) .toList() ?? diff --git a/pubspec.lock b/pubspec.lock index fcf4a0f..277f8b4 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -29,10 +29,10 @@ packages: dependency: transitive description: name: args - sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596 + sha256: "7cf60b9f0cc88203c5a190b4cd62a99feea42759a7fa695010eb5de1c0b2252a" url: "https://pub.dev" source: hosted - version: "2.4.2" + version: "2.5.0" async: dependency: transitive description: @@ -109,10 +109,10 @@ packages: dependency: transitive description: name: built_value - sha256: fedde275e0a6b798c3296963c5cd224e3e1b55d0e478d5b7e65e6b540f363a0e + sha256: c7913a9737ee4007efedaffc968c049fd0f3d0e49109e778edc10de9426005cb url: "https://pub.dev" source: hosted - version: "8.9.1" + version: "8.9.2" cached_network_image: dependency: "direct main" description: @@ -133,10 +133,10 @@ packages: dependency: transitive description: name: cached_network_image_web - sha256: "42a835caa27c220d1294311ac409a43361088625a4f23c820b006dd9bffb3316" + sha256: "205d6a9f1862de34b93184f22b9d2d94586b2f05c581d546695e3d8f6a805cd7" url: "https://pub.dev" source: hosted - version: "1.1.1" + version: "1.2.0" characters: dependency: transitive description: @@ -153,22 +153,6 @@ packages: url: "https://pub.dev" source: hosted version: "2.0.3" - ci: - dependency: transitive - description: - name: ci - sha256: "145d095ce05cddac4d797a158bc4cf3b6016d1fe63d8c3d2fbd7212590adca13" - url: "https://pub.dev" - source: hosted - version: "0.1.0" - cli_util: - dependency: transitive - description: - name: cli_util - sha256: c05b7406fdabc7a49a3929d4af76bcaccbbffcbcdcf185b082e1ae07da323d19 - url: "https://pub.dev" - source: hosted - version: "0.4.1" clock: dependency: transitive description: @@ -213,26 +197,18 @@ packages: dependency: "direct main" description: name: cupertino_icons - sha256: d57953e10f9f8327ce64a508a355f0b1ec902193f66288e8cb5070e7c47eeb2d - url: "https://pub.dev" - source: hosted - version: "1.0.6" - custom_lint: - dependency: transitive - description: - name: custom_lint - sha256: "445242371d91d2e24bd7b82e3583a2c05610094ba2d0575262484ad889c8f981" + sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6 url: "https://pub.dev" source: hosted - version: "0.6.2" + version: "1.0.8" custom_lint_core: dependency: transitive description: name: custom_lint_core - sha256: ce5d6215f4e143f7780ce53f73dfa6fc503f39d2d30bef76c48be9ac1a09d9a6 + sha256: a85e8f78f4c52f6c63cdaf8c872eb573db0231dcdf3c3a5906d493c1f8bc20e6 url: "https://pub.dev" source: hosted - version: "0.6.2" + version: "0.6.3" dart_style: dependency: transitive description: @@ -245,10 +221,10 @@ packages: dependency: "direct main" description: name: dio - sha256: "0978e9a3e45305a80a7210dbeaf79d6ee8bee33f70c8e542dc654c952070217f" + sha256: "11e40df547d418cc0c4900a9318b26304e665da6fa4755399a9ff9efd09034b5" url: "https://pub.dev" source: hosted - version: "5.4.2+1" + version: "5.4.3+1" envied: dependency: "direct main" description: @@ -314,10 +290,10 @@ packages: dependency: transitive description: name: flutter_cache_manager - sha256: "8207f27539deb83732fdda03e259349046a39a4c767269285f449ade355d54ba" + sha256: "395d6b7831f21f3b989ebedbb785545932adb9afe2622c1ffacf7f4b53a7e544" url: "https://pub.dev" source: hosted - version: "3.3.1" + version: "3.3.2" flutter_lints: dependency: "direct dev" description: @@ -364,10 +340,10 @@ packages: dependency: transitive description: name: frontend_server_client - sha256: "408e3ca148b31c20282ad6f37ebfa6f4bdc8fede5b74bc2f08d9d92b55db3612" + sha256: f64a0333a82f30b0cca061bc3d143813a486dc086b574bfb233b7c1372427694 url: "https://pub.dev" source: hosted - version: "3.2.0" + version: "4.0.0" glob: dependency: transitive description: @@ -380,10 +356,10 @@ packages: dependency: "direct main" description: name: go_router - sha256: f6ba8eed5fa831e461122de577d4a26674a1d836e2956abe6c0f6c4d952e6673 + sha256: b465e99ce64ba75e61c8c0ce3d87b66d8ac07f0b35d0a7e0263fcfc10f99e836 url: "https://pub.dev" source: hosted - version: "13.2.3" + version: "13.2.5" graphs: dependency: transitive description: @@ -436,18 +412,18 @@ packages: dependency: "direct main" description: name: json_annotation - sha256: b10a7b2ff83d83c777edba3c6a0f97045ddadd56c944e1a23a3fdf43a1bf4467 + sha256: "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1" url: "https://pub.dev" source: hosted - version: "4.8.1" + version: "4.9.0" json_serializable: dependency: "direct dev" description: name: json_serializable - sha256: aa1f5a8912615733e0fdc7a02af03308933c93235bdc8d50d0b0c8a8ccb0b969 + sha256: ea1432d167339ea9b5bb153f0571d0039607a873d6e04e0117af043f14a1fd4b url: "https://pub.dev" source: hosted - version: "6.7.1" + version: "6.8.0" leak_tracker: dependency: transitive description: @@ -548,18 +524,18 @@ packages: dependency: transitive description: name: path_provider - sha256: b27217933eeeba8ff24845c34003b003b2b22151de3c908d0e679e8fe1aa078b + sha256: c9e7d3a4cd1410877472158bee69963a4579f78b68c65a2b7d40d1a7a88bb161 url: "https://pub.dev" source: hosted - version: "2.1.2" + version: "2.1.3" path_provider_android: dependency: transitive description: name: path_provider_android - sha256: "477184d672607c0a3bf68fbbf601805f92ef79c82b64b4d6eb318cbca4c48668" + sha256: a248d8146ee5983446bf03ed5ea8f6533129a12b11f12057ad1b4a67a2b3b41d url: "https://pub.dev" source: hosted - version: "2.2.2" + version: "2.2.4" path_provider_foundation: dependency: transitive description: @@ -745,18 +721,18 @@ packages: dependency: transitive description: name: sqflite - sha256: a9016f495c927cb90557c909ff26a6d92d9bd54fc42ba92e19d4e79d61e798c6 + sha256: a43e5a27235518c03ca238e7b4732cf35eabe863a369ceba6cbefa537a66f16d url: "https://pub.dev" source: hosted - version: "2.3.2" + version: "2.3.3+1" sqflite_common: dependency: transitive description: name: sqflite_common - sha256: "28d8c66baee4968519fb8bd6cdbedad982d6e53359091f0b74544a9f32ec72d5" + sha256: "3da423ce7baf868be70e2c0976c28a1bb2f73644268b7ffa7d2e08eab71f16a4" url: "https://pub.dev" source: hosted - version: "2.5.3" + version: "2.5.4" stack_trace: dependency: transitive description: @@ -849,10 +825,10 @@ packages: dependency: transitive description: name: uuid - sha256: cd210a09f7c18cbe5a02511718e0334de6559871052c90a90c0cca46a4aa81c8 + sha256: "814e9e88f21a176ae1359149021870e87f7cddaf633ab678a5d2b0bff7fd1ba8" url: "https://pub.dev" source: hosted - version: "4.3.3" + version: "4.4.0" vector_math: dependency: transitive description: @@ -889,18 +865,18 @@ packages: dependency: transitive description: name: web_socket_channel - sha256: "1d8e795e2a8b3730c41b8a98a2dff2e0fb57ae6f0764a1c46ec5915387d257b2" + sha256: "58c6666b342a38816b2e7e50ed0f1e261959630becd4c879c4f26bfa14aa5a42" url: "https://pub.dev" source: hosted - version: "2.4.4" + version: "2.4.5" win32: dependency: transitive description: name: win32 - sha256: "8cb58b45c47dcb42ab3651533626161d6b67a2921917d8d429791f76972b3480" + sha256: "0eaf06e3446824099858367950a813472af675116bf63f008a4c2a75ae13e9cb" url: "https://pub.dev" source: hosted - version: "5.3.0" + version: "5.5.0" xdg_directories: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 37e7b2b..de3affb 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -5,16 +5,16 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev version: 1.0.0+1 environment: - sdk: '>=3.2.0 <4.0.0' + sdk: '>=3.3.0 <4.0.0' dependencies: flutter: sdk: flutter - cupertino_icons: ^1.0.6 + cupertino_icons: ^1.0.8 freezed_annotation: ^2.4.1 - json_annotation: ^4.8.1 + json_annotation: ^4.9.0 transparent_image: ^2.0.1 - dio: ^5.4.2+1 + dio: ^5.4.3 flutter_riverpod: ^2.5.1 riverpod_annotation: ^2.3.5 envied: ^0.5.4+1 @@ -28,8 +28,8 @@ dev_dependencies: build_runner: ^2.4.9 riverpod_generator: ^2.4.0 freezed: ^2.5.2 - json_serializable: ^6.7.1 - envied_generator: ^0.5.4 + json_serializable: ^6.8.0 + envied_generator: ^0.5.4+1 flutter_lints: ^3.0.2 flutter: