mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2025-08-05 04:36:41 +00:00
aligned iap stub with iap release
This commit is contained in:
parent
660e24d4de
commit
74b1aed284
8 changed files with 62 additions and 81 deletions
|
@ -4,8 +4,6 @@ import 'package:m3_lightmeter_resources/m3_lightmeter_resources.dart';
|
||||||
|
|
||||||
export 'src/data/models/iap_product.dart';
|
export 'src/data/models/iap_product.dart';
|
||||||
export 'src/providers/iap_products_provider.dart';
|
export 'src/providers/iap_products_provider.dart';
|
||||||
export 'src/data/equipment_profile_service.dart';
|
|
||||||
export 'src/data/films_storage_service.dart';
|
|
||||||
export 'src/data/iap_storage_service.dart';
|
export 'src/data/iap_storage_service.dart';
|
||||||
|
|
||||||
const List<Film> films = [];
|
const List<Film> films = [];
|
||||||
|
|
|
@ -1,30 +0,0 @@
|
||||||
import 'dart:async';
|
|
||||||
|
|
||||||
import 'package:m3_lightmeter_resources/m3_lightmeter_resources.dart';
|
|
||||||
|
|
||||||
class EquipmentProfilesStorageService {
|
|
||||||
EquipmentProfilesStorageService();
|
|
||||||
|
|
||||||
Future<void> init() async {}
|
|
||||||
|
|
||||||
String get selectedEquipmentProfileId => '';
|
|
||||||
set selectedEquipmentProfileId(String id) {}
|
|
||||||
|
|
||||||
Future<void> addProfile(EquipmentProfile profile) async {}
|
|
||||||
|
|
||||||
Future<void> updateProfile({
|
|
||||||
required String id,
|
|
||||||
String? name,
|
|
||||||
List<IsoValue>? isoValues,
|
|
||||||
List<NdValue>? ndValues,
|
|
||||||
List<ApertureValue>? apertureValues,
|
|
||||||
List<ShutterSpeedValue>? shutterSpeedValues,
|
|
||||||
double? lensZoom,
|
|
||||||
double? exposureOffset,
|
|
||||||
bool? isUsed,
|
|
||||||
}) async {}
|
|
||||||
|
|
||||||
Future<void> deleteProfile(String id) async {}
|
|
||||||
|
|
||||||
Future<TogglableMap<EquipmentProfile>> getProfiles() async => {};
|
|
||||||
}
|
|
26
iap/lib/src/data/equipment_profiles_storage_service.dart
Normal file
26
iap/lib/src/data/equipment_profiles_storage_service.dart
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
part of 'package:m3_lightmeter_iap/src/data/iap_storage_service.dart';
|
||||||
|
|
||||||
|
mixin EquipmentProfilesStorageService on IapStorageServiceBase {
|
||||||
|
static const String selectedEquipmentProfileIdKey = "selectedEquipmentProfileId";
|
||||||
|
|
||||||
|
String get selectedEquipmentProfileId => '';
|
||||||
|
set selectedEquipmentProfileId(String id) {}
|
||||||
|
|
||||||
|
Future<void> addEquipmentProfile(EquipmentProfile profile) async {}
|
||||||
|
|
||||||
|
Future<void> updateEquipmentProfile({
|
||||||
|
required String id,
|
||||||
|
String? name,
|
||||||
|
List<IsoValue>? isoValues,
|
||||||
|
List<NdValue>? ndValues,
|
||||||
|
List<ApertureValue>? apertureValues,
|
||||||
|
List<ShutterSpeedValue>? shutterSpeedValues,
|
||||||
|
double? lensZoom,
|
||||||
|
double? exposureOffset,
|
||||||
|
bool? isUsed,
|
||||||
|
}) async {}
|
||||||
|
|
||||||
|
Future<void> deleteEquipmentProfile(String id) async {}
|
||||||
|
|
||||||
|
Future<TogglableMap<EquipmentProfile>> getEquipmentProfiles() async => {};
|
||||||
|
}
|
|
@ -1,10 +1,6 @@
|
||||||
import 'package:m3_lightmeter_resources/m3_lightmeter_resources.dart';
|
part of 'package:m3_lightmeter_iap/src/data/iap_storage_service.dart';
|
||||||
|
|
||||||
class FilmsStorageService {
|
|
||||||
FilmsStorageService();
|
|
||||||
|
|
||||||
Future<void> init() async {}
|
|
||||||
|
|
||||||
|
mixin FilmsStorageService on IapStorageServiceBase {
|
||||||
String get selectedFilmId => '';
|
String get selectedFilmId => '';
|
||||||
set selectedFilmId(String id) {}
|
set selectedFilmId(String id) {}
|
||||||
|
|
||||||
|
@ -16,11 +12,7 @@ class FilmsStorageService {
|
||||||
|
|
||||||
Future<void> deleteFilm(FilmExponential _) async {}
|
Future<void> deleteFilm(FilmExponential _) async {}
|
||||||
|
|
||||||
Future<TogglableMap<Film>> getPredefinedFilms() async {
|
Future<TogglableMap<Film>> getPredefinedFilms() async => {};
|
||||||
return const {};
|
|
||||||
}
|
|
||||||
|
|
||||||
Future<TogglableMap<FilmExponential>> getCustomFilms() async {
|
Future<TogglableMap<FilmExponential>> getCustomFilms() async => {};
|
||||||
return const {};
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,16 @@
|
||||||
import 'package:m3_lightmeter_resources/m3_lightmeter_resources.dart';
|
import 'package:m3_lightmeter_resources/m3_lightmeter_resources.dart';
|
||||||
|
|
||||||
class IAPStorageService {
|
part 'equipment_profiles_storage_service.dart';
|
||||||
const IAPStorageService(Object _);
|
part 'films_storage_service.dart';
|
||||||
|
part 'logbook_photos_storage_service.dart';
|
||||||
|
|
||||||
String get selectedEquipmentProfileId => '';
|
class IapStorageService extends IapStorageServiceBase
|
||||||
set selectedEquipmentProfileId(String id) {}
|
with EquipmentProfilesStorageService, FilmsStorageService, LogbookPhotosStorageService {
|
||||||
|
IapStorageService(); // coverage:ignore-line
|
||||||
List<EquipmentProfile> get equipmentProfiles => [];
|
}
|
||||||
set equipmentProfiles(List<EquipmentProfile> profiles) {}
|
|
||||||
|
abstract class IapStorageServiceBase {
|
||||||
|
IapStorageServiceBase();
|
||||||
|
|
||||||
|
Future<void> init() async {}
|
||||||
}
|
}
|
||||||
|
|
19
iap/lib/src/data/logbook_photos_storage_service.dart
Normal file
19
iap/lib/src/data/logbook_photos_storage_service.dart
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
part of 'package:m3_lightmeter_iap/src/data/iap_storage_service.dart';
|
||||||
|
|
||||||
|
mixin LogbookPhotosStorageService on IapStorageServiceBase {
|
||||||
|
bool get saveLogbookPhotos => false;
|
||||||
|
set saveLogbookPhotos(bool value) {}
|
||||||
|
|
||||||
|
Future<void> addPhoto(LogbookPhoto profile) async {}
|
||||||
|
|
||||||
|
Future<void> updatePhoto({
|
||||||
|
required String id,
|
||||||
|
String? note,
|
||||||
|
Optional<ApertureValue>? apertureValue,
|
||||||
|
Optional<ShutterSpeedValue>? shutterSpeedValue,
|
||||||
|
}) async {}
|
||||||
|
|
||||||
|
Future<void> deletePhoto(String id) async {}
|
||||||
|
|
||||||
|
Future<List<LogbookPhoto>> getPhotos() async => [];
|
||||||
|
}
|
|
@ -1,24 +0,0 @@
|
||||||
import 'dart:async';
|
|
||||||
|
|
||||||
import 'package:m3_lightmeter_resources/m3_lightmeter_resources.dart';
|
|
||||||
|
|
||||||
class LogbookPhotosStorageService {
|
|
||||||
LogbookPhotosStorageService();
|
|
||||||
|
|
||||||
Future<void> init() async {}
|
|
||||||
|
|
||||||
Future<void> addPhoto(LogbookPhoto profile) async {}
|
|
||||||
|
|
||||||
Future<void> updatePhoto({
|
|
||||||
required String id,
|
|
||||||
String? note,
|
|
||||||
ApertureValue? apertureValue,
|
|
||||||
bool removeApertureValue = false,
|
|
||||||
ShutterSpeedValue? shutterSpeedValue,
|
|
||||||
bool removeShutterSpeedValue = false,
|
|
||||||
}) async {}
|
|
||||||
|
|
||||||
Future<void> deletePhoto(String id) async {}
|
|
||||||
|
|
||||||
Future<List<LogbookPhoto>> getPhotos() async => [];
|
|
||||||
}
|
|
|
@ -12,7 +12,7 @@ dependencies:
|
||||||
m3_lightmeter_resources:
|
m3_lightmeter_resources:
|
||||||
git:
|
git:
|
||||||
url: "https://github.com/vodemn/m3_lightmeter_resources"
|
url: "https://github.com/vodemn/m3_lightmeter_resources"
|
||||||
ref: v2.2.0
|
ref: v2.3.0
|
||||||
shared_preferences:
|
shared_preferences:
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
|
@ -20,10 +20,5 @@ dev_dependencies:
|
||||||
sdk: flutter
|
sdk: flutter
|
||||||
flutter_lints: ^2.0.0
|
flutter_lints: ^2.0.0
|
||||||
|
|
||||||
|
|
||||||
dependency_overrides:
|
|
||||||
m3_lightmeter_resources:
|
|
||||||
path: /Users/vodemn/Documents/GitHub/Vodemn/m3_lightmeter_resources
|
|
||||||
|
|
||||||
flutter:
|
flutter:
|
||||||
uses-material-design: true
|
uses-material-design: true
|
||||||
|
|
Loading…
Reference in a new issue