Add opt-in network map uploads and online map view
- Opt-in upload of header-only packet records and repeater/room server adverts to map.meshcoreopen.org about once a minute; payloads, channel and DM hashes and transport codes are stripped on the phone, locations snapped to a ~2 km grid, install ID rotates daily - One-time opt-in dialog on first radio connection; toggle and status in App settings - Local / Online / Both switch on the map screen with online repeater hexagons, links, add-to-contacts and manage - Node purchase banner on the connect screen (affiliate link, disclosed) - Privacy policy and network map documentation - Translations for all locales
This commit is contained in:
1 parent
d30744aa31
commit
bc14de586f
68 files changed
+6719
-76
No files matched your search
@@ -131,6 +131,12 @@ class AppSettings {
|
||||
final bool jumpToOldestUnread;
|
||||
final bool imageMessagesEnabled;
|
||||
|
||||
/// Opt-in upload of header-only packet records to the network map.
|
||||
final bool networkMapUploadEnabled;
|
||||
|
||||
/// Whether the one-time network map opt-in dialog has been shown.
|
||||
final bool networkMapPromptShown;
|
||||
|
||||
/// Whether a received image is decoded as soon as it is reassembled.
|
||||
///
|
||||
/// Off by default and deliberately so: a decode peaks around 2.16 GiB
|
||||
@@ -239,6 +245,8 @@ class AppSettings {
|
||||
this.tcpServerPort = 0,
|
||||
this.jumpToOldestUnread = false,
|
||||
this.imageMessagesEnabled = false,
|
||||
this.networkMapUploadEnabled = false,
|
||||
this.networkMapPromptShown = false,
|
||||
this.imageProcessAutomatically = false,
|
||||
this.imageCodecEnabled = false,
|
||||
this.imageCodecSelectedModelId,
|
||||
@@ -321,6 +329,8 @@ class AppSettings {
|
||||
'tcp_server_port': tcpServerPort,
|
||||
'jump_to_oldest_unread': jumpToOldestUnread,
|
||||
'image_messages_enabled': imageMessagesEnabled,
|
||||
'network_map_upload_enabled': networkMapUploadEnabled,
|
||||
'network_map_prompt_shown': networkMapPromptShown,
|
||||
'image_process_automatically': imageProcessAutomatically,
|
||||
'image_codec_enabled': imageCodecEnabled,
|
||||
'image_codec_selected_model_id': imageCodecSelectedModelId,
|
||||
@@ -428,6 +438,9 @@ class AppSettings {
|
||||
tcpServerPort: json['tcp_server_port'] as int? ?? 0,
|
||||
jumpToOldestUnread: json['jump_to_oldest_unread'] as bool? ?? false,
|
||||
imageMessagesEnabled: json['image_messages_enabled'] as bool? ?? false,
|
||||
networkMapUploadEnabled:
|
||||
json['network_map_upload_enabled'] as bool? ?? false,
|
||||
networkMapPromptShown: json['network_map_prompt_shown'] as bool? ?? false,
|
||||
imageProcessAutomatically:
|
||||
json['image_process_automatically'] as bool? ?? false,
|
||||
imageCodecEnabled: json['image_codec_enabled'] as bool? ?? false,
|
||||
@@ -548,6 +561,8 @@ class AppSettings {
|
||||
int? tcpServerPort,
|
||||
bool? jumpToOldestUnread,
|
||||
bool? imageMessagesEnabled,
|
||||
bool? networkMapUploadEnabled,
|
||||
bool? networkMapPromptShown,
|
||||
bool? imageProcessAutomatically,
|
||||
bool? imageCodecEnabled,
|
||||
Object? imageCodecSelectedModelId = _unset,
|
||||
@@ -633,6 +648,10 @@ class AppSettings {
|
||||
tcpServerPort: tcpServerPort ?? this.tcpServerPort,
|
||||
jumpToOldestUnread: jumpToOldestUnread ?? this.jumpToOldestUnread,
|
||||
imageMessagesEnabled: imageMessagesEnabled ?? this.imageMessagesEnabled,
|
||||
networkMapUploadEnabled:
|
||||
networkMapUploadEnabled ?? this.networkMapUploadEnabled,
|
||||
networkMapPromptShown:
|
||||
networkMapPromptShown ?? this.networkMapPromptShown,
|
||||
imageProcessAutomatically:
|
||||
imageProcessAutomatically ?? this.imageProcessAutomatically,
|
||||
imageCodecEnabled: imageCodecEnabled ?? this.imageCodecEnabled,
|
||||
|
||||
Reference in new issue
Block a user