Compare commits

...

8 commits

Author SHA1 Message Date
Vadim
6df706ecc5 Merge branch 'main' of https://github.com/vodemn/m3_lightmeter into feature/ML-196 2024-11-17 09:38:36 +01:00
Vadim
b306dab3df fixed equipment profile pickers updates 2024-11-17 09:38:04 +01:00
Vadim
a918f067f8 Merge branch 'main' of https://github.com/vodemn/m3_lightmeter into feature/ML-196 2024-11-17 09:37:45 +01:00
github-actions[bot]
1e4aa33b67 Release v1.0.0 2024-11-12 11:42:03 +00:00
Vadim
de011c5ff3 Increased integration tests timeout 2024-11-12 11:03:36 +01:00
Vadim
bfe3dc0ef4 Added beta release track to CD 2024-11-11 19:04:08 +01:00
Vadim
1d22ec5439
Removed language switch from release notes dialog (#198)
* Removed language switch from release notes dialog
2024-11-11 18:51:16 +01:00
Vadim
30418a9cfd
ML-196 Allow to select equipment profile in use (#197)
* integrated `EquipmentProfilesStorageService`

* implemented `EquipmentProfileEditScreen`

* added equipment profiles screens to navigation

* fixed tests

* fixed splashscreen removal

* replaced old `EquipmentProfilesScreen`

* typo

* use outlined icons

* fixed storage mock for integration tests

* recovered copy feature for profiles

* added profile deletion to e2e test

* added translations

* added film translations

* wip

* add ability to toggle equipment profiles

* lints

* fixed tests

* sync with iap rename

* use `Toggleable` from resources

* use iap 2.1.0

* use outlined edit icon
2024-11-11 17:20:12 +01:00
6 changed files with 39 additions and 19 deletions

View file

@ -27,6 +27,14 @@ on:
required: true
type: boolean
default: true
release-track:
description: "Release track"
type: choice
required: true
options:
- production
- beta
default: production
env:
RELEASE_NOTES_ARTIFACT_NAME: release_notes_en_${{ inputs.version }}
@ -128,6 +136,7 @@ jobs:
with:
artifacts: "m3_lightmeter.apk"
skipIfReleaseExists: true
prerelease: ${{ inputs.release-track == 'beta' }}
tag: "v${{ github.event.inputs.version }}"
bodyFile: "${{ env.RELEASE_NOTES_PATH }}/${{ env.RELEASE_NOTES_FILE }}"
@ -178,7 +187,7 @@ jobs:
packageName: com.vodemn.lightmeter
releaseFiles: app-prod-release.aab
releaseName: ${{ env.release_name }}
track: production
track: ${{ inputs.release-track }}
status: completed
debugSymbols: merged_native_libs.zip
whatsNewDirectory: whatsnew

View file

@ -12,7 +12,7 @@ on:
jobs:
run-integration-tests:
name: Run integration tests
timeout-minutes: 60
timeout-minutes: 90
runs-on: macos-13
steps:
- uses: actions/checkout@v3

View file

@ -0,0 +1,2 @@
- [Pro] Added the ability to create custom films.
- [Pro] Added the ability to select equipment profiles in use.

View file

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

View file

@ -1,8 +1,6 @@
import 'package:flutter/material.dart';
import 'package:flutter/services.dart' show rootBundle;
import 'package:lightmeter/data/models/supported_locale.dart';
import 'package:lightmeter/generated/l10n.dart';
import 'package:lightmeter/providers/user_preferences_provider.dart';
import 'package:lightmeter/res/dimens.dart';
class ReleaseNotesDialog extends StatelessWidget {
@ -40,17 +38,8 @@ class ReleaseNotesDialog extends StatelessWidget {
}
Future<String> loadReleaseNotes(BuildContext context) async {
late final String localeName;
switch (UserPreferencesProvider.localeOf(context)) {
case SupportedLocale.ru:
localeName = SupportedLocale.ru.name;
default:
localeName = SupportedLocale.en.name;
}
try {
return rootBundle.loadString('assets/release_notes/release_notes_${localeName}_$version.md');
return rootBundle.loadString('assets/release_notes/release_notes_en_$version.md');
} catch (e) {
return '';
}

View file

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