Commit graph

61 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
5c57d38ee6 Update channel url query string location and support both formats 2024-07-09 18:29:59 -07: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
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
51929b3a35 Swiftlint fixes 2024-06-02 18:32:14 -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
a4c1fc4fe6 Remove up and downlink from QR codes
Open node details view from new node notification
Fix speed
Simple deep linking structure
2024-05-14 22:39:07 -07:00
Garth Vander Houwen
b5e621df89 Show mqtt errors for the client proxy 2024-04-05 17:14:04 -07:00
Garth Vander Houwen
1e6546ea72 New share channels tip 2024-04-04 15:25:02 -07:00
Garth Vander Houwen
2a38dbbb1c Wire up adding instead of replacing channels via qr code. 2024-04-02 23:43:00 -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
acc6eb017d Add ignoremqtt to qr code 2024-01-20 21:32:36 -08:00
Garth Vander Houwen
3a5f192ac1 Map annotation popover and convex hull! 2023-09-17 19:42:03 -07:00
Garth Vander Houwen
fc0e152455 Tips and empty content views 2023-09-15 18:40:52 -07:00
Garth Vander Houwen
c75ca8ad5a
Merge branch 'main' into iOS17_Working_Changes 2023-09-05 21:53:42 -07:00
Garth Vander Houwen
b6cfd07000 Question everything 2023-09-02 17:37:35 -07:00
Garth Vander Houwen
7a1c20dbb9 Tips 2023-08-31 22:39:51 -07:00
Garth Vander Houwen
93ffd8c72d Fix username on mqtt config save
Set mqtt.address character limit to 62
2023-03-24 10:35:54 -07:00
Garth Vander Houwen
9096dbc726 Map Cleanup
Allow qr code to share only secondary channels
2023-03-21 17:53:53 -07:00
Garth Vander Houwen
373aa9c511 Fix lint errors 2023-03-14 14:33:27 -07:00
Garth Vander Houwen
93006b258d Swift Lint 2023-03-14 12:44:10 -07:00
Garth Vander Houwen
65dde905f7 Add descriptive text for LoRa Config depending on state
Fix rx boosted gain toggle
Make a big hardware model enum
2023-03-11 09:26:52 -08:00
Garth Vander Houwen
05c00aeb20 Lint! 2023-03-06 13:26:04 -08:00
Garth Vander Houwen
fdade220de SwiftLint Whitespace fixes 2023-03-06 10:33:18 -08:00
Garth Vander Houwen
322edc9e0d Fix share channels crash 2023-02-12 20:11:50 -08:00
Garth Vander Houwen
3758e6007e Finish up waypoint form 2023-02-03 19:20:23 -08:00
Garth Vander Houwen
9f23ea3fea Additionally localized strings 2022-12-29 16:36:43 -08:00
Garth Vander Houwen
464b74a118 Channel Grid 2022-12-17 19:14:53 -08:00
Garth Vander Houwen
d9243f5a00 Add oled type override to display settings
Add button to close share channels help on mac
2022-12-11 14:14:08 -08:00
Garth Vander Houwen
b1166ef5ba Add dismiss button to help sheet on share channels 2022-12-09 19:15:15 -08:00
Garth Vander Houwen
cdc4288278 Multi channel and qr code fixes 2022-11-08 12:48:16 -08:00
Garth Vander Houwen
8de0336458 Break apart channel names for display 2022-11-06 18:05:10 -08:00
Garth Vander Houwen
238b2a78d1 Messaging cleanup 2022-11-05 08:26:27 -07:00
Garth Vander Houwen
03fd74f2cd Improved channel saving logic 2022-10-29 07:31:50 -07:00
Garth Vander Houwen
b03881798a Channel cleanup 2022-10-28 09:02:37 -07:00
Garth Vander Houwen
288b35d6fc QR Code fixes 2022-10-22 13:05:54 -07:00
Garth Vander Houwen
edcecd8e0e Updates for channel import and blemanager dispatchque update warnings 2022-10-22 07:35:55 -07:00
Garth Vander Houwen
0060dcbf21 More cleanup 2022-10-17 21:18:57 -07:00
Garth Vander Houwen
acf544aa09 Bigger QR code, hide disabled channels 2022-10-15 20:22:13 -07:00
Garth Vander Houwen
e43b673c05 Message Cleanup, stop QR view crash, hook up messages to preferred node 2022-10-14 22:18:28 -07:00
Garth Vander Houwen
69e12ec337 remove www from qr link 2022-10-12 20:13:03 -07:00
Garth Vander Houwen
5790839022 Start of connection timer UI 2022-10-12 15:26:25 -07:00
Garth Vander Houwen
b5b6e41776 Whtespace 2022-10-11 06:22:16 -07:00
Garth Vander Houwen
8cf3520cae Fix base64 == append 2022-10-11 06:02:23 -07:00
Garth Vander Houwen
0bea6f8fa3 handle base64 urls 2022-10-11 05:36:49 -07:00
Garth Vander Houwen
96aa9a60a6 Decode qr code string 2022-10-10 21:21:58 -07:00
Garth Vander Houwen
d1d5bb6537 Fix up buttons 2022-10-10 19:24:01 -07:00
Garth Vander Houwen
1742ec3b48 Finish up share channels view 2022-10-10 18:59:33 -07:00
Garth Vander Houwen
e24c9df7ff Add www to url 2022-10-10 14:22:26 -07:00
Garth Vander Houwen
183ce7194c Clean up qr code generator 2022-10-10 13:50:57 -07:00