Skip to content

Commit

Permalink
Fix/665 watch app (openhab#666)
Browse files Browse the repository at this point in the history
* remove deprecated files

Signed-off-by: weak <[email protected]>

* fix crash on watchOS

Signed-off-by: weak <[email protected]>
  • Loading branch information
weakfl authored Apr 11, 2022
1 parent 6755d40 commit a134f78
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 156 deletions.
1 change: 0 additions & 1 deletion BuildTools/.swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ excluded:
- ../fastlane
- ../BuildTools
- ../OpenHABCore/.build
- ../openHABIntents/AutoGenerated

nesting:
type_level: 2
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

- Fix watch app (#665)

## [Version 2.4.46, Build 1580410506] - 2022-04-09Z

- Fix intents (#657)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,12 @@ public class ServerCertificateManager: ServerTrustManager, ServerTrustEvaluating
}

func getPersistensePath() -> URL {
#if os(watchOS)
let documentsDirectory = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)[0]
return URL(fileURLWithPath: documentsDirectory).appendingPathComponent("trustedCertificates")
#else
FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: "group.es.spaphone.openhab")!.appendingPathComponent("trustedCertificates")
#endif
}

public func saveTrustedCertificates() {
Expand Down
155 changes: 0 additions & 155 deletions openHABIntents/AutoGenerated/OpenHABOpenHABGetItemStateIntent.swift

This file was deleted.

0 comments on commit a134f78

Please sign in to comment.