Commit graph

92 commits

Author SHA1 Message Date
Benjamin Faershtein
13fd9c3a93
Don't subscribe to mqtt topic if downlink is not on (#1501)
* Dont sub if no downlink

* moved reload mqtt connect config
2025-12-09 22:46:14 -08:00
Garth Vander Houwen
5b060f9aa5
2.7.2 Working Changes (#1397)
* Bump version

* iOS 26 styled keyboard toolbar
Update tips backgrounds

* Link the logo to the about page

* Remove double logo on node list, update scary location log message, update tls toggle visibility and keyboard scroll dismiss on mqtt config

* Remove redundant colorScheme check
2025-09-13 14:13:20 -07:00
Garth Vander Houwen
026bb80fba
Transports Interface to Support TCP for all Platforms and Serial on Mac (#1341)
* Initial implementation of transports

* Initial LogRadio implementation

* Fixes for Settings view (caused by debug commenting)

* Refinement of the object and actor model

* Connect view text and tab updates

* Fix mac catalyst and tests

* Warning and logging clean-up

* In progress commit

* Serial Transport and Reconnect draft work

* Serial transport and reconnection draft work

* Quick fix for BLE - still more work to do

* interim commit

* More in progress changes

* Minor improvements

* Pretty good initial implementation

* Bump version beyond the app store

* Fix for disconnection swipeAction

* Tweaks to TCPConnection implementation

* Retry for NONCE_ONLY_DB

* Revert json string change

* Simplified some of the API + "Anti-discovery"

* Tweaks for devices leaving the discovery process

* Bump version

* iOS26 Tweaks

* Tweaks and bug fixes

* Add link with slash sf symbol

* update symbol image on connect view

* BLE disconnect handling

* Log privacy attributes

* Onboarding and minor fixes.

* change database to nodes, add emoji to tcp logs

* Error handling improvements

* More logging emojis

* Suppressed unnecessary errors on disconnect

* Heartbeat emoji

* Add bluetooth symbol

* add privacy attributes to [TCP] logs, add custom bluetooth logo

* Improve routing logs

* Emoji for connect logs

* Heartbeat emoji

* Add CBCentralManagerScanOptionAllowDuplicatesKey options to central for bluetooth

* fix nav errors by switching from observableobject to state

* Update connection indicator icon

* fix for BLE disconnects

* Connection process fixes

* More fixes/tweaks to connection process

* Strict concurrency

* Fix some warnings, remove wifi warning

* delete stale keys

* interim commit

* Update privacy for log, fix wrong space

* fix a couple of linting items

* Switch to targeted

* interim commit

* BLE Signal strenth on connect view

* Remove BLE RSSI from long press menu

* Modem lights

* minor spacing tweak

* Additional BLE logging and a scanning fix.

* Discovery and BLE RSSI improvements

* Background suspension

* Update isConnected to enable UI during db load

* update protobufs

* Replace config if statements with switches, Fix unknown module config logging, make dark mode modem circle stroke color white so they are visible

* Additional logging cleanup

* hast

* Set unmessagable to true if the longname has the unmessagable emoji

* Connect error handling improvements

* Admin popup list icon and activity lights updates

* Revert use of .toolbar back to .navigationBarItems

* More public logging

* Better BLE error handling

* Node DB progress meter

* minor tweak to activity light interaction timing

* Fix comment linting, remove stale keys

* Remove stale keys

* Easy linting fixes

* Two more simple linting fixes

* clean up meshtasticapp

* More public logging

* Replay config

* Logging

* Fix for unselected node on Settings

* Tweak to progress meter based on device idiom

* Update protos

* Session replay redaction of messages

* Serial fix for old devices, and a let statement

* Mask text too

* Fix typo

* BLE poweredOff is now an auto-reconnectable error

* Update logging

* Fix for peerRemovedPairingInformation

* Logging for BLE peripheral:didUpdateValueFor errors.

* Fix for inconsistent swipe disconnect behavior

* periperal:didUpdateValueFor error handling

* Fix for BLEConnection continuation guarding

* BLEConnection actor deadlock on disconnect

* Heartbeat nonce

* Fix for swipe disconnect and task cancellation

* Fix for swipe actions not honoring .disabled()

* Tell BLETransport when BLEConnection is cancelled

* Update navigation logging

* Logging updates

* Bump version to 2.7.0

* Organize into folders and heartbeat stuff

* Minor improvements to manual TCP connection

* Auto-connect toggle

* Possible BLE bug, still waiting to see in logs

* Concurrency tweaks

* Concurrency improvements

* requestDeviceMetadata fix. fixes remote admin

* Minor typo fixes

* "All" button for log filters: category and level

* More robust continuation handling for BLE

* @FetchRequest based ChannelMessageList

* Update info.plist and device hardware file

* Move auto connect toggle to app settings and debug mode, tint properly with the accent color

* Add label to auto connect toggle

* Update log for node info received from ourselves over the mesh

* Remove unused scrollViewProxy

* Update Meshtastic/Views/Onboarding/DeviceOnboarding.swift

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update target for connect view

* Properly Set datadog environment

* Comment out ble manager

* Adjust cyclomatic complexity thresholds in .swiftlint.yml

* Linting fixes, delete ble manager

* Make session replay debug only

---------

Co-authored-by: jake-b <jake-b@users.noreply.github.com>
Co-authored-by: jake <jake@jakes-Mac-mini.local>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-27 08:09:02 -07:00
Garth Vander Houwen
2b0ce47f22 Fixing linting errors caused by the bens 2025-07-16 15:54:53 -07:00
Garth Vander Houwen
bd88e1fdd3 Bump version, add channel help to settings channel update locks to be red only if precise location is being shared on an unencrypted channel 2025-06-22 20:19:42 -07:00
Garth Vander Houwen
63bc7a5805 Channels help 2025-06-18 17:51:09 -07:00
Garth Vander Houwen
9ecf7f7fbf Additional localization key fixes 2025-05-08 14:42:11 -07:00
Garth Vander Houwen
c3f23370c8 Update routing error translation strings 2025-05-05 09:35:30 -07:00
Garth Vander Houwen
00a7d83c4d More translation keys, delete unused file 2025-04-27 11:26:23 -07:00
Garth Vander Houwen
43c8ed3724 Additionaltranslatin key cleanup 2025-04-27 09:32:59 -07:00
Garth Vander Houwen
ea39adac26 Add OSLog Redacttion attributes 2025-03-31 22:06:00 -07:00
Garth Vander Houwen
c665026c37 Start removing localiazation keys 2025-02-15 09:40:55 -08:00
Garth Vander Houwen
d477de80c2 Remove ios 16 conditions 2024-10-05 10:44:46 -07:00
Garth Vander Houwen
e1ec14db2c Upgrade to ios 17 2024-10-04 19:36:30 -07:00
Garth Vander Houwen
4f813c12d3 Clean up precision ranges for locations on the map report and public key 2024-09-06 17:05:25 -07:00
Garth Vander Houwen
d0e10ef330 Finish up the admin, make the admin dropdown a navigationlink so you can read the full long name 2024-09-05 19:31:29 -07:00
Garth Vander Houwen
698eb7b5d0 Update app settings clear button 2024-08-26 22:31:03 -07:00
Garth Vander Houwen
d3a7de2f76 Seperate apps settings and data clearing, update logic for online nodes text 2024-08-25 23:02:43 -07:00
Garth Vander Houwen
55c90a815c Add some text for the new admin channel settings, show missing ack text 2024-08-23 19:49:06 -07:00
Blake McAnally
fbf059be6a Refactor BLEManager.context setting on all the views, and just do that at the app root instead 2024-07-15 15:57:44 -05:00
Garth Vander Houwen
09dfc90266 Fix disable channel crash, use a switch to make generate qr code more readable 2024-07-07 09:40:06 -07:00
Garth Vander Houwen
0b7dfc2227 Fix channel delete bug 2024-07-02 09:28:55 -07:00
Blake McAnally
58da532d32 Extract the generated protobufs into its own Swift package
This change modifies the process for generating and integrating the Meshtastic protobufs into the client application.

* The generated Swift code is now in a local SPM package `MeshtasticProtobufs`
* An Xcode Workspace file `Meshtastic.xcworkspace` was created to more easily manage the new build targets.
* The code generation script for the protos was modified to generate the Swift code into the new location.
* The README.md was updated to reflect these changes.

NOTE: After merging this PR, do not open the project file `Meshtastic.xcodeproj`. You must use the workspace `Meshtastic.xcworkspace`

Extracting out the generated protobuf code into its own library enables several opportunities for the project. This is just a first step, but with some more modularization, a standalone Apple Watch app or other targets starts to become a little bit more achievable to implement.

After extracting the protobufs into a Swift package, I validate these changes by building and running the Meshtastic app to an iPhone 15 Pro Max, and tried changing some settings on a local node. I then messaged back and forth using two local nodes connected to two different iOS devices.
2024-06-28 11:11:01 -05:00
Garth Vander Houwen
847892d45d Log categories 2024-06-03 02:17:55 -07:00
Garth Vander Houwen
51929b3a35 Swiftlint fixes 2024-06-02 18:32:14 -07:00
Blake McAnally
4c7cd0d923 Adopt OSLog for logging and replace the majority of calls to print() 2024-06-01 11:30:29 -05:00
Blake McAnally
4d547e48db This change fixes several lint errors throughout the project, and moves the SwiftLint build phase to before compilation.
After this change, a developer can now clone the project and run without the build failing due to lint errors! 😃

* I ran `swiftlint --fix` to resolve many auto-correctable issues (mostly whitespace)
* Excluded the `Meshtastic/Protobufs` directory from lint, since that code is automatically generated.
* Converted some single letter method parameters to lowercase.
* Converted several instances `force_cast` to instead use `guard` or `if let` to unwrap optional values. During this change, some of the SwiftUI views became "too complex to be solved in a reasonable time", so I broke up the views into distinct sub-expressions.

I was able to build and run the app on an iOS simulator.
2024-05-31 21:48:50 -05:00
Garth Vander Houwen
08ea85d717 Re order gps mode toggle
add additional position precision options
Updated fixed postion text
2024-05-04 16:03:38 -07:00
Garth Vander Houwen
2627858e33 Fix some crashes 2024-04-19 13:36:17 -07:00
Garth Vander Houwen
2b785b66b0 PINK! 2024-04-10 19:59:35 -07:00
Garth Vander Houwen
6144786cf9 Move all app settings to the settings bundle and link from the app settings view
Add enter shortcut to alert ok buttons on the node list
2024-04-10 18:43:24 -07:00
Garth Vander Houwen
7cdf77ba2e Delete nodes on that channel when deleting a channel 2024-04-03 13:33:55 -07:00
Garth Vander Houwen
6a41cf63be Put qr code experiment in place, fix up channel editor 2024-04-02 21:49:36 -07:00
Garth Vander Houwen
78c0bca781 Add favorite and distance filter to the node list 2024-04-02 06:17:03 -07:00
Garth Vander Houwen
ee891f62c7 Add channel fixes 2024-04-01 12:16:09 -07:00
Garth Vander Houwen
d64acccc3e Remove VIP, clean up add channel method 2024-04-01 10:51:06 -07:00
Garth Vander Houwen
8528f08572 Convert channels to use the selected pattern for the sheet 2024-03-17 10:26:42 -07:00
Garth Vander Houwen
8d2b705068 Split channel form out into its own view 2024-03-17 10:08:03 -07:00
Garth Vander Houwen
989b6c41e5 Add 1 byte key to channel validation. 2024-03-10 00:25:02 -08:00
Garth Vander Houwen
2ba208fa8e Bump version and protos 2024-03-09 20:07:12 -08:00
Garth Vander Houwen
d3d16e206e Release Cleanup
Add back block range test functionaitly, hook it up to the device range test settings.
Delete messages when deleting a channel
Make pax counter clear work properly
2024-02-27 11:26:26 -08:00
Garth Vander Houwen
5d9b25b0aa Polish up the reduced position accuracy 2024-02-25 00:36:03 -08:00
Garth Vander Houwen
85c2a9e938 Hook up the position precision channel settings 2024-02-24 22:33:11 -08:00
Garth Vander Houwen
e462055ad7 Reduced precision map circles for the node map 2024-02-24 16:25:08 -08:00
Garth Vander Houwen
5a0f180acf Update protobufs, hook up precision 2024-02-24 14:11:03 -08:00
Garth Vander Houwen
c61d39a7e1 Pull device hardware from a local json file 2024-02-24 10:43:15 -08:00
Garth Vander Houwen
3798cd43be Channel Location Precision mockup 2024-02-23 23:18:48 -08:00
Garth Vander Houwen
4288415cf1 Sliding into channels 2024-02-23 16:08:01 -08:00
Garth Vander Houwen
dd1c1522b5 Handle duty cycle of 0 for UNSET region 2024-02-21 17:42:46 -08:00
Garth Vander Houwen
79d5aab240 Stop clearing channels on each connect 2024-02-20 21:24:32 -08:00