diff --git a/iap/lib/m3_lightmeter_iap.dart b/iap/lib/m3_lightmeter_iap.dart index 003b0da..7814253 100644 --- a/iap/lib/m3_lightmeter_iap.dart +++ b/iap/lib/m3_lightmeter_iap.dart @@ -4,7 +4,8 @@ import 'package:m3_lightmeter_resources/m3_lightmeter_resources.dart'; export 'src/data/models/iap_product.dart'; export 'src/providers/iap_products_provider.dart'; -export 'src/data/iap_storage_service.dart'; +export 'src/data/equipment_profile_service.dart'; export 'src/data/films_storage_service.dart'; +export 'src/data/iap_storage_service.dart'; const List films = []; diff --git a/iap/lib/src/data/equipment_profile_service.dart b/iap/lib/src/data/equipment_profile_service.dart new file mode 100644 index 0000000..f6d8d4f --- /dev/null +++ b/iap/lib/src/data/equipment_profile_service.dart @@ -0,0 +1,29 @@ +import 'dart:async'; + +import 'package:m3_lightmeter_resources/m3_lightmeter_resources.dart'; + +class EquipmentProfilesStorageService { + EquipmentProfilesStorageService(); + + Future init() async {} + + String get selectedEquipmentProfileId => ''; + set selectedEquipmentProfileId(String id) {} + + Future addProfile(EquipmentProfile profile) async {} + + Future updateProfile({ + required String id, + String? name, + List? isoValues, + List? ndValues, + List? apertureValues, + List? shutterSpeedValues, + double? lensZoom, + bool? isUsed, + }) async {} + + Future deleteProfile(String id) async {} + + Future> getProfiles() async => {}; +} diff --git a/iap/lib/src/data/films_storage_service.dart b/iap/lib/src/data/films_storage_service.dart index 985d0e8..105afd6 100644 --- a/iap/lib/src/data/films_storage_service.dart +++ b/iap/lib/src/data/films_storage_service.dart @@ -1,16 +1,10 @@ -import 'package:flutter/foundation.dart'; import 'package:m3_lightmeter_resources/m3_lightmeter_resources.dart'; -typedef SelectableValue = ({T film, bool isUsed}); - class FilmsStorageService { FilmsStorageService(); Future init() async {} - @visibleForTesting - Future createTable(dynamic _) async {} - String get selectedFilmId => ''; set selectedFilmId(String id) {} diff --git a/iap/pubspec.yaml b/iap/pubspec.yaml index 56bc8e1..f6f17ab 100644 --- a/iap/pubspec.yaml +++ b/iap/pubspec.yaml @@ -12,7 +12,7 @@ dependencies: m3_lightmeter_resources: git: url: "https://github.com/vodemn/m3_lightmeter_resources" - ref: v2.0.0 + ref: v2.1.0 shared_preferences: 2.2.0 dev_dependencies: diff --git a/integration_test/e2e_test.dart b/integration_test/e2e_test.dart index cb76bc9..14fc859 100644 --- a/integration_test/e2e_test.dart +++ b/integration_test/e2e_test.dart @@ -18,7 +18,6 @@ import 'package:lightmeter/screens/settings/components/shared/dialog_range_picke import 'package:lightmeter/screens/settings/screen_settings.dart'; import 'package:lightmeter/utils/double_to_zoom.dart'; import 'package:lightmeter/utils/platform_utils.dart'; -import 'package:m3_lightmeter_iap/m3_lightmeter_iap.dart'; import 'package:m3_lightmeter_resources/m3_lightmeter_resources.dart'; import 'package:meta/meta.dart'; import 'package:shared_preferences/shared_preferences.dart'; diff --git a/pubspec.yaml b/pubspec.yaml index d653620..c8dd390 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -32,11 +32,11 @@ dependencies: m3_lightmeter_iap: git: url: "https://github.com/vodemn/m3_lightmeter_iap" - ref: feature/MLI-15 + ref: feature/ML-196 m3_lightmeter_resources: git: url: "https://github.com/vodemn/m3_lightmeter_resources" - ref: v2.0.0 + ref: v2.1.0 material_color_utilities: 0.5.0 package_info_plus: 4.2.0 permission_handler: 10.4.3 diff --git a/screenshots/generate_screenshots.dart b/screenshots/generate_screenshots.dart index 71ce474..a47b9e9 100644 --- a/screenshots/generate_screenshots.dart +++ b/screenshots/generate_screenshots.dart @@ -23,7 +23,6 @@ import 'package:lightmeter/screens/settings/screen_settings.dart'; import 'package:lightmeter/screens/shared/animated_circular_button/widget_button_circular_animated.dart'; import 'package:lightmeter/screens/timer/screen_timer.dart'; import 'package:lightmeter/utils/platform_utils.dart'; -import 'package:m3_lightmeter_iap/m3_lightmeter_iap.dart'; import 'package:m3_lightmeter_resources/m3_lightmeter_resources.dart'; import 'package:shared_preferences/shared_preferences.dart';