mirror of
https://github.com/home-assistant/iOS.git
synced 2026-06-18 11:15:36 -05:00
This is somewhat in prep of being able to make the project file generated, but also just organizes things into more concrete directory structures.
This pulls out _all_ of the build settings from the root level, and most from the target level, into xcconfigs.
The new directory structure looks like:
- Sources
- App
- (everything from HomeAssistant/)
- WatchApp
- Shared
- MacBridge
- Extensions
- Intents
- NotificationContent
- NotificationService
- Share
- Today
- Watch
- Widgets
- Tests
- App
- UI
- Shared
Somewhat intentionally, the file structure under these is not yet standardized/organized.
The project targets are now:
- App
- WatchApp
- Shared-iOS
- Shared-watchOS
- MacBridge
- Tests-App
- Tests-UI
- Tests-Shared
- Extension-Intents
- Extension-NotificationContent
- Extension-NotificationService
- Extension-Share
- Extension-Today
- Extension-Widget
- WatchExtension-Watch
This does not yet clean up resources vs. sources, nor does it handle some of the "it's in Sources/App but it's part of Shared" crossover directory issues.
45 lines
1.3 KiB
Swift
45 lines
1.3 KiB
Swift
//
|
|
// MobileAppRegistrationRequest.swift
|
|
// HomeAssistant
|
|
//
|
|
// Created by Robbie Trencheny on 9/7/16.
|
|
// Copyright © 2016 Robbie Trencheny. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import ObjectMapper
|
|
|
|
class MobileAppRegistrationRequest: Mappable {
|
|
var AppData: [String: Any]?
|
|
var AppIdentifier: String?
|
|
var AppName: String?
|
|
var AppVersion: String?
|
|
var DeviceName: String?
|
|
var DeviceID: String?
|
|
var Manufacturer: String?
|
|
var Model: String?
|
|
var OSName: String?
|
|
var OSVersion: String?
|
|
var SupportsEncryption: Bool = true
|
|
// var SupportsMediaPlayer: Bool = true
|
|
|
|
init() {}
|
|
|
|
required init?(map: Map) {}
|
|
|
|
func mapping(map: Map) {
|
|
AppData <- map["app_data"]
|
|
AppIdentifier <- map["app_id"]
|
|
AppName <- map["app_name"]
|
|
AppVersion <- map["app_version"]
|
|
DeviceName <- map["device_name"]
|
|
DeviceID <- map["device_id"]
|
|
Manufacturer <- map["manufacturer"]
|
|
Model <- map["model"]
|
|
OSName <- map["os_name"]
|
|
OSVersion <- map["os_version"]
|
|
SupportsEncryption <- map["supports_encryption"]
|
|
// SupportsMediaPlayer <- map["supports_media_player"]
|
|
}
|
|
}
|