Skip to content

Commit

Permalink
Update to Dart 3.2, latest packages
Browse files Browse the repository at this point in the history
  • Loading branch information
bizz84 committed Nov 27, 2023
1 parent a40ee25 commit d20a3de
Show file tree
Hide file tree
Showing 12 changed files with 363 additions and 282 deletions.
17 changes: 9 additions & 8 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@ PODS:
- FMDB (2.7.5):
- FMDB/standard (= 2.7.5)
- FMDB/standard (2.7.5)
- path_provider_ios (0.0.1):
- path_provider_foundation (0.0.1):
- Flutter
- sqflite (0.0.2):
- FlutterMacOS
- sqflite (0.0.3):
- Flutter
- FMDB (>= 2.7.5)

DEPENDENCIES:
- Flutter (from `Flutter`)
- path_provider_ios (from `.symlinks/plugins/path_provider_ios/ios`)
- path_provider_foundation (from `.symlinks/plugins/path_provider_foundation/darwin`)
- sqflite (from `.symlinks/plugins/sqflite/ios`)

SPEC REPOS:
Expand All @@ -21,17 +22,17 @@ SPEC REPOS:
EXTERNAL SOURCES:
Flutter:
:path: Flutter
path_provider_ios:
:path: ".symlinks/plugins/path_provider_ios/ios"
path_provider_foundation:
:path: ".symlinks/plugins/path_provider_foundation/darwin"
sqflite:
:path: ".symlinks/plugins/sqflite/ios"

SPEC CHECKSUMS:
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
path_provider_ios: 14f3d2fd28c4fdb42f44e0f751d12861c43cee02
sqflite: 6d358c025f5b867b29ed92fc697fd34924e11904
path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943
sqflite: 31f7eba61e3074736dff8807a9b41581e4f7f15a

PODFILE CHECKSUM: a8bf662d8622f5e36dabb676533790e6f6c4777b

COCOAPODS: 1.11.3
COCOAPODS: 1.14.2
4 changes: 2 additions & 2 deletions lib/env/env.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'package:envied/envied.dart';
part 'env.g.dart';

@Envied(path: '.env')
abstract class Env {
final class Env {
@EnviedField(varName: 'TMDB_KEY', obfuscate: true)
static final tmdbApiKey = _Env.tmdbApiKey;
static final String tmdbApiKey = _Env.tmdbApiKey;
}
115 changes: 104 additions & 11 deletions lib/src/features/movies/data/movies_repository.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 23 additions & 22 deletions lib/src/features/movies/domain/tmdb_movie.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// ignore_for_file: type=lint
// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark

part of core;
part of 'tmdb_movie.dart';

// **************************************************************************
// FreezedGenerator
Expand Down Expand Up @@ -161,11 +161,11 @@ class _$TMDBMovieCopyWithImpl<$Res, $Val extends TMDBMovie>
}

/// @nodoc
abstract class _$$_TMDBMovieBasicCopyWith<$Res>
abstract class _$$TMDBMovieBasicImplCopyWith<$Res>
implements $TMDBMovieCopyWith<$Res> {
factory _$$_TMDBMovieBasicCopyWith(
_$_TMDBMovieBasic value, $Res Function(_$_TMDBMovieBasic) then) =
__$$_TMDBMovieBasicCopyWithImpl<$Res>;
factory _$$TMDBMovieBasicImplCopyWith(_$TMDBMovieBasicImpl value,
$Res Function(_$TMDBMovieBasicImpl) then) =
__$$TMDBMovieBasicImplCopyWithImpl<$Res>;
@override
@useResult
$Res call(
Expand All @@ -186,11 +186,11 @@ abstract class _$$_TMDBMovieBasicCopyWith<$Res>
}

/// @nodoc
class __$$_TMDBMovieBasicCopyWithImpl<$Res>
extends _$TMDBMovieCopyWithImpl<$Res, _$_TMDBMovieBasic>
implements _$$_TMDBMovieBasicCopyWith<$Res> {
__$$_TMDBMovieBasicCopyWithImpl(
_$_TMDBMovieBasic _value, $Res Function(_$_TMDBMovieBasic) _then)
class __$$TMDBMovieBasicImplCopyWithImpl<$Res>
extends _$TMDBMovieCopyWithImpl<$Res, _$TMDBMovieBasicImpl>
implements _$$TMDBMovieBasicImplCopyWith<$Res> {
__$$TMDBMovieBasicImplCopyWithImpl(
_$TMDBMovieBasicImpl _value, $Res Function(_$TMDBMovieBasicImpl) _then)
: super(_value, _then);

@pragma('vm:prefer-inline')
Expand All @@ -211,7 +211,7 @@ class __$$_TMDBMovieBasicCopyWithImpl<$Res>
Object? overview = freezed,
Object? releaseDate = freezed,
}) {
return _then(_$_TMDBMovieBasic(
return _then(_$TMDBMovieBasicImpl(
voteCount: freezed == voteCount
? _value.voteCount
: voteCount // ignore: cast_nullable_to_non_nullable
Expand Down Expand Up @@ -274,8 +274,8 @@ class __$$_TMDBMovieBasicCopyWithImpl<$Res>

/// @nodoc
@JsonSerializable()
class _$_TMDBMovieBasic implements _TMDBMovieBasic {
_$_TMDBMovieBasic(
class _$TMDBMovieBasicImpl implements _TMDBMovieBasic {
_$TMDBMovieBasicImpl(
{@JsonKey(name: 'vote_count') this.voteCount,
required this.id,
this.video = false,
Expand All @@ -292,8 +292,8 @@ class _$_TMDBMovieBasic implements _TMDBMovieBasic {
@JsonKey(name: 'release_date') this.releaseDate})
: _genreIds = genreIds;

factory _$_TMDBMovieBasic.fromJson(Map<String, dynamic> json) =>
_$$_TMDBMovieBasicFromJson(json);
factory _$TMDBMovieBasicImpl.fromJson(Map<String, dynamic> json) =>
_$$TMDBMovieBasicImplFromJson(json);

@override
@JsonKey(name: 'vote_count')
Expand Down Expand Up @@ -350,7 +350,7 @@ class _$_TMDBMovieBasic implements _TMDBMovieBasic {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _$_TMDBMovieBasic &&
other is _$TMDBMovieBasicImpl &&
(identical(other.voteCount, voteCount) ||
other.voteCount == voteCount) &&
(identical(other.id, id) || other.id == id) &&
Expand Down Expand Up @@ -398,12 +398,13 @@ class _$_TMDBMovieBasic implements _TMDBMovieBasic {
@JsonKey(ignore: true)
@override
@pragma('vm:prefer-inline')
_$$_TMDBMovieBasicCopyWith<_$_TMDBMovieBasic> get copyWith =>
__$$_TMDBMovieBasicCopyWithImpl<_$_TMDBMovieBasic>(this, _$identity);
_$$TMDBMovieBasicImplCopyWith<_$TMDBMovieBasicImpl> get copyWith =>
__$$TMDBMovieBasicImplCopyWithImpl<_$TMDBMovieBasicImpl>(
this, _$identity);

@override
Map<String, dynamic> toJson() {
return _$$_TMDBMovieBasicToJson(
return _$$TMDBMovieBasicImplToJson(
this,
);
}
Expand All @@ -425,10 +426,10 @@ abstract class _TMDBMovieBasic implements TMDBMovie {
final bool? adult,
final String? overview,
@JsonKey(name: 'release_date') final String? releaseDate}) =
_$_TMDBMovieBasic;
_$TMDBMovieBasicImpl;

factory _TMDBMovieBasic.fromJson(Map<String, dynamic> json) =
_$_TMDBMovieBasic.fromJson;
_$TMDBMovieBasicImpl.fromJson;

@override
@JsonKey(name: 'vote_count')
Expand Down Expand Up @@ -468,6 +469,6 @@ abstract class _TMDBMovieBasic implements TMDBMovie {
String? get releaseDate;
@override
@JsonKey(ignore: true)
_$$_TMDBMovieBasicCopyWith<_$_TMDBMovieBasic> get copyWith =>
_$$TMDBMovieBasicImplCopyWith<_$TMDBMovieBasicImpl> get copyWith =>
throw _privateConstructorUsedError;
}
9 changes: 5 additions & 4 deletions lib/src/features/movies/domain/tmdb_movie.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d20a3de

Please sign in to comment.