Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/3.19' into release/snapstore
Browse files Browse the repository at this point in the history
  • Loading branch information
Arenukvern committed Mar 6, 2024
2 parents 418a3b6 + bf9d566 commit aeba6cf
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 12 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/release_snapstore.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,29 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
platform:
- amd64
- arm64
steps:
- uses: actions/checkout@v4
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"
- uses: snapcore/action-build@v1
# - uses: snapcore/action-build@v1
# id: snapcraft
- uses: diddlesnaps/snapcraft-multiarch-action@v1
id: snapcraft
with:
architecture: ${{ matrix.platform }}
environment: |
WIREDASH_PROJECT_ID=${{ secrets.WIREDASH_PROJECT_ID }}
WIREDASH_PROJECT_SECRET=${{ secrets.WIREDASH_PROJECT_SECRET }}}}
- name: Test installation
run: |
sudo snap install --dangerous ${{ steps.snapcraft.outputs.snap }}
- name: Publish to Snapstore Edge
uses: snapcore/action-publish@v1
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@ class RequestProjectsDto with _$RequestProjectsDto {
@Default([]) final List<ProjectTypes> types,
@Default(false) final bool isReversed,
@Default(ProjectTagModelId.empty) final ProjectTagModelId tagId,

/// Enabled to include changelog and other system "notes"
@Default(false) final bool shouldAddChangelog,
}) = _RequestProjectsDto;
const RequestProjectsDto._();
static const empty = RequestProjectsDto();
static const emptyForHome = RequestProjectsDto(
shouldAddChangelog: true,
);
bool get isEmpty => search.isEmpty && types.isEmpty && tagId.isEmpty;
}

Expand Down
52 changes: 43 additions & 9 deletions packages/core/lib/src/state/state.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,9 @@ mixin _$RequestProjectsDto {
bool get isReversed => throw _privateConstructorUsedError;
ProjectTagModelId get tagId => throw _privateConstructorUsedError;

/// Enabled to include changelog and other system "notes"
bool get shouldAddChangelog => throw _privateConstructorUsedError;

@JsonKey(ignore: true)
$RequestProjectsDtoCopyWith<RequestProjectsDto> get copyWith =>
throw _privateConstructorUsedError;
Expand All @@ -648,7 +651,8 @@ abstract class $RequestProjectsDtoCopyWith<$Res> {
{String search,
List<ProjectTypes> types,
bool isReversed,
ProjectTagModelId tagId});
ProjectTagModelId tagId,
bool shouldAddChangelog});
}

/// @nodoc
Expand All @@ -668,6 +672,7 @@ class _$RequestProjectsDtoCopyWithImpl<$Res, $Val extends RequestProjectsDto>
Object? types = null,
Object? isReversed = null,
Object? tagId = null,
Object? shouldAddChangelog = null,
}) {
return _then(_value.copyWith(
search: null == search
Expand All @@ -686,6 +691,10 @@ class _$RequestProjectsDtoCopyWithImpl<$Res, $Val extends RequestProjectsDto>
? _value.tagId
: tagId // ignore: cast_nullable_to_non_nullable
as ProjectTagModelId,
shouldAddChangelog: null == shouldAddChangelog
? _value.shouldAddChangelog
: shouldAddChangelog // ignore: cast_nullable_to_non_nullable
as bool,
) as $Val);
}
}
Expand All @@ -702,7 +711,8 @@ abstract class _$$RequestProjectsDtoImplCopyWith<$Res>
{String search,
List<ProjectTypes> types,
bool isReversed,
ProjectTagModelId tagId});
ProjectTagModelId tagId,
bool shouldAddChangelog});
}

/// @nodoc
Expand All @@ -720,6 +730,7 @@ class __$$RequestProjectsDtoImplCopyWithImpl<$Res>
Object? types = null,
Object? isReversed = null,
Object? tagId = null,
Object? shouldAddChangelog = null,
}) {
return _then(_$RequestProjectsDtoImpl(
search: null == search
Expand All @@ -738,6 +749,10 @@ class __$$RequestProjectsDtoImplCopyWithImpl<$Res>
? _value.tagId
: tagId // ignore: cast_nullable_to_non_nullable
as ProjectTagModelId,
shouldAddChangelog: null == shouldAddChangelog
? _value.shouldAddChangelog
: shouldAddChangelog // ignore: cast_nullable_to_non_nullable
as bool,
));
}
}
Expand All @@ -750,7 +765,8 @@ class _$RequestProjectsDtoImpl extends _RequestProjectsDto
{this.search = '',
final List<ProjectTypes> types = const [],
this.isReversed = false,
this.tagId = ProjectTagModelId.empty})
this.tagId = ProjectTagModelId.empty,
this.shouldAddChangelog = false})
: _types = types,
super._();

Expand All @@ -773,9 +789,14 @@ class _$RequestProjectsDtoImpl extends _RequestProjectsDto
@JsonKey()
final ProjectTagModelId tagId;

/// Enabled to include changelog and other system "notes"
@override
@JsonKey()
final bool shouldAddChangelog;

@override
String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) {
return 'RequestProjectsDto(search: $search, types: $types, isReversed: $isReversed, tagId: $tagId)';
return 'RequestProjectsDto(search: $search, types: $types, isReversed: $isReversed, tagId: $tagId, shouldAddChangelog: $shouldAddChangelog)';
}

@override
Expand All @@ -786,7 +807,8 @@ class _$RequestProjectsDtoImpl extends _RequestProjectsDto
..add(DiagnosticsProperty('search', search))
..add(DiagnosticsProperty('types', types))
..add(DiagnosticsProperty('isReversed', isReversed))
..add(DiagnosticsProperty('tagId', tagId));
..add(DiagnosticsProperty('tagId', tagId))
..add(DiagnosticsProperty('shouldAddChangelog', shouldAddChangelog));
}

@override
Expand All @@ -798,12 +820,19 @@ class _$RequestProjectsDtoImpl extends _RequestProjectsDto
const DeepCollectionEquality().equals(other._types, _types) &&
(identical(other.isReversed, isReversed) ||
other.isReversed == isReversed) &&
(identical(other.tagId, tagId) || other.tagId == tagId));
(identical(other.tagId, tagId) || other.tagId == tagId) &&
(identical(other.shouldAddChangelog, shouldAddChangelog) ||
other.shouldAddChangelog == shouldAddChangelog));
}

@override
int get hashCode => Object.hash(runtimeType, search,
const DeepCollectionEquality().hash(_types), isReversed, tagId);
int get hashCode => Object.hash(
runtimeType,
search,
const DeepCollectionEquality().hash(_types),
isReversed,
tagId,
shouldAddChangelog);

@JsonKey(ignore: true)
@override
Expand All @@ -818,7 +847,8 @@ abstract class _RequestProjectsDto extends RequestProjectsDto {
{final String search,
final List<ProjectTypes> types,
final bool isReversed,
final ProjectTagModelId tagId}) = _$RequestProjectsDtoImpl;
final ProjectTagModelId tagId,
final bool shouldAddChangelog}) = _$RequestProjectsDtoImpl;
const _RequestProjectsDto._() : super._();

@override
Expand All @@ -830,6 +860,10 @@ abstract class _RequestProjectsDto extends RequestProjectsDto {
@override
ProjectTagModelId get tagId;
@override

/// Enabled to include changelog and other system "notes"
bool get shouldAddChangelog;
@override
@JsonKey(ignore: true)
_$$RequestProjectsDtoImplCopyWith<_$RequestProjectsDtoImpl> get copyWith =>
throw _privateConstructorUsedError;
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 3.19.3+45
version: 3.19.4+46

environment:
sdk: ">=3.3.0 <4.0.0"
Expand Down
2 changes: 1 addition & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: last-answer
version: 3.19.3+45
version: 3.19.4+46
summary: Fast ideas brainstorming tool with quick notes
description: |
Do you have a cool idea and need to get it down quickly? Or do you blog / write articles on social media?
Expand Down

0 comments on commit aeba6cf

Please sign in to comment.