Skip to content

Commit

Permalink
Develop merge 2nd attempt (#433)
Browse files Browse the repository at this point in the history
* Fix labelValue() (#414)

* Fix for #409
* Improving test stability by setting UserDefaults for testing to default values

Signed-off-by: Tim Müller-Seydlitz <[email protected]>

* Migrate sidemenu to version compatible with iOS 13 (#415)

* dark mode Support (#408 

adjustment to storyboard and hard-coded colors to support dark mode in iOS 13

Closes #372

* Fix for #409
* As required by iOS13 migrate to SideMenu 6.x: Migration to new syntax for parameters, renamed DrawerTableType enum cases, setting the defaultSitemap to sitemap selected in side menu. - Dirty but working for the moment 
Signed-off-by: Michel Mohrmann <[email protected]>

* Improving test stability by setting UserDefaults for testing to default values

* migrate swiftlint to cocoapods and add swiftformat

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

* add rule 'private_outlet' to swiftlint config

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

* swiftformat and fix swiftlint warnings

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

* add haptic feedback, refs #410

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

* Applied swiftlint rule private_action

Signed-off-by: Tim Müller-Seydlitz <[email protected]>

* dark mode Support (#372) (#408)

* dark mode Support (#372)

adjustment to storyboard and hard-coded colors to support dark mode in iOS 13

Closes #372

Signed-off-by: Michel Mohrmann <[email protected]>

* dark mode Support (#372)

SideMenu 6

Closes #372

Signed-off-by: Michel Mohrmann <[email protected]>

* Migrate sidemenu (#418)

* Fix for #409

Signed-off-by: Tim Müller-Seydlitz <[email protected]>

* Improving test stability by setting UserDefaults for testing to default values

Signed-off-by: Tim Müller-Seydlitz <[email protected]>

* Migration to SideMenu 6.x: Migration to new syntax
Renamed DrawerTableType enum cases

Signed-off-by: Tim Müller-Seydlitz <[email protected]>

* Setting the defaultSitemap to sitemap selected in side menu. - Dirty but working for the moment

Signed-off-by: Tim Müller-Seydlitz <[email protected]>

* Setting up parameters for SideMenu

Signed-off-by: Tim Müller-Seydlitz <[email protected]>

* dark mode Support (#372)

adjustment to storyboard and hard-coded colors to support dark mode in iOS 13

Closes #372

Signed-off-by: Michel Mohrmann <[email protected]>
Signed-off-by: Tim Müller-Seydlitz <[email protected]>

* Version Bump to 65

* Fixes #416

Signed-off-by: Tim Müller-Seydlitz <[email protected]>

* Version Bump to 66

* Migrated gear/bell symbols to SF Symbol on iOS 13

Signed-off-by: Tim Müller-Seydlitz <[email protected]>

* Changing type to UIImageView

Signed-off-by: Tim Müller-Seydlitz <[email protected]>

* Version Bump to 66

* Bumped to version 2.1.34

Signed-off-by: Tim Müller-Seydlitz <[email protected]>

* Version adjust

Signed-off-by: Tim Müller-Seydlitz <[email protected]>

* Version

Signed-off-by: Tim Müller-Seydlitz <[email protected]>

* Update version number

Signed-off-by: Tim Müller-Seydlitz <[email protected]>

* Version Bump to 67

* openHAB Logo for dark mode

* launch screen for dark mode
* alternative openHAB icon for dark mode

Closes #420

Signed-off-by: Michel Mohrmann <[email protected]>

* openHAB Logo for dark mode

* launch screen for dark mode
* alternative openHAB icon for dark mode
* gear/bell stroke color = labelcolor

Closes #420

Signed-off-by: Michel Mohrmann <[email protected]>

* openHAB Logo for dark mode

* alternative openHAB icon for dark mode in OpenHABNotificationsViewController

Closes #420

Signed-off-by: Michel Mohrmann <[email protected]>

* Throttling the flow of events from colorpicker to max once every 0.3 s (#423)

Signed-off-by: Tim Müller-Seydlitz <[email protected]>

* Version Bump to 68

* Version Bump to 69

* Version Bump to 70

* Version Bump to 71

* clear widgets to ensure cell invalidation on sitemap change, fixes #421

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

* configure 'private_outlet' swiftlint rule to allow 'private(set)'

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

* fix outlet accessibility

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

* add swiftformat opt-in rule 'isEmpty' and apply changes

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

* remove superfluous disable command

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

* openHAB Logo for dark mode

* launch screen for dark mode (orange / lighter grey logo)
* alternative openHAB icon for dark mode

Closes #420

Signed-off-by: Michel Mohrmann <[email protected]>

* Version update

Signed-off-by: Tim Müller-Seydlitz <[email protected]>

* Version Bump to 72

* improving fastlane

Signed-off-by: Tim Müller-Seydlitz <[email protected]>

* Version Bump to 73

* Replaces DynamicButton with SFSymbol for iOS13 (#427)

Signed-off-by: Tim Müller-Seydlitz <[email protected]>

* Migration from cocoapods to spm: first step (#428)

Signed-off-by: Tim Müller-Seydlitz <[email protected]>

* Change on packages

Signed-off-by: Tim Müller-Seydlitz <[email protected]>

* ignore SPM subdirectory in git

Signed-off-by: Tim Müller-Seydlitz <[email protected]>

* Version Bump to 74

* Bump

Signed-off-by: Tim Müller-Seydlitz <[email protected]>

* Bump

Signed-off-by: Tim Müller-Seydlitz <[email protected]>

* Version Bump to 75

* Bump

Signed-off-by: Tim Müller-Seydlitz <[email protected]>

* Version Bump to 75

* Version Bump to 76

* Version Bump to 77

* Version Bump to 78

* Version Bump to 79

* Migrating SideMenu to SPM

Signed-off-by: Tim Müller-Seydlitz <[email protected]>

* modified .gitignore

Signed-off-by: Tim Müller-Seydlitz <[email protected]>

* Migrated DynamicButtons to SPM
Added Changes.md for preparation of new release

Signed-off-by: Tim Müller-Seydlitz <[email protected]>

* Preparing merge

Signed-off-by: Tim Müller-Seydlitz <[email protected]>
  • Loading branch information
timbms authored Sep 29, 2019
1 parent b3c9798 commit 89d73f5
Show file tree
Hide file tree
Showing 8 changed files with 125 additions and 6 deletions.
53 changes: 53 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# What has changed

* The app is now ready for iOS 13:
* It supports the beautiful Dark Mode

* Improvements relevant to users
* Haptic feedback when buttons. This is available as of iPhone 7
* Throttling the flow of events from colorpicker to max once every 0.3 s
* Better screen space usage with fixed layout constraints and doubled slider width depending on size class
* Rollershutter button order changed
* Handling of many variants on server side for instance http/https connections to servers still on 1.x
* Video element: Added mjpeg support
* Label for state value for rollershutter
* Changed the Basic Auth challenge handler to check against the tracked URL rather than the remote/local URL from the settings. This should ensure Basic Auth works in cases where the URL is discovered via Bonjour.
* Fix for parsing of string to number without the locale setup
* Fix for app always showing SSL certificate warning
* Handling the case where only one default sitemap is returned in a sitemappage
* Improved video URL handling on cell reuse

* Behind the scenes
* URLSession wrapped in Alamofire for network access, AFNetworking completely removed
* Improved handling of SSL certificate warning
* Display of icons when connected via https
* Setting authorization header also for icons
* Caching of icons with Kingfisher - SDWebImage purged from code base
* Converted direct URLSession usage in OpenHABTracker to use NetworkConnection.shared.manager instead to ensure that auth handling is handled properly - in particular when a 401 is returned from the server.
* Refactored HTTP Basic Auth to use the taskDidReceiveChallenge delegate so it only includes the Authorization header if requested by the server.
* Completed migration from AFNetworking to Alamofire: purged AlamofireRememberingSecurityPolicy.swift: init(policies: [String: ServerTrustPolicy]) to override ancestor, uncommented evaluateClientTrust and handleAuthenticationChallenge Reworked NetworkManager to it compile successfully with AlamofireRememberingSecurityPolicy Removed main.m, openHAB-Prefix.pch files, openHAB-Bridging-Header.h, openHABTests-Bridging-Header.h
* Fixed retain cycle in setWillSendRequestForAuthenticationChallenge closure
* SFSymbols as source of icons for iOS 13 to eventually replace DynamicButton
* Build improvements
* Swift Package Manager to replace CocoaPod where possible
* Improved fastlane
* Improved test coverage for instance for large JSON files, XML trimming whitespace, improved logic
* Many bug fixes: correct recognition of labelValue
* Refactoring:
* Completed onReceiveSessionTaskChallenge and onReceiveSessionChallenge for image download
* Recursive traversal of widgets data structure
* Refinement of swiftlint, usage of swiftformat
* Update to recent versions of SideMenu: clearing widgets to ensure cell invalidation on sitemap change
* Access to UserDefaults via Preferences to avoid typing errors and improve consistency
* Migrated from responseJSON to responseData
* Reworked XML parsing: now completely based on Fuzi framework
* Setting the FrameUITableViewCell font and color to match Apple's Guidelines
* Retain cycle in loadPage fixed
* Cache invalidation on sitemap change fixed

## Trademark Disclaimer

Product names, logos, brands and other trademarks referred to within the openHAB website are the
property of their respective trademark holders. These trademark holders are not affiliated with
openHAB or our website. They do not sponsor or endorse our materials.

1 change: 0 additions & 1 deletion Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ target 'openHAB' do
pod 'Crashlytics', '~> 3.9.3'
pod 'SwiftMessages'
pod 'FlexColorPicker'
pod 'DynamicButton', '~> 6.2'
pod 'Fuzi', '~> 3.1'
end

Expand Down
6 changes: 1 addition & 5 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ PODS:
- CocoaLumberjack/Core (3.5.3)
- Crashlytics (3.9.3):
- Fabric (~> 1.7.2)
- DynamicButton (6.2.0)
- Fabric (1.7.13)
- Firebase/Core (6.9.0):
- Firebase/CoreOnly
Expand Down Expand Up @@ -80,7 +79,6 @@ PODS:

DEPENDENCIES:
- Crashlytics (~> 3.9.3)
- DynamicButton (~> 6.2)
- Fabric (~> 1.7.2)
- Firebase/Core
- FlexColorPicker
Expand All @@ -94,7 +92,6 @@ SPEC REPOS:
trunk:
- CocoaLumberjack
- Crashlytics
- DynamicButton
- Fabric
- Firebase
- FirebaseAnalytics
Expand All @@ -117,7 +114,6 @@ SPEC REPOS:
SPEC CHECKSUMS:
CocoaLumberjack: 2f44e60eb91c176d471fdba43b9e3eae6a721947
Crashlytics: dbb07d01876c171c5ccbdf7826410380189e452c
DynamicButton: 99858ce823ceed7263a4eed43bd3870e72723cb2
Fabric: 25d0963b691fc97be566392243ff0ecef5a68338
Firebase: 2d750c54cda57d5a6ae31212cfe5cc813c6be7e4
FirebaseAnalytics: 5d9ccbf46ed25d3ec9304d263f85bddf1e93e2d2
Expand All @@ -137,6 +133,6 @@ SPEC CHECKSUMS:
SwiftLint: 5553187048b900c91aa03552807681bb6b027846
SwiftMessages: b577dc7043be8b299857ab35bb663dbff6483bd0

PODFILE CHECKSUM: 6bb5377410427f4a716ad1f5f60aa01acb9115f1
PODFILE CHECKSUM: 5e31c858063487afb7c7888d7cc69a00d397d559

COCOAPODS: 1.8.1
25 changes: 25 additions & 0 deletions openHAB.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@
DA2DC23921F275B100830730 /* OpenHABNotification.swift in Sources */ = {isa = PBXBuildFile; fileRef = DF1B302C1CF5C667009C921C /* OpenHABNotification.swift */; };
DA4A1A64223D57AE005F530F /* ColorUtil.swift in Sources */ = {isa = PBXBuildFile; fileRef = DA4A1A63223D57AD005F530F /* ColorUtil.swift */; };
DA4A1A65223D57AE005F530F /* ColorUtil.swift in Sources */ = {isa = PBXBuildFile; fileRef = DA4A1A63223D57AD005F530F /* ColorUtil.swift */; };
DA4D4DB5233F9ACB00B37E37 /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = DA4D4DB4233F9ACB00B37E37 /* README.md */; };
DA4D4E0D23409A4600B37E37 /* DynamicButton in Frameworks */ = {isa = PBXBuildFile; productRef = DA4D4E0C23409A4600B37E37 /* DynamicButton */; };
DA5D0F81223E9991007ADDBD /* Endpoint.swift in Sources */ = {isa = PBXBuildFile; fileRef = DA5D0F80223E9991007ADDBD /* Endpoint.swift */; };
DA5D0F82223E9991007ADDBD /* Endpoint.swift in Sources */ = {isa = PBXBuildFile; fileRef = DA5D0F80223E9991007ADDBD /* Endpoint.swift */; };
DA7E1E492230227E002AEFD8 /* OpenHABTracker.swift in Sources */ = {isa = PBXBuildFile; fileRef = DFDEE4161883C6A5008B26AC /* OpenHABTracker.swift */; };
Expand Down Expand Up @@ -299,6 +301,8 @@
DA2DC23121F2736C00830730 /* OpenHABJSONParserTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OpenHABJSONParserTests.swift; sourceTree = "<group>"; };
DA2DC23321F2736C00830730 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
DA4A1A63223D57AD005F530F /* ColorUtil.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ColorUtil.swift; sourceTree = "<group>"; };
DA4D4DB4233F9ACB00B37E37 /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
DA4D4E0E2340A00200B37E37 /* Changes.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = Changes.md; sourceTree = "<group>"; };
DA5D0F80223E9991007ADDBD /* Endpoint.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Endpoint.swift; sourceTree = "<group>"; };
DA7E1E47222EB00B002AEFD8 /* PlayerView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PlayerView.swift; sourceTree = "<group>"; };
DA88F8C522EC377100B408E5 /* ReleaseNotes.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = ReleaseNotes.md; sourceTree = "<group>"; };
Expand Down Expand Up @@ -407,6 +411,7 @@
DA2D457C233BF844003DDDEF /* Alamofire in Frameworks */,
DA2D4579233BF812003DDDEF /* Kingfisher in Frameworks */,
DA2D4646233D5EF9003DDDEF /* SideMenu in Frameworks */,
DA4D4E0D23409A4600B37E37 /* DynamicButton in Frameworks */,
FBA52365FFB7B2D216F485D5 /* Pods_openHAB.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -668,6 +673,8 @@
DFB2621E18830A3600D3244D = {
isa = PBXGroup;
children = (
DA4D4DB4233F9ACB00B37E37 /* README.md */,
DA4D4E0E2340A00200B37E37 /* Changes.md */,
DFB2623018830A3600D3244D /* openHAB */,
DA2DC23021F2736C00830730 /* openHABTestsSwift */,
1224F793228A8AE400750965 /* openHABWatch */,
Expand Down Expand Up @@ -886,6 +893,7 @@
DA2D4578233BF812003DDDEF /* Kingfisher */,
DA2D457B233BF844003DDDEF /* Alamofire */,
DA2D4645233D5EF9003DDDEF /* SideMenu */,
DA4D4E0C23409A4600B37E37 /* DynamicButton */,
);
productName = openHAB;
productReference = DFB2622718830A3600D3244D /* openHAB.app */;
Expand Down Expand Up @@ -953,6 +961,7 @@
DA2D4577233BF812003DDDEF /* XCRemoteSwiftPackageReference "Kingfisher" */,
DA2D457A233BF844003DDDEF /* XCRemoteSwiftPackageReference "Alamofire" */,
DA2D4644233D5EF9003DDDEF /* XCRemoteSwiftPackageReference "SideMenu" */,
DA4D4E0B23409A4600B37E37 /* XCRemoteSwiftPackageReference "DynamicButton" */,
);
productRefGroup = DFB2622818830A3600D3244D /* Products */;
projectDirPath = "";
Expand Down Expand Up @@ -1006,6 +1015,7 @@
files = (
DF4B84071885AE0E00F34902 /* blankicon.png in Resources */,
DFB2624618830A3600D3244D /* Images.xcassets in Resources */,
DA4D4DB5233F9ACB00B37E37 /* README.md in Resources */,
DFB2623518830A3600D3244D /* InfoPlist.strings in Resources */,
DA88F8C622EC377200B408E5 /* ReleaseNotes.md in Resources */,
DFDF45311932042B00A6E581 /* legal.rtf in Resources */,
Expand Down Expand Up @@ -1912,6 +1922,15 @@
minimumVersion = 6.4.2;
};
};
DA4D4E0B23409A4600B37E37 /* XCRemoteSwiftPackageReference "DynamicButton" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/yannickl/DynamicButton";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 6.2.1;
};
};

/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
Expand All @@ -1935,6 +1954,12 @@
package = DA2D4644233D5EF9003DDDEF /* XCRemoteSwiftPackageReference "SideMenu" */;
productName = SideMenu;
};
DA4D4E0C23409A4600B37E37 /* DynamicButton */ = {
isa = XCSwiftPackageProductDependency;
package = DA4D4E0B23409A4600B37E37 /* XCRemoteSwiftPackageReference "DynamicButton" */;
productName = DynamicButton;
};

/* End XCSwiftPackageProductDependency section */
};
rootObject = DFB2621F18830A3600D3244D /* Project object */;
Expand Down
43 changes: 43 additions & 0 deletions openHAB.xcworkspace/xcshareddata/swiftpm/Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"object": {
"pins": [
{
"package": "Alamofire",
"repositoryURL": "https://github.com/Alamofire/Alamofire",
"state": {
"branch": null,
"revision": "ce5be6fbc6f51414c49f56fc8e2b7c99253d9f8e",
"version": "4.9.0"
}
},
{
"package": "DynamicButton",
"repositoryURL": "https://github.com/yannickl/DynamicButton",
"state": {
"branch": null,
"revision": "4fbd60e46a548e77fd118483bbb4e58d3c11c5ed",
"version": "6.2.1"
}
},
{
"package": "Kingfisher",
"repositoryURL": "https://github.com/onevcat/Kingfisher",
"state": {
"branch": null,
"revision": "ea84ff22e8c6da676354b162476aad0efd013d7d",
"version": "5.8.1"
}
},
{
"package": "SideMenu",
"repositoryURL": "https://github.com/jonkykong/SideMenu",
"state": {
"branch": null,
"revision": "8dde1951c37b5ea0f696dae7d895f7d6fa53d3e1",
"version": "6.4.2"
}
}
]
},
"version": 1
}
1 change: 1 addition & 0 deletions openHAB/ColorPickerUITableViewCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

import DynamicButton
import os.log
import UIKit

protocol ColorPickerUITableViewCellDelegate: NSObjectProtocol {
func didPressColorButton(_ cell: ColorPickerUITableViewCell?)
Expand Down
1 change: 1 addition & 0 deletions openHAB/RollershutterUITableViewCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

import DynamicButton
import os.log
import UIKit

class RollershutterUITableViewCell: GenericUITableViewCell {
private let feedbackGenerator = UIImpactFeedbackGenerator(style: .light)
Expand Down
1 change: 1 addition & 0 deletions openHAB/SetpointUITableViewCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
//
import DynamicButton
import os.log
import UIKit

class SetpointUITableViewCell: GenericUITableViewCell {
private var isIntStep: Bool {
Expand Down

0 comments on commit 89d73f5

Please sign in to comment.