Bumps the dependencies group with 1 update: [ruby/setup-ruby](https://github.com/ruby/setup-ruby). Updates `ruby/setup-ruby` from 1.287.0 to 1.288.0 <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/ruby/setup-ruby/releases">ruby/setup-ruby's releases</a>.</em></p> <blockquote> <h2>v1.288.0</h2> <h2>What's Changed</h2> <ul> <li>Move check-new-windows-versions.yml workflow from ruby/ruby-builder to ruby/setup-ruby by <a href="https://github.com/eregon"><code>@eregon</code></a> in <a href="https://redirect.github.com/ruby/setup-ruby/pull/870">ruby/setup-ruby#870</a></li> <li>Add jruby-10.0.3.0 by <a href="https://github.com/ruby-builder-bot"><code>@ruby-builder-bot</code></a> in <a href="https://redirect.github.com/ruby/setup-ruby/pull/875">ruby/setup-ruby#875</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/ruby/setup-ruby/compare/v1.287.0...v1.288.0">https://github.com/ruby/setup-ruby/compare/v1.287.0...v1.288.0</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="09a7688d3b"><code>09a7688</code></a> Add jruby-10.0.3.0</li> <li><a href="67178a2693"><code>67178a2</code></a> Improve the automated PR description</li> <li><a href="ede5b7227f"><code>ede5b72</code></a> Shorten workflow name</li> <li><a href="aaddd6855e"><code>aaddd68</code></a> new-versions.rb is no longer used for RubyInstaller releases</li> <li><a href="c7aa9f4008"><code>c7aa9f4</code></a> Move check-new-windows-versions.yml workflow from ruby/ruby-builder to ruby/s...</li> <li>See full diff in <a href="8d27f39a5e...09a7688d3b">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore <dependency name> major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself) - `@dependabot ignore <dependency name> minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself) - `@dependabot ignore <dependency name>` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself) - `@dependabot unignore <dependency name>` will remove all of the ignore conditions of the specified dependency - `@dependabot unignore <dependency name> <ignore condition>` will remove the ignore condition of the specified dependency and ignore conditions </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Home Assistant for Apple Platforms
Getting Started
Home Assistant uses Bundler, Homebrew and Cocoapods to manage build dependencies. You'll need Xcode 26.2 (or later) which you can download from the App Store. You can get the app running using the following commands:
git clone https://github.com/home-assistant/iOS.git
cd iOS
# you must do one of the following, but you do not need to do all of them:
## install cocoapods via homebrew, use that
brew install cocoapods
$(brew --prefix)/opt/ruby/bin/gem install cocoapods-acknowledgements
pod install --repo-update
## install ruby via homebrew, use that
brew install ruby@3.1
$(brew --prefix)/opt/ruby@3.1/bin/bundle install
$(brew --prefix)/opt/ruby@3.1/bin/bundle exec pod install --repo-update
## install ruby via rbenv, use that
brew install rbenv ruby-build
rbenv install
bundle install
bundle exec pod install --repo-update
## install ruby via mise, use that
brew install mise
mise install
bundle install
bundle exec pod install --repo-update
Once this completes, you can launch HomeAssistant.xcworkspace and run the App-Debug scheme onto your simulator or iOS device.
Testing just the frontend
To just test the frontend, you can use a simulator version built by our GitHub actions.
- Install Xcode from the App Store making sure it's at least the version noted above. You do not need to install or run anything else.
- Launch the simulator at
/Applications/Xcode.app/Contents/Developer/Applications/Simulator.appor in Xcode under the Xcode menu > Open Developer Tool. - Open a simulator under File > Open Simulator. You can install older versions of iOS in Xcode's Components preferences.
- Download a simulator build from the the GitHub action under "Artifacts."
- Drag the result
.appon drop it on top of the simulator. - Locate the app on the home screen and click it to launch.
The simulator behaves different than you might expect:
| Action | Effect |
|---|---|
| Click | Tap |
| Click & drag | Scroll |
| Hold ⌥ | Add a second touch point |
| Hold ⇧⌥ | Move both touch points |
| ⌘←, ⌘→ | Rotate |
| ⌘S | Take screenshot |
| ⌘R | Record video |
| ⌘K | Toggle software keyboard |
You can now debug the WebView in this simulator build using Safari's Web Inspector:
- Make sure "Show Develop menu in menu bar" is enabled in Safari's Advanced preferences.
- Under the Develop menu, expand the "Simulator" menu for the simulator you've opened.
- Choose the WebView you want to inspect. A new window will open.
Code Signing
Although the app is set up to use Automatic provisioning for Debug builds, you'll need to customize a few of the options. This is because the app makes heavy use of entitlements that require code signing, even for simulator builds.
Edit the file Configuration/HomeAssistant.overrides.xcconfig (which will not exist by default and is ignored by git) and add the following:
DEVELOPMENT_TEAM = YourTeamID
BUNDLE_ID_PREFIX = some.bundle.prefix
Xcode should generate provisioning profiles in your Team ID and our configuration will disable features your team doesn't have like Critical Alerts. You can find your Team ID on Apple's developer portal; it looks something like ABCDEFG123.
Code style
Linters run as part of Pull Request checks. Additionally, some linting requirements can be autocorrected.
# checks for linting problems, doesn't fix
bundle exec fastlane lint
# checks for linting problems and fixes them
bundle exec fastlane autocorrect
In the Xcode project, the autocorrectable linters will not modify your source code but will provide warnings. This project uses several linters:
- SwiftFormat
- SwiftLint (for things SwiftFormat doesn't automate)
- Rubocop (largely for Fastlane)
- YamlLint (largely for GitHub Actions)
Continuous Integration
We use Github Actions alongside Fastlane to perform continuous integration both by unit testing and deploying to App Store Connect. Mac Developer ID builds are available as an artifact on every build of master.
Environment variables
Fastlane scripts read from the environment or .env file for configuration like team IDs. See .env.sample for available values.
Deployment
Although all the deployment is done through Github Actions, you can do it manually through Fastlane:
Deployment to App Store Connect
# creates the builds and uploads to the app store
# each save their artifacts to build/
bundle exec fastlane mac build
bundle exec fastlane ios build
Contributing
See CONTRIBUTING.md
LICENSE
Apache-2.0
Credits
The format and some content of this README.md comes from the SwipeIt project.
