Skip to content
📱 Home Assistant Companion for iOS
Swift Ruby Other
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Enable move bot Apr 29, 2018
.idea/codeStyles Working decently enough Aug 23, 2018
APNSAttachmentService Bump version Nov 25, 2019
Configuration Move code sign identity to configuration file Jun 8, 2019
HomeAssistant.xcodeproj Migrate to parameterized Siri Shortcuts Nov 25, 2019
HomeAssistant.xcworkspace Checkpoint on Watch stuff. Remove Fabric/Crashlytics because it wont … Sep 28, 2018
HomeAssistant Migrate to parameterized Siri Shortcuts Nov 25, 2019
HomeAssistantTests Bump version Nov 25, 2019
HomeAssistantUITests Bump version Nov 25, 2019
Intents Migrate to parameterized Siri Shortcuts Nov 25, 2019
NotificationContentExtension Bump version Nov 25, 2019
Shared-watchOS Bump version Nov 25, 2019
Shared Update deps and fix warnings Nov 25, 2019
SharedTests Bump version Nov 25, 2019
TodayWidget Bump version Nov 25, 2019
Tools Complete transition to Iconic, goodbye FontAwesomeKit! Sep 27, 2018
WatchApp Bump version Nov 25, 2019
WatchAppExtension Update deps and fix warnings Nov 25, 2019
fastlane Update fastlane Nov 25, 2019
icons Configuration specific LaunchScreen Apr 24, 2019
push_certs Add lane for generating push certs Apr 15, 2017
.gitattributes Add .gitattributes file to fix pbxproj issues Jan 3, 2017
.gitignore Add file for local configuration overrides May 28, 2019
.swiftlint.yml Convert to XCGLogger instead of CleanroomLogger Feb 22, 2019
.travis.yml Bump Xcode version Travis uses Nov 25, 2019
CLA.md Update LICENSE.md and CLA.md to reflect the new Apache 2.0 license Jan 28, 2017
CODE_OF_CONDUCT.md Add organization docs Jan 23, 2017
CONTRIBUTING.md Fix broken link in CONTRIBUTING.md. Oct 4, 2018
Gemfile Migrate to Swift 5 Apr 1, 2019
Gemfile.lock Update fastlane Nov 25, 2019
LICENSE.md Update LICENSE.md and CLA.md to reflect the new Apache 2.0 license Jan 28, 2017
Podfile
Podfile.lock Update deps and fix warnings Nov 25, 2019
README.md Add pod repo update step to install instructions (#203) Jan 26, 2019
swiftgen.yml Minor Swiftgen improvements May 10, 2019

README.md

Home Assistant for iOS

TestFlight Beta invite Download on the App Store Swift 3.0 Platform iOS Build Status codebeat badge GitHub issues License MIT Twitter

Getting Started

Run the following two commands to install Xcode's command line tools and bundler, if you don't have that yet.

[sudo] gem install bundler
xcode-select --install

The following commands will clone the repo and install all the required dependencies.

git clone https://github.com/home-assistant/home-assistant-iOS.git
cd home-assistant-iOS
bundle install
pod install --repo-update
bundle exec pod install

Now you can open HomeAssistant.xcworkspace and run the HomeAssistant target onto your simulator or iOS device.

Code style

This project will follow the GitHub Swift Styleguide in every way possible.

In order to enforce this, the project will also have a Swiftlint build phase to run the linter everytime the app is built.

Project Structure

To keep the Xcode layout mirrored with on-disk layout we're using Synx.

Dependencies

Model

Networking

UI

  • CPDAcknowledgements: Show your CocoaPods dependencies in-app.
  • Eureka: Elegant iOS form builder in Swift
  • FontAwesomeKit: Icon font library for iOS.
  • MBProgressHUD: MBProgressHUD + Customizations
  • Whisper: Whisper is a component that will make the task of display messages and in-app notifications simple. It has three different views inside

Utilities

  • DeviceKit: DeviceKit is a value-type replacement of UIDevice.
  • KeychainAccess: Simple Swift wrapper for Keychain that works on iOS and OS X
  • PromiseKit: Promises for Swift & ObjC
  • SwiftLocation: Easy Location Manager and Beacon Monitoring in Swift sauce

Environment

  • SwiftLint: A tool to enforce Swift style and conventions.
  • SwiftGen: A collection of Swift tools to generate Swift code (enums for your assets, storyboards, Localizable.strings, …)
  • Fabric: Fabric is a mobile platform with modular kits you can mix and match to build the best apps
  • Crashlytics: The most powerful, yet lightest weight crash reporting solution
  • Synx: A command-line tool that reorganizes your Xcode project folder to match your Xcode groups
  • Fastlane: The easiest way to automate building and releasing your iOS and Android apps

Continuous Integration

We are using Travis alongside Fastlane to perform continuous integration both by unit testing and deploying to Fabric or iTunes Connect later on.

Environment variables

To make sure Fabric and iTunes can deploy, make sure you have them set to something similar to the following environment variables. The values are only examples!.

Note: For ENV variables to work in Xcode you to set $ defaults write com.apple.dt.Xcode UseSanitizedBuildSystemEnvironment -bool NO and launch Xcode from the terminal. Apple Developer Forums

Signing

  • HOMEASSISTANT_CERTIFICATE_KEY: The Certificate key used in Match
  • HOMEASSISTANT_CERTIFICATE_USER: The username for the git being where Match is saving the Certificates.
  • HOMEASSISTANT_CERTIFICATE_TOKEN: The access token for the git being where Match is saving the Certificates.
  • HOMEASSISTANT_CERTIFICATE_GIT: The address or the git being where Match is saving the Certificates. (e.g. https://gitlab.com/username/Certificates)

Fabric deployment

iTunes deployment

Deployment

Although all the deployment is done through Travis, you can do it manually through Fastlane:

Deployment to Fabric

bundle exec fastlane fabric

Deployment to iTunes Connect

bundle exec fastlane itc

Contributing

See CONTRIBUTING.md

LICENSE

Apache-2.0

Credits

The format and some content of this README.md comes from the SwipeIt project.

You can’t perform that action at this time.