Your home as a live 3D model in the Mac menu bar and on iPhone — lights and ACs via Smart Life, Home Assistant, Philips Hue and Apple Home.
# The Xcode project is generated from this file: `xcodegen generate` (scripts/build-ios.sh does it).
# This is the App Store edition: Home Assistant, Philips Hue and Apple Home. The edition with
# Smart Life on top (TestFlight, own use) is project-smartlife.yml, which includes this file.
name: HouseControl
options:
bundleIdPrefix: io.github.0xprobabillity
deploymentTarget:
iOS: "17.0"
createIntermediateGroups: true
generateEmptyDirectories: true
configFiles:
Debug: Config/Base.xcconfig
Release: Config/Base.xcconfig
packages:
HouseCore:
path: ../core
targets:
HouseControl:
type: application
platform: iOS
sources:
- path: Sources
- path: Resources
# The intent the "House Control" control runs to open the app: both sides have to know it.
- path: ../widgets/Sources/OpenApp.swift
# The web UI, built by `npm run build` in ../web; lands in the app as the folder "dist".
- path: ../web/dist
type: folder
buildPhase: resources
dependencies:
- package: HouseCore
- target: HouseWidgets
embed: true
entitlements:
path: Config/HouseControl.entitlements
properties:
com.apple.developer.homekit: true
# Shared with the widgets: the home they draw, and the connections they use.
com.apple.security.application-groups: [$(HOUSE_APP_GROUP)]
keychain-access-groups: [$(AppIdentifierPrefix)io.github.0xprobabillity.HouseControl]
info:
path: Config/Info.plist
properties:
CFBundleDisplayName: House Control
HouseAppGroup: $(HOUSE_APP_GROUP)
CFBundleShortVersionString: $(MARKETING_VERSION)
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
LSApplicationCategoryType: public.app-category.lifestyle
UILaunchScreen:
UIColorName: LaunchBackground
# Portrait on an iPhone. iPhone Duo's inner screen takes any shape regardless, and only
# an app that can be resized gets all of it (and a place beside another app) rather
# than a phone-sized column in the middle.
UISupportedInterfaceOrientations: [UIInterfaceOrientationPortrait]
UIUserInterfaceStyle: Dark
ITSAppUsesNonExemptEncryption: false
NSLocalNetworkUsageDescription: House Control finds your Home Assistant and Hue Bridge on this Wi-Fi network, and your Mac or PC, to keep your floor plan the same on both.
NSBonjourServices: [_housecontrol._tcp, _hue._tcp, _home-assistant._tcp]
NSHomeKitUsageDescription: House Control shows the lamps, air conditioners and thermometers of your homes in its 3D view and switches them for you.
# Home Assistant answers plain HTTP on the local network, the Hue Bridge HTTPS with its own certificate.
NSAppTransportSecurity:
NSAllowsLocalNetworking: true
NSCameraUsageDescription: The camera reads the pairing code shown by House Control on your Mac or PC.
CFBundleURLTypes:
- CFBundleURLName: io.github.0xprobabillity.HouseControl.pair
CFBundleURLSchemes: [housecontrol]
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: io.github.0xprobabillity.HouseControl3D
# Shared with the widgets: the home they draw, and the actions they queue.
HOUSE_APP_GROUP: group.io.github.0xprobabillity.HouseControl3D
PRODUCT_NAME: HouseControl
TARGETED_DEVICE_FAMILY: "1"
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME: AccentColor
SWIFT_VERSION: "5.0"
ENABLE_USER_SCRIPT_SANDBOXING: YES
GENERATE_INFOPLIST_FILE: NO
# Home Screen, Lock Screen and StandBy widgets plus Control Center controls (../widgets).
HouseWidgets:
type: app-extension
platform: iOS
sources:
- path: ../widgets/Sources
- path: ../widgets/Resources
buildPhase: resources
dependencies:
- package: HouseCore
- sdk: WidgetKit.framework
- sdk: SwiftUI.framework
entitlements:
path: ../widgets/Config/iOS.entitlements
properties:
com.apple.security.application-groups: [$(HOUSE_APP_GROUP)]
keychain-access-groups: [$(AppIdentifierPrefix)io.github.0xprobabillity.HouseControl]
info:
path: ../widgets/Config/Info-iOS.plist
properties:
CFBundleDisplayName: House Control
CFBundleShortVersionString: $(MARKETING_VERSION)
CFBundleVersion: $(CURRENT_PROJECT_VERSION)
HouseAppGroup: $(HOUSE_APP_GROUP)
NSExtension:
NSExtensionPointIdentifier: com.apple.widgetkit-extension
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: io.github.0xprobabillity.HouseControl3D.Widgets
HOUSE_APP_GROUP: group.io.github.0xprobabillity.HouseControl3D
PRODUCT_NAME: HouseWidgets
TARGETED_DEVICE_FAMILY: "1"
SWIFT_VERSION: "5.0"
GENERATE_INFOPLIST_FILE: NO
SKIP_INSTALL: YES
schemes:
HouseControl:
build:
targets:
HouseControl: all
run:
config: Debug
archive:
config: Release