Commit graph

72 commits

Author SHA1 Message Date
Blake McAnally
b011cbde42 Create dedicated data layer types for querying and updating CoreData 2024-07-10 16:03:38 -05:00
Garth Vander Houwen
eadb5d0c66 set initial position further out 2024-07-09 18:34:40 -07:00
Garth Vander Houwen
2a7752c0b8 fix app log version discrepancy 2024-07-07 14:11:29 -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
84fb8c9b60 Hook position popower back up on the mesh map 2024-06-02 23:53:26 -07:00
Garth Vander Houwen
51929b3a35 Swiftlint fixes 2024-06-02 18:32:14 -07:00
Garth Vander Houwen
a2233cddba Merge remote-tracking branch 'refs/remotes/origin/2.3.10_Working_Changes' 2024-06-01 23:02:19 -07:00
Garth Vander Houwen
187acc7466 Update protobufs, tag for map circle 2024-06-01 23:02:06 -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
3046361dd0 Assorted changes 2024-05-24 18:15:53 -07:00
Garth Vander Houwen
0997cc7dba Cleanup 2024-05-14 23:07:09 -07:00
Garth Vander Houwen
8bcf40f543 Deep Links
Updated position precision
2024-05-06 23:03:51 -07:00
Garth Vander Houwen
70fb1eb8d8 Don't add channels with the same name
Add additional precision options
2024-05-05 08:38:27 -07:00
Garth Vander Houwen
9beccc1639 fix delete waypoint bugs 2024-04-08 10:59:38 -07:00
Garth Vander Houwen
aa08f2ff33 Drop the last character for string length validation, bump version 2024-04-04 09:39:03 -07:00
Garth Vander Houwen
8a214d93eb Contact list filters 2024-04-02 11:16:32 -07:00
Garth Vander Houwen
d64acccc3e Remove VIP, clean up add channel method 2024-04-01 10:51:06 -07:00
Garth Vander Houwen
f38e61b0b2 Hook up favorites, clean up admin dropdown list 2024-03-29 14:37:09 -07:00
Garth Vander Houwen
170ec3b88b Fix node map display bug 2024-03-29 10:54:30 -07:00
Garth Vander Houwen
1162a7ef44 Show firmware version for remotely administered nodes on the node deails. Don't show the delete waypoint button if you are not conneced to a node 2024-03-28 16:14:57 -07:00
Garth Vander Houwen
6a7baf1ebe Add back 48 hour filter to the mesh map, add admin channel tip 2024-03-28 08:39:34 -07:00
Garth Vander Houwen
4d584f64c9 Flat the map by default so precision circles are prettier 2024-03-27 16:30:58 -07:00
Garth Vander Houwen
496451c15c Add node filters 2024-03-26 07:54:16 -07:00
Garth Vander Houwen
525b1b2509 More map cleanup 2024-03-25 19:20:36 -07:00
Garth Vander Houwen
80103ebda2 Revert user default updates, move everything to the map settings form 2024-03-25 18:43:03 -07:00
Garth Vander Houwen
7eb6659c0c Move fetch requests to mapcontent 2024-03-25 15:21:38 -07:00
Garth Vander Houwen
b0101ab4ce A little more map cleanup 2024-03-24 23:13:35 -07:00
Garth Vander Houwen
f3f126da38 Add node history and route lines back to the mesh map for favorites 2024-03-24 22:56:38 -07:00
Garth Vander Houwen
c372a8e940 Shorten label for mesh map node distance 2024-03-24 22:37:50 -07:00
Garth Vander Houwen
554fe9a3ca Node distance filter for the mesh map 2024-03-24 22:23:55 -07:00
Garth Vander Houwen
7d00a5882b Try and use less ram on the mesh map 2024-03-23 18:01:20 -07:00
Garth Vander Houwen
02cca19f26 Assorted updates 2024-03-23 09:01:44 -07:00
Garth Vander Houwen
1769b63466 Delete extra variables, zoom out more to start on the node map 2024-03-14 23:17:36 -07:00
Garth Vander Houwen
550add228c Move node map into map content view
Dont change channel for node infos directed at other nodes
2024-03-14 23:05:05 -07:00
Garth Vander Houwen
d5f5d70364 Start work to fix the broken node map view
Tidy up suggested mqtt topics
2024-03-14 18:58:05 -07:00
Garth Vander Houwen
93ac03959b Add mqtt to postion popover 2024-03-10 03:30:11 -07:00
Garth Vander Houwen
08de61ee71 Node list updates 2024-03-09 23:37:00 -08:00
Garth Vander Houwen
e59df5f486 Add MQTT to trace route string 2024-02-27 21:16:44 -08:00
Garth Vander Houwen
b2d034ecfc Revert to turn off node history 2024-02-27 17:22:56 -08:00
Garth Vander Houwen
7735628a3b REmove precision bits from node map 2024-02-27 17:15:24 -08:00
Garth Vander Houwen
528ee2077c Move lastest check up 2024-02-27 17:10:41 -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
02009bcf56 Node map reduced precision circle 2024-02-24 17:14:31 -08:00
Garth Vander Houwen
3722127564 Add low precision circles to node map 2024-02-24 16:32:36 -08:00
Garth Vander Houwen
d59eb07326 Turn of node history and route lines on the mesh map 2024-02-17 15:37:28 -08:00
Garth Vander Houwen
aa2f3c4511 LazyVStacks for annotations 2024-01-21 13:12:32 -08:00
Garth Vander Houwen
c523b05d23 Format headings and speed better 2023-12-23 22:47:56 -08:00