Commit graph

1428 commits

Author SHA1 Message Date
Blake McAnally
ebd3d680bb extract section to computed property and tweak the if statements 2024-06-28 16:54:27 -05:00
Benjamin Faershtein
cde0266469 Does not show Duty Cycle warning when in licensed mode 2024-06-28 16:33:19 -05:00
Blake McAnally
bc77834a86
Merge branch '2.3.12_Working_Changes' into fetch-request-api 2024-06-28 11:49:24 -05: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
a58c5d894b Refactor fetch requests to use the EntityName.fetchRequest() API to prevent unnecessary branching 2024-06-28 09:04:24 -05:00
Garth Vander Houwen
2795c4cf69 Only allow 6 characters for call sign 2024-06-27 07:40:31 -07:00
Garth Vander Houwen
512f6b8c9e assorted backup fixes 2024-06-26 15:12:24 -07:00
Garth Vander Houwen
fd90d26acd use replace instead of migrate 2024-06-26 09:31:37 -07:00
Garth Vander Houwen
72cd6a8d01 Default app log fiters to not selected 2024-06-25 22:34:58 -07:00
Garth Vander Houwen
9d964f1614 Backup and restore database 2024-06-25 21:44:11 -07:00
Garth Vander Houwen
4b42bc257d Connect view cleanup 2024-06-25 18:55:43 -07:00
Garth Vander Houwen
91dfe0a4e7 Move sheet outside refreshable 2024-06-25 17:55:32 -07:00
Garth Vander Houwen
a18161a871 Multi select app log filters 2024-06-25 17:36:43 -07:00
Garth Vander Houwen
7cd1e897a7 Logging updates 2024-06-25 08:29:26 -07:00
Garth Vander Houwen
df87fb538d log updates 2024-06-24 07:24:24 -07:00
Garth Vander Houwen
fb7ba12fc0 More logs cleanup 2024-06-24 06:31:45 -07:00
Garth Vander Houwen
2b0cb11ee5 Better emoji for dark mode 2024-06-23 19:28:12 -07:00
Garth Vander Houwen
5b092710e5 Emoji 2024-06-23 19:17:55 -07:00
Garth Vander Houwen
57cc118ce3 Try and use old version 2024-06-23 18:43:43 -07:00
Garth Vander Houwen
a4546247a9 Clean up logs with privacy 2024-06-23 18:25:22 -07:00
Garth Vander Houwen
f3ab6a3968 Comment out broken load tile method 2024-06-23 17:23:57 -07:00
Garth Vander Houwen
fc97247b8c Logging and linting 2024-06-23 16:11:02 -07:00
Garth Vander Houwen
d6f5c77b1a position config 2024-06-23 14:40:28 -07:00
Garth Vander Houwen
921c648a6b Update log privacy 2024-06-23 14:30:55 -07:00
Garth Vander Houwen
f132589e9c Log updates 2024-06-23 13:08:15 -07:00
Garth Vander Houwen
12e090059d Backup database functionality 2024-06-23 13:00:20 -07:00
Garth Vander Houwen
b73b3864ea Delete admin message list 2024-06-23 12:25:08 -07:00
Garth Vander Houwen
1ac5bc9697 Update logs 2024-06-23 08:40:38 -07:00
Garth Vander Houwen
d456a7a6e6 translation strings for log headers, add device log setting to save 2024-06-23 08:23:05 -07:00
Garth Vander Houwen
f7a9345b4e Update client proxy logging 2024-06-23 08:06:59 -07:00
Garth Vander Houwen
6930d87275 Add device logging config, update protobufs 2024-06-23 07:36:03 -07:00
Garth Vander Houwen
26e785926f OS Log Viewer, device serial log over BLE 2024-06-23 07:09:14 -07:00
Garth Vander Houwen
2b22af6163 Add the mesh log to the logger 2024-06-03 11:14:59 -07:00
Garth Vander Houwen
cd0f7dd9d6 Emoji in the logs 2024-06-03 10:23:20 -07: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
82a8336e35 Additional swift lint fixes 2024-06-02 20:13:40 -07:00
Garth Vander Houwen
51929b3a35 Swiftlint fixes 2024-06-02 18:32:14 -07:00
Garth Vander Houwen
6c1e28d94a Core data updates 2024-06-02 09:45:56 -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
Garth Vander Houwen
fe82f1c3df
Merge branch '2.3.10_Working_Changes' into main 2024-06-01 07:30:50 -07:00
Garth Vander Houwen
24d4475b27 More clrcle cleanup 2024-05-31 20:39:45 -07:00
Garth Vander Houwen
7341d0b32a Fix nag timeout dropdown
Fix up circle text view
2024-05-31 20:25:37 -07: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
3911703f81 Bump version, add incomplete user icon 2024-05-29 12:52:35 -07:00
Garth Vander Houwen
6e7dc82098 Dont show the mqtt icon if you doint have either uplink or downlink enabled 2024-05-28 14:21:50 -07:00
Garth Vander Houwen
b7aa76564f Clean up the circle text a bit 2024-05-28 13:27:25 -07:00
Garth Vander Houwen
58e7a53c30 1000 node mesh map limit 2024-05-28 12:47:06 -07:00