added iap stub methods

This commit is contained in:
Vadim 2024-10-29 19:41:50 +01:00
parent 7b9f03f46e
commit 815f1809a5
3 changed files with 33 additions and 6 deletions

View file

@ -5,5 +5,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/iap_storage_service.dart'; export 'src/data/iap_storage_service.dart';
export 'src/data/films_storage_service.dart';
const List<Film> films = []; const List<Film> films = [];

View file

@ -0,0 +1,32 @@
import 'package:flutter/foundation.dart';
import 'package:m3_lightmeter_resources/m3_lightmeter_resources.dart';
typedef SelectableFilm<T extends Film> = ({T film, bool isUsed});
class FilmsStorageService {
FilmsStorageService();
Future<void> init() async {}
@visibleForTesting
Future<void> createTable(dynamic _) async {}
String get selectedFilmId => '';
set selectedFilmId(String id) {}
Future<void> addFilm(FilmExponential _) async {}
Future<void> updateFilm(FilmExponential _) async {}
Future<void> toggleFilm(Film _, bool __) async {}
Future<void> deleteFilm(FilmExponential _) async {}
Future<Map<String, SelectableFilm<Film>>> getPredefinedFilms() async {
return const {};
}
Future<Map<String, SelectableFilm<FilmExponential>>> getCustomFilms() async {
return const {};
}
}

View file

@ -8,10 +8,4 @@ class IAPStorageService {
List<EquipmentProfile> get equipmentProfiles => []; List<EquipmentProfile> get equipmentProfiles => [];
set equipmentProfiles(List<EquipmentProfile> profiles) {} set equipmentProfiles(List<EquipmentProfile> profiles) {}
Film get selectedFilm => const FilmStub();
set selectedFilm(Film value) {}
List<Film> get filmsInUse => [];
set filmsInUse(List<Film> profiles) {}
} }