CH-J SM Mobileserver management over SSH
Menu
Published source

CH-J SM Mobile

Browse directories and files for a specific application release.

Download source ZIP
CH-J / SM Mobile 134 files
sm-mobile-20261016T050549Z-3678f2a05fa9 Added: · Built:
Files
support.dart Added: Date not recorded 538 B · 19 lines
Download file
1import 'package:sm_mobile/services/secure_store.dart';
3class MemoryStore implements SecureStore {
4 final Map<String, String> values;
5 bool failWrites = false;
6 MemoryStore([Map<String, String>? initial]) : values = {...?initial};
7 @override
8 Future<String?> read(String key) async => values[key];
9 @override
10 Future<void> write(String key, String value) async {
11 if (failWrites) throw StateError('write failed');
12 values[key] = value;
13 }
15 @override
16 Future<void> delete(String key) async {
17 values.remove(key);
18 }
SHA-25659baa7aa3a7bce63175951ba00d388f588658581aed13742c9acc221df57415a

CH-J Proprietary Software License 1.14 · Source is provided under the CH-J Proprietary Software License 1.14. Its availability does not change the license terms or grant additional rights.

Archive SHA-256c486a807e4828998b9c57ab0f2e760f7980b31965fe118e89d3e1a5a2b65be65