Skip to content
This repository has been archived by the owner on Jun 7, 2020. It is now read-only.

[CHORE] Update MobilePlayer Pod for iPhone XR/XS Max support #2641

Merged
merged 1 commit into from
Apr 5, 2019

Conversation

rudrankriyam
Copy link
Contributor

@RocketChat/ios

Closes #2633

  • Added support for iPhone XR and XS Max for portrait and landscape orientation.


let iPhoneX = UIDevice().userInterfaceIdiom == .phone && UIScreen.main.nativeBounds.height == 2436
let landscape = UIScreen.main.bounds.height != 812
let iPhoneX = UIDevice.current.userInterfaceIdiom == .phone && (UIScreen.main.nativeBounds.height == 2688 || UIScreen.main.nativeBounds.height == 2436 || UIScreen.main.nativeBounds.height == 1792)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line Length Violation: Line should be 120 characters or less: currently 204 characters (line_length)

@@ -640,3 +643,4 @@ extension MobilePlayerViewController: SliderDelegate {
}
}
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

File Line Length Violation: File should contain 400 lines or less: currently contains 646 (file_length)
Trailing Newline Violation: Files should have a single trailing newline. (trailing_newline)

@@ -358,6 +358,14 @@ open class MobilePlayerViewController: MPMoviePlayerViewController {
getViewForElementWithIdentifier("action")?.isHidden = isEmpty
}
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trailing Whitespace Violation: Lines should not have trailing whitespace. (trailing_whitespace)

let scanner = Scanner(string: hex)
var hexValue = CUnsignedLongLong(0)
if scanner.scanHexInt64(&hexValue) {
switch (hex.characters.count) {
switch (hex.count) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Control Statement Violation: if, for, guard, switch, while, and catch statements shouldn't unnecessarily wrap their conditionals or arguments in parentheses. (control_statement)

@@ -36,7 +36,7 @@ extension Timer {
extension UIControl {

@discardableResult
func addCallback(callback: @escaping () -> Void, forControlEvents controlEvents: UIControlEvents) -> UnsafeMutableRawPointer {
func addCallback(callback: @escaping () -> Void, forControlEvents controlEvents: UIControl.Event) -> UnsafeMutableRawPointer {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line Length Violation: Line should be 120 characters or less: currently 128 characters (line_length)

@codecov
Copy link

codecov bot commented Apr 4, 2019

Codecov Report

Merging #2641 into develop will decrease coverage by 0.15%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #2641      +/-   ##
===========================================
- Coverage    26.17%   26.02%   -0.16%     
===========================================
  Files          463      463              
  Lines        17224    17224              
===========================================
- Hits          4509     4482      -27     
- Misses       12715    12742      +27
Impacted Files Coverage Δ
...anagers/Model/AuthManager/AuthManagerRecover.swift 36.36% <0%> (-60.61%) ⬇️
Rocket.Chat/Extensions/Models/AuthExtensions.swift 66.66% <0%> (-33.34%) ⬇️
...Chat/Models/Subscription/SubscriptionQueries.swift 70% <0%> (-30%) ⬇️
Rocket.Chat/Managers/PushManager.swift 24.13% <0%> (-10.35%) ⬇️
Rocket.Chat/Managers/AppManager.swift 36.04% <0%> (-4.07%) ⬇️
...Chat/Controllers/Chat/MessagesViewController.swift 34.25% <0%> (+2.75%) ⬆️
...ontrollers/Base/Main/MainSplitViewController.swift 52.5% <0%> (+7.5%) ⬆️
...ocket.Chat/Extensions/Models/ObjectExtension.swift 100% <0%> (+20%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3949c4c...0fb3586. Read the comment docs.

@rafaelks
Copy link
Contributor

rafaelks commented Apr 5, 2019

👍

@rafaelks rafaelks merged commit 4ee61d1 into RocketChat:develop Apr 5, 2019
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants