mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
* 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.
16 lines
426 B
Bash
Executable file
16 lines
426 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# simple sanity checking for repo
|
|
if [ ! -d "./../protobufs" ]; then
|
|
git submodule update --init
|
|
fi
|
|
|
|
# simple sanity checking for executable
|
|
if [ ! -x "$(which protoc)" ]; then
|
|
brew install swift-protobuf
|
|
fi
|
|
|
|
protoc --proto_path=./protobufs --swift_out=./Meshtastic/Protobufs ./protobufs/meshtastic/*.proto
|
|
|
|
echo "Done generating the swift files from the proto files."
|
|
echo "Build, test, and commit changes."
|