Compare commits

..

No commits in common. "fd97fc7fef8a6cd0dd486c4c4f8c292eda3eb89d" and "1e4aa33b671c51f298458816f1c5203ce504815d" have entirely different histories.

3 changed files with 7 additions and 27 deletions

View file

@ -9,7 +9,7 @@
name: Create new release name: Create new release
run-name: Release v${{ inputs.version }}${{ inputs.release-track == 'beta' && '-Beta' || '' }} run-name: Release v${{ inputs.version }}
on: on:
workflow_dispatch: workflow_dispatch:
@ -137,7 +137,7 @@ jobs:
artifacts: "m3_lightmeter.apk" artifacts: "m3_lightmeter.apk"
skipIfReleaseExists: true skipIfReleaseExists: true
prerelease: ${{ inputs.release-track == 'beta' }} prerelease: ${{ inputs.release-track == 'beta' }}
tag: "v${{ github.event.inputs.version }}${{ inputs.release-track == 'beta' && '-beta' || '' }}" tag: "v${{ github.event.inputs.version }}"
bodyFile: "${{ env.RELEASE_NOTES_PATH }}/${{ env.RELEASE_NOTES_FILE }}" bodyFile: "${{ env.RELEASE_NOTES_PATH }}/${{ env.RELEASE_NOTES_FILE }}"
create-google-play-release: create-google-play-release:

View file

@ -83,42 +83,22 @@ class EquipmentProfileEditBloc extends Bloc<EquipmentProfileEditEvent, Equipment
Future<void> _onApertureValuesChanged(EquipmentProfileApertureValuesChangedEvent event, Emitter emit) async { Future<void> _onApertureValuesChanged(EquipmentProfileApertureValuesChangedEvent event, Emitter emit) async {
_newEquipmentProfile = _newEquipmentProfile.copyWith(apertureValues: event.apertureValues); _newEquipmentProfile = _newEquipmentProfile.copyWith(apertureValues: event.apertureValues);
emit( emit(state.copyWith(apertureValues: event.apertureValues));
state.copyWith(
apertureValues: event.apertureValues,
canSave: _canSave(state.name, state.lensZoom),
),
);
} }
Future<void> _onShutterSpeedValuesChanged(EquipmentProfileShutterSpeedValuesChangedEvent event, Emitter emit) async { Future<void> _onShutterSpeedValuesChanged(EquipmentProfileShutterSpeedValuesChangedEvent event, Emitter emit) async {
_newEquipmentProfile = _newEquipmentProfile.copyWith(shutterSpeedValues: event.shutterSpeedValues); _newEquipmentProfile = _newEquipmentProfile.copyWith(shutterSpeedValues: event.shutterSpeedValues);
emit( emit(state.copyWith(shutterSpeedValues: event.shutterSpeedValues));
state.copyWith(
shutterSpeedValues: event.shutterSpeedValues,
canSave: _canSave(state.name, state.lensZoom),
),
);
} }
Future<void> _onIsoValuesChanged(EquipmentProfileIsoValuesChangedEvent event, Emitter emit) async { Future<void> _onIsoValuesChanged(EquipmentProfileIsoValuesChangedEvent event, Emitter emit) async {
_newEquipmentProfile = _newEquipmentProfile.copyWith(isoValues: event.isoValues); _newEquipmentProfile = _newEquipmentProfile.copyWith(isoValues: event.isoValues);
emit( emit(state.copyWith(isoValues: event.isoValues));
state.copyWith(
isoValues: event.isoValues,
canSave: _canSave(state.name, state.lensZoom),
),
);
} }
Future<void> _onNdValuesChanged(EquipmentProfileNdValuesChangedEvent event, Emitter emit) async { Future<void> _onNdValuesChanged(EquipmentProfileNdValuesChangedEvent event, Emitter emit) async {
_newEquipmentProfile = _newEquipmentProfile.copyWith(ndValues: event.ndValues); _newEquipmentProfile = _newEquipmentProfile.copyWith(ndValues: event.ndValues);
emit( emit(state.copyWith(ndValues: event.ndValues));
state.copyWith(
ndValues: event.ndValues,
canSave: _canSave(state.name, state.lensZoom),
),
);
} }
Future<void> _onLensZoomChanged(EquipmentProfileLensZoomChangedEvent event, Emitter emit) async { Future<void> _onLensZoomChanged(EquipmentProfileLensZoomChangedEvent event, Emitter emit) async {

View file

@ -1,7 +1,7 @@
name: lightmeter name: lightmeter
description: Lightmeter app inspired by Material 3 design system. description: Lightmeter app inspired by Material 3 design system.
publish_to: "none" publish_to: "none"
version: 1.0.0+55 version: 1.0.0+54
environment: environment:
sdk: ">=3.0.0 <4.0.0" sdk: ">=3.0.0 <4.0.0"