Skip to content

Commit

Permalink
chore: upgrade dependencies (#30)
Browse files Browse the repository at this point in the history
* chore: upgrade dependencies

* chore: prepare 0.0.3

* fix: don't run pub directly

* chore: run codegen

* fix: fix generate_code_coverage.sh

* ci: add semantic pull request workflow
  • Loading branch information
btrautmann authored Jul 22, 2022
1 parent dfa047b commit 449fa94
Show file tree
Hide file tree
Showing 13 changed files with 269 additions and 382 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/semantic-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Semantic PR

on: [pull_request_target]

jobs:
validate_title:
runs-on: ubuntu-latest
steps:
- name: Validate PR title
uses: amannn/action-semantic-pull-request@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions packages/test_track/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## 0.0.3

## 0.0.2

* chore: Update badges now that both packages are published by @btrautmann in https://github.com/Betterment/test_track_dart_client/pull/20
Expand Down
66 changes: 23 additions & 43 deletions packages/test_track/lib/src/models/app_version_build.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,35 +12,12 @@ part of 'app_version_build.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more informations: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');

AppVersionBuild _$AppVersionBuildFromJson(Map<String, dynamic> json) {
return _AppVersionBuild.fromJson(json);
}

/// @nodoc
class _$AppVersionBuildTearOff {
const _$AppVersionBuildTearOff();

_AppVersionBuild call(
{required String appName,
required String version,
required String buildTimestamp}) {
return _AppVersionBuild(
appName: appName,
version: version,
buildTimestamp: buildTimestamp,
);
}

AppVersionBuild fromJson(Map<String, Object?> json) {
return AppVersionBuild.fromJson(json);
}
}

/// @nodoc
const $AppVersionBuild = _$AppVersionBuildTearOff();

/// @nodoc
mixin _$AppVersionBuild {
String get appName => throw _privateConstructorUsedError;
Expand Down Expand Up @@ -94,33 +71,33 @@ class _$AppVersionBuildCopyWithImpl<$Res>
}

/// @nodoc
abstract class _$AppVersionBuildCopyWith<$Res>
abstract class _$$_AppVersionBuildCopyWith<$Res>
implements $AppVersionBuildCopyWith<$Res> {
factory _$AppVersionBuildCopyWith(
_AppVersionBuild value, $Res Function(_AppVersionBuild) then) =
__$AppVersionBuildCopyWithImpl<$Res>;
factory _$$_AppVersionBuildCopyWith(
_$_AppVersionBuild value, $Res Function(_$_AppVersionBuild) then) =
__$$_AppVersionBuildCopyWithImpl<$Res>;
@override
$Res call({String appName, String version, String buildTimestamp});
}

/// @nodoc
class __$AppVersionBuildCopyWithImpl<$Res>
class __$$_AppVersionBuildCopyWithImpl<$Res>
extends _$AppVersionBuildCopyWithImpl<$Res>
implements _$AppVersionBuildCopyWith<$Res> {
__$AppVersionBuildCopyWithImpl(
_AppVersionBuild _value, $Res Function(_AppVersionBuild) _then)
: super(_value, (v) => _then(v as _AppVersionBuild));
implements _$$_AppVersionBuildCopyWith<$Res> {
__$$_AppVersionBuildCopyWithImpl(
_$_AppVersionBuild _value, $Res Function(_$_AppVersionBuild) _then)
: super(_value, (v) => _then(v as _$_AppVersionBuild));

@override
_AppVersionBuild get _value => super._value as _AppVersionBuild;
_$_AppVersionBuild get _value => super._value as _$_AppVersionBuild;

@override
$Res call({
Object? appName = freezed,
Object? version = freezed,
Object? buildTimestamp = freezed,
}) {
return _then(_AppVersionBuild(
return _then(_$_AppVersionBuild(
appName: appName == freezed
? _value.appName
: appName // ignore: cast_nullable_to_non_nullable
Expand Down Expand Up @@ -165,13 +142,14 @@ class _$_AppVersionBuild implements _AppVersionBuild {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _AppVersionBuild &&
other is _$_AppVersionBuild &&
const DeepCollectionEquality().equals(other.appName, appName) &&
const DeepCollectionEquality().equals(other.version, version) &&
const DeepCollectionEquality()
.equals(other.buildTimestamp, buildTimestamp));
}

@JsonKey(ignore: true)
@override
int get hashCode => Object.hash(
runtimeType,
Expand All @@ -181,20 +159,22 @@ class _$_AppVersionBuild implements _AppVersionBuild {

@JsonKey(ignore: true)
@override
_$AppVersionBuildCopyWith<_AppVersionBuild> get copyWith =>
__$AppVersionBuildCopyWithImpl<_AppVersionBuild>(this, _$identity);
_$$_AppVersionBuildCopyWith<_$_AppVersionBuild> get copyWith =>
__$$_AppVersionBuildCopyWithImpl<_$_AppVersionBuild>(this, _$identity);

@override
Map<String, dynamic> toJson() {
return _$$_AppVersionBuildToJson(this);
return _$$_AppVersionBuildToJson(
this,
);
}
}

abstract class _AppVersionBuild implements AppVersionBuild {
const factory _AppVersionBuild(
{required String appName,
required String version,
required String buildTimestamp}) = _$_AppVersionBuild;
{required final String appName,
required final String version,
required final String buildTimestamp}) = _$_AppVersionBuild;

factory _AppVersionBuild.fromJson(Map<String, dynamic> json) =
_$_AppVersionBuild.fromJson;
Expand All @@ -207,6 +187,6 @@ abstract class _AppVersionBuild implements AppVersionBuild {
String get buildTimestamp;
@override
@JsonKey(ignore: true)
_$AppVersionBuildCopyWith<_AppVersionBuild> get copyWith =>
_$$_AppVersionBuildCopyWith<_$_AppVersionBuild> get copyWith =>
throw _privateConstructorUsedError;
}
78 changes: 34 additions & 44 deletions packages/test_track/lib/src/models/app_visitor_config.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,32 +12,12 @@ part of 'app_visitor_config.dart';
T _$identity<T>(T value) => value;

final _privateConstructorUsedError = UnsupportedError(
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more informations: https://github.com/rrousselGit/freezed#custom-getters-and-methods');
'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods');

AppVisitorConfig _$AppVisitorConfigFromJson(Map<String, dynamic> json) {
return _AppVisitorConfig.fromJson(json);
}

/// @nodoc
class _$AppVisitorConfigTearOff {
const _$AppVisitorConfigTearOff();

_AppVisitorConfig call(
{required List<Split> splits, required Visitor visitor}) {
return _AppVisitorConfig(
splits: splits,
visitor: visitor,
);
}

AppVisitorConfig fromJson(Map<String, Object?> json) {
return AppVisitorConfig.fromJson(json);
}
}

/// @nodoc
const $AppVisitorConfig = _$AppVisitorConfigTearOff();

/// @nodoc
mixin _$AppVisitorConfig {
List<Split> get splits => throw _privateConstructorUsedError;
Expand Down Expand Up @@ -94,11 +74,11 @@ class _$AppVisitorConfigCopyWithImpl<$Res>
}

/// @nodoc
abstract class _$AppVisitorConfigCopyWith<$Res>
abstract class _$$_AppVisitorConfigCopyWith<$Res>
implements $AppVisitorConfigCopyWith<$Res> {
factory _$AppVisitorConfigCopyWith(
_AppVisitorConfig value, $Res Function(_AppVisitorConfig) then) =
__$AppVisitorConfigCopyWithImpl<$Res>;
factory _$$_AppVisitorConfigCopyWith(
_$_AppVisitorConfig value, $Res Function(_$_AppVisitorConfig) then) =
__$$_AppVisitorConfigCopyWithImpl<$Res>;
@override
$Res call({List<Split> splits, Visitor visitor});

Expand All @@ -107,24 +87,24 @@ abstract class _$AppVisitorConfigCopyWith<$Res>
}

/// @nodoc
class __$AppVisitorConfigCopyWithImpl<$Res>
class __$$_AppVisitorConfigCopyWithImpl<$Res>
extends _$AppVisitorConfigCopyWithImpl<$Res>
implements _$AppVisitorConfigCopyWith<$Res> {
__$AppVisitorConfigCopyWithImpl(
_AppVisitorConfig _value, $Res Function(_AppVisitorConfig) _then)
: super(_value, (v) => _then(v as _AppVisitorConfig));
implements _$$_AppVisitorConfigCopyWith<$Res> {
__$$_AppVisitorConfigCopyWithImpl(
_$_AppVisitorConfig _value, $Res Function(_$_AppVisitorConfig) _then)
: super(_value, (v) => _then(v as _$_AppVisitorConfig));

@override
_AppVisitorConfig get _value => super._value as _AppVisitorConfig;
_$_AppVisitorConfig get _value => super._value as _$_AppVisitorConfig;

@override
$Res call({
Object? splits = freezed,
Object? visitor = freezed,
}) {
return _then(_AppVisitorConfig(
return _then(_$_AppVisitorConfig(
splits: splits == freezed
? _value.splits
? _value._splits
: splits // ignore: cast_nullable_to_non_nullable
as List<Split>,
visitor: visitor == freezed
Expand All @@ -138,13 +118,20 @@ class __$AppVisitorConfigCopyWithImpl<$Res>
/// @nodoc
@JsonSerializable()
class _$_AppVisitorConfig implements _AppVisitorConfig {
const _$_AppVisitorConfig({required this.splits, required this.visitor});
const _$_AppVisitorConfig(
{required final List<Split> splits, required this.visitor})
: _splits = splits;

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

final List<Split> _splits;
@override
final List<Split> splits;
List<Split> get splits {
// ignore: implicit_dynamic_type
return EqualUnmodifiableListView(_splits);
}

@override
final Visitor visitor;

Expand All @@ -157,32 +144,35 @@ class _$_AppVisitorConfig implements _AppVisitorConfig {
bool operator ==(dynamic other) {
return identical(this, other) ||
(other.runtimeType == runtimeType &&
other is _AppVisitorConfig &&
const DeepCollectionEquality().equals(other.splits, splits) &&
other is _$_AppVisitorConfig &&
const DeepCollectionEquality().equals(other._splits, _splits) &&
const DeepCollectionEquality().equals(other.visitor, visitor));
}

@JsonKey(ignore: true)
@override
int get hashCode => Object.hash(
runtimeType,
const DeepCollectionEquality().hash(splits),
const DeepCollectionEquality().hash(_splits),
const DeepCollectionEquality().hash(visitor));

@JsonKey(ignore: true)
@override
_$AppVisitorConfigCopyWith<_AppVisitorConfig> get copyWith =>
__$AppVisitorConfigCopyWithImpl<_AppVisitorConfig>(this, _$identity);
_$$_AppVisitorConfigCopyWith<_$_AppVisitorConfig> get copyWith =>
__$$_AppVisitorConfigCopyWithImpl<_$_AppVisitorConfig>(this, _$identity);

@override
Map<String, dynamic> toJson() {
return _$$_AppVisitorConfigToJson(this);
return _$$_AppVisitorConfigToJson(
this,
);
}
}

abstract class _AppVisitorConfig implements AppVisitorConfig {
const factory _AppVisitorConfig(
{required List<Split> splits,
required Visitor visitor}) = _$_AppVisitorConfig;
{required final List<Split> splits,
required final Visitor visitor}) = _$_AppVisitorConfig;

factory _AppVisitorConfig.fromJson(Map<String, dynamic> json) =
_$_AppVisitorConfig.fromJson;
Expand All @@ -193,6 +183,6 @@ abstract class _AppVisitorConfig implements AppVisitorConfig {
Visitor get visitor;
@override
@JsonKey(ignore: true)
_$AppVisitorConfigCopyWith<_AppVisitorConfig> get copyWith =>
_$$_AppVisitorConfigCopyWith<_$_AppVisitorConfig> get copyWith =>
throw _privateConstructorUsedError;
}
Loading

0 comments on commit 449fa94

Please sign in to comment.