Commit graph

21 commits

Author SHA1 Message Date
Garth Vander Houwen
90dd5b2141 Make current location nilable, remove log spam 2025-09-26 19:17:52 -07:00
Garth Vander Houwen
a0e94bd518 More translation key cleanup 2025-04-27 16:19:10 -07:00
Garth Vander Houwen
88e7c92f89 Switch to new locations handler 2025-01-21 09:19:14 -08: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
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
58e7a53c30 1000 node mesh map limit 2024-05-28 12:47:06 -07:00
Garth Vander Houwen
33d8f6bc1a add back other core data filters 2024-05-28 12:39:30 -07:00
Garth Vander Houwen
ba35e08309 Take off mesh map node limits, reduce max font size for circle text 2024-05-28 12:33:49 -07:00
Garth Vander Houwen
8a214d93eb Contact list filters 2024-04-02 11:16:32 -07:00
Garth Vander Houwen
52c52ae1e6 100 node limit on the node map, remove 2500 mile distance filter 2024-03-31 12:38:17 -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
7c022813a2 Fixed position updates 2024-03-27 16:06:24 -07:00
Garth Vander Houwen
496451c15c Add node filters 2024-03-26 07:54:16 -07:00
Garth Vander Houwen
d768eb64e9 Dont allow json and the client proxy, max position request of 300 for the mesh map 2024-03-24 22:31:47 -07:00
Garth Vander Houwen
554fe9a3ca Node distance filter for the mesh map 2024-03-24 22:23:55 -07:00
Garth Vander Houwen
6be729305d All positions query updates 2024-03-24 13:13:05 -07:00
Garth Vander Houwen
e9e886e5bc Filter out far away positions on the node map 2024-03-24 11:45:49 -07:00
Garth Vander Houwen
03a210e415 Get the last 50 nodes seen for the mesh map, zoom much closer by default, only show nodes from the last 48 hours on the mesh map 2024-03-23 18:22:10 -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
e399a426ad Only show logs when there is data. Move coredata extentions. Allow turning off of mqtt client proxy. Save unread message badges on configcomplete 2023-09-03 22:14:59 -07:00
Renamed from Meshtastic/Persistence/PositionEntityExtension.swift (Browse further)