Commit graph

397 commits

Author SHA1 Message Date
Garth Vander Houwen
81a5a46ae2 Assorted version updates and core data cleanup 2024-07-09 08:08:08 -07:00
Garth Vander Houwen
b89a88e937 Merge remote-tracking branch 'refs/remotes/origin/main' 2024-07-07 14:11:51 -07:00
Blake McAnally
80096519d5 update protobufs 2024-07-07 10:57:27 -05:00
Garth Vander Houwen
dfc9cb32a2 Bump version 2024-07-06 19:46:40 -07:00
Garth Vander Houwen
31bc8206b9
Merge pull request #754 from meshtastic/crash_fixes
truncate some ints that are crashing
2024-07-06 19:17:24 -07:00
Garth Vander Houwen
b436b76997 Remove ios18 mainactor annotations 2024-07-06 19:15:32 -07:00
Ben Meadors
9cf5eb14f5 Plumb in new LogRecord based BLE characteristic 2024-07-02 13:13:12 -05:00
Garth Vander Houwen
8ab0139af4
Merge pull request #737 from meshtastic/log_level_colors
Log level colors
2024-06-28 22:32:40 -07:00
Garth Vander Houwen
509037c102 Remove extra space 2024-06-28 22:07:52 -07:00
Garth Vander Houwen
9f1b3975f8 Use indigo for debug color, clean up filters 2024-06-28 19:30:12 -07:00
Blake McAnally
55941b579c
Merge pull request #734 from 72A12F4E/migrate-to-string-catalogs
Migrate to String Catalogs
2024-06-28 19:45:02 -05:00
Blake McAnally
44adbf9c5e Migrate to String Catalogs 2024-06-28 18:04:04 -05:00
Garth Vander Houwen
f813f32a69 Bump version 2024-06-28 15:27:45 -07:00
Blake McAnally
173f5dad82 fix proj file 2024-06-28 16:22:41 -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
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
12e090059d Backup database functionality 2024-06-23 13:00:20 -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
fec8d546bd Bump version 2024-06-23 06:31:40 -07:00
Garth Vander Houwen
0cbcd9e7a3 try and revert 2024-06-23 06:20:22 -07:00
Garth Vander Houwen
6e3314aeda Fix widget version 2024-06-07 08:29:10 -07:00
Blake McAnally
893fdcd11f Factor out more CoreData entity creation into convenience initializers 2024-06-06 23:04:18 -05:00
Blake McAnally
e287ad6b78 Refactor how mesh packets are persisted to the data model 2024-06-06 15:14:53 -05:00
Garth Vander Houwen
a3956f0ff8 Remove swiftlint from widgets 2024-06-06 08:32:24 -07:00
Garth Vander Houwen
d5884988b1 Adjust font size for phones on log view 2024-06-06 08:12:09 -07:00
Garth Vander Houwen
22447cb54d Log export to CSV 2024-06-05 23:56:28 -07:00
Garth Vander Houwen
544bbd3621 Debug log updates 2024-06-05 20:46:24 -07:00
Garth Vander Houwen
2b9a4bcdbc Dont run swiftlint build plugin 2024-06-05 10:35:03 -07:00
Garth Vander Houwen
69de380711 remove swiftlint so xcode cloud builds 2024-06-05 10:28:37 -07:00
Garth Vander Houwen
5b064e5260 run xcode script 2024-06-05 10:24:15 -07:00
Garth Vander Houwen
290a19a022 Try and fix xcode cloud 2024-06-05 09:25:38 -07:00
Garth Vander Houwen
81839ea313 Merge remote-tracking branch 'refs/remotes/origin/2.3.11_Working_Changes' 2024-06-04 22:41:51 -07:00
Garth Vander Houwen
ef6068321d Simple debug log 2024-06-04 22:41:45 -07:00
Garth Vander Houwen
12e8f996e1
Merge pull request #663 from 72A12F4E/node-map-compile-time
Refactor `NodeMapSwiftUI.swift`
2024-06-04 22:41:02 -07:00
Blake McAnally
1a297246be Fix the project file, and fix a bad merge in the portugese strings file 2024-06-04 21:58:40 -05:00
Garth Vander Houwen
b6797b0166 Move logger 2024-06-04 17:30:58 -07:00
Blake McAnally
de7c53cd89 Decompose NodeMapSwiftUI into computed properties to improve compile performance 2024-06-04 17:19:35 -05:00
Garth Vander Houwen
9d5f31927e
Merge pull request #660 from 72A12F4E/project-cleanup
General Project Cleanup
2024-06-03 20:18:59 -07:00
Garth Vander Houwen
ded26e6f21 Bump version, add some emoji to logs 2024-06-03 18:49:33 -07:00
Blake McAnally
0dedf94a98 General Project Cleanup
* Change SwiftLint from a "Run Script" build phase to a "Run Build Tool Plugins" build phase.
    * Developers no longer need to install and update SwiftLint manually. This can be useful when other projects are using different versions of SwiftLint.
    * [SwiftLint Docs](https://github.com/realm/SwiftLint?tab=readme-ov-file#xcode-projects)
    * [WWDC 22 - Meet Swift Package Plugins](https://developer.apple.com/videos/play/wwdc2022/110359/?time=162)
* Moved several scripts into a `.scripts` directory to keep the project root organized.
* Modified `.scripts/gen_protos.sh` to intelligently update git submodules and install `swift-protobuf` when it detects issues, reducing developer friction.
* Deleted the empty unit and UI testing targets. These can be added later as we write tests. someday 🙏
* Updated the README.md to reflect the above changes, and organized a few of the sections.
2024-06-03 19:58:18 -05: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
e5d4c10de0 add Portuguese 2024-06-02 08:53:27 -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
3911703f81 Bump version, add incomplete user icon 2024-05-29 12:52:35 -07:00
Garth Vander Houwen
3aefd67d06 Check for last postion before sending phone location 2024-05-26 10:37:22 -07: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