mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-21 15:00:40 +00:00
added iap stub methods
This commit is contained in:
parent
7b9f03f46e
commit
815f1809a5
3 changed files with 33 additions and 6 deletions
|
@ -5,5 +5,6 @@ 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/films_storage_service.dart';
|
||||
|
||||
const List<Film> films = [];
|
||||
|
|
32
iap/lib/src/data/films_storage_service.dart
Normal file
32
iap/lib/src/data/films_storage_service.dart
Normal 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 {};
|
||||
}
|
||||
}
|
|
@ -8,10 +8,4 @@ class IAPStorageService {
|
|||
|
||||
List<EquipmentProfile> get equipmentProfiles => [];
|
||||
set equipmentProfiles(List<EquipmentProfile> profiles) {}
|
||||
|
||||
Film get selectedFilm => const FilmStub();
|
||||
set selectedFilm(Film value) {}
|
||||
|
||||
List<Film> get filmsInUse => [];
|
||||
set filmsInUse(List<Film> profiles) {}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue