mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-12-04 13:20:39 +00:00
Compare commits
8 commits
495d7a9cd1
...
6df706ecc5
Author | SHA1 | Date | |
---|---|---|---|
|
6df706ecc5 | ||
|
b306dab3df | ||
|
a918f067f8 | ||
|
1e4aa33b67 | ||
|
de011c5ff3 | ||
|
bfe3dc0ef4 | ||
|
1d22ec5439 | ||
|
30418a9cfd |
6 changed files with 39 additions and 19 deletions
11
.github/workflows/create_release.yml
vendored
11
.github/workflows/create_release.yml
vendored
|
@ -27,6 +27,14 @@ on:
|
||||||
required: true
|
required: true
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
|
release-track:
|
||||||
|
description: "Release track"
|
||||||
|
type: choice
|
||||||
|
required: true
|
||||||
|
options:
|
||||||
|
- production
|
||||||
|
- beta
|
||||||
|
default: production
|
||||||
|
|
||||||
env:
|
env:
|
||||||
RELEASE_NOTES_ARTIFACT_NAME: release_notes_en_${{ inputs.version }}
|
RELEASE_NOTES_ARTIFACT_NAME: release_notes_en_${{ inputs.version }}
|
||||||
|
@ -128,6 +136,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
artifacts: "m3_lightmeter.apk"
|
artifacts: "m3_lightmeter.apk"
|
||||||
skipIfReleaseExists: true
|
skipIfReleaseExists: true
|
||||||
|
prerelease: ${{ inputs.release-track == 'beta' }}
|
||||||
tag: "v${{ github.event.inputs.version }}"
|
tag: "v${{ github.event.inputs.version }}"
|
||||||
bodyFile: "${{ env.RELEASE_NOTES_PATH }}/${{ env.RELEASE_NOTES_FILE }}"
|
bodyFile: "${{ env.RELEASE_NOTES_PATH }}/${{ env.RELEASE_NOTES_FILE }}"
|
||||||
|
|
||||||
|
@ -178,7 +187,7 @@ jobs:
|
||||||
packageName: com.vodemn.lightmeter
|
packageName: com.vodemn.lightmeter
|
||||||
releaseFiles: app-prod-release.aab
|
releaseFiles: app-prod-release.aab
|
||||||
releaseName: ${{ env.release_name }}
|
releaseName: ${{ env.release_name }}
|
||||||
track: production
|
track: ${{ inputs.release-track }}
|
||||||
status: completed
|
status: completed
|
||||||
debugSymbols: merged_native_libs.zip
|
debugSymbols: merged_native_libs.zip
|
||||||
whatsNewDirectory: whatsnew
|
whatsNewDirectory: whatsnew
|
||||||
|
|
2
.github/workflows/run_integration_tests.yml
vendored
2
.github/workflows/run_integration_tests.yml
vendored
|
@ -12,7 +12,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
run-integration-tests:
|
run-integration-tests:
|
||||||
name: Run integration tests
|
name: Run integration tests
|
||||||
timeout-minutes: 60
|
timeout-minutes: 90
|
||||||
runs-on: macos-13
|
runs-on: macos-13
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
2
assets/release_notes/release_notes_en_1.0.0.md
Normal file
2
assets/release_notes/release_notes_en_1.0.0.md
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
- [Pro] Added the ability to create custom films.
|
||||||
|
- [Pro] Added the ability to select equipment profiles in use.
|
|
@ -83,22 +83,42 @@ 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(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 {
|
Future<void> _onShutterSpeedValuesChanged(EquipmentProfileShutterSpeedValuesChangedEvent event, Emitter emit) async {
|
||||||
_newEquipmentProfile = _newEquipmentProfile.copyWith(shutterSpeedValues: event.shutterSpeedValues);
|
_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 {
|
Future<void> _onIsoValuesChanged(EquipmentProfileIsoValuesChangedEvent event, Emitter emit) async {
|
||||||
_newEquipmentProfile = _newEquipmentProfile.copyWith(isoValues: event.isoValues);
|
_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 {
|
Future<void> _onNdValuesChanged(EquipmentProfileNdValuesChangedEvent event, Emitter emit) async {
|
||||||
_newEquipmentProfile = _newEquipmentProfile.copyWith(ndValues: event.ndValues);
|
_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 {
|
Future<void> _onLensZoomChanged(EquipmentProfileLensZoomChangedEvent event, Emitter emit) async {
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/services.dart' show rootBundle;
|
import 'package:flutter/services.dart' show rootBundle;
|
||||||
import 'package:lightmeter/data/models/supported_locale.dart';
|
|
||||||
import 'package:lightmeter/generated/l10n.dart';
|
import 'package:lightmeter/generated/l10n.dart';
|
||||||
import 'package:lightmeter/providers/user_preferences_provider.dart';
|
|
||||||
import 'package:lightmeter/res/dimens.dart';
|
import 'package:lightmeter/res/dimens.dart';
|
||||||
|
|
||||||
class ReleaseNotesDialog extends StatelessWidget {
|
class ReleaseNotesDialog extends StatelessWidget {
|
||||||
|
@ -40,17 +38,8 @@ class ReleaseNotesDialog extends StatelessWidget {
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<String> loadReleaseNotes(BuildContext context) async {
|
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 {
|
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) {
|
} catch (e) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
|
@ -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: 0.21.0+53
|
version: 1.0.0+54
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=3.0.0 <4.0.0"
|
sdk: ">=3.0.0 <4.0.0"
|
||||||
|
|
Loading…
Reference in a new issue