Coder Social home page Coder Social logo

mplummeridge / ios Goto Github PK

View Code? Open in Web Editor NEW

This project forked from home-assistant/ios

0.0 0.0 0.0 83.75 MB

:iphone: Home Assistant Companion for iOS

Home Page: https://companion.home-assistant.io

License: Other

Objective-C 0.09% Swift 94.69% Ruby 4.97% JavaScript 0.08% Shell 0.17%

ios's Introduction

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

Translations

  • Lokalise: Translations are handled through Lokalise and not through this repository. To contribute to the translations please join the Lokalise team.

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.

ios's People

Contributors

amelchio avatar balloob avatar bjornorri avatar blackgold9 avatar dajo avatar efirestone avatar fabaff avatar fearoffish avatar frenck avatar htdahms avatar jjlawren avatar mboeru avatar mnoorenberghe avatar olbjan avatar quthla avatar robbiet480 avatar theomega avatar tombrien avatar torarnv avatar twilb avatar ukgrant avatar xusbadia avatar zacwest avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.