Skip to content

Commit

Permalink
Merge pull request #113 from NordicSemiconductor/release/5.0.3
Browse files Browse the repository at this point in the history
Release/5.0.3
  • Loading branch information
NickKibish authored Jul 28, 2021
2 parents c19f797 + d4a9955 commit ac2d70d
Show file tree
Hide file tree
Showing 19 changed files with 133 additions and 114 deletions.
206 changes: 111 additions & 95 deletions nRF Toolbox.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@


import UIKit
import iOSDFULibrary
import NordicDFU


struct LogMessage {
Expand Down
2 changes: 1 addition & 1 deletion nRF Toolbox/Profiles/DeviceFirmwareUpdate/DFURouter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@


import UIKit
import iOSDFULibrary
import NordicDFU
import CoreBluetooth

enum PresentationType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@


import UIKit
import iOSDFULibrary
import NordicDFU

class DocumentPicker<T>: NSObject, UIDocumentPickerDelegate {
typealias Callback = (Result<T, Error>) -> ()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@


import Foundation
import iOSDFULibrary
import NordicDFU

extension Notification.Name {
static let newMessage = Notification.Name("newMessage")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@


import Foundation
import iOSDFULibrary
import NordicDFU

protocol DFUPacket {
var url: URL { get }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@


import UIKit
import iOSDFULibrary
import NordicDFU

class FileSelectorViewController<T>: UIViewController, AlertPresenter, UITableViewDataSource, UITableViewDelegate {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@


import UIKit
import iOSDFULibrary
import NordicDFU

extension DFUFirmwareSize {
var segments: [Segment] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@


import UIKit
import iOSDFULibrary
import NordicDFU

class DFUFirmwareInfoViewController: UITableViewController, AlertPresenter {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@


import UIKit
import iOSDFULibrary
import NordicDFU

class DFUFirmwareSizeSection: DFUActionSection {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@


import UIKit
import iOSDFULibrary
import NordicDFU

protocol DFUUpdateRouter: AnyObject {
func showLogs()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@


import UIKit
import iOSDFULibrary
import NordicDFU

protocol UpgradeManager {
func stop()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@


import Foundation
import iOSDFULibrary
import NordicDFU


class DFULogObserver: LogObserver, LoggerDelegate {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import UIKit
import Charts

extension DateFormatter: IAxisValueFormatter {
extension DateFormatter: AxisValueFormatter {
public func stringForValue(_ value: Double,
axis: AxisBase?) -> String {
let date = Date(timeIntervalSince1970: value)
Expand Down Expand Up @@ -131,7 +131,7 @@ class LinearChartTableViewCell: UITableViewCell {
chartsView.xAxis.axisMaximum = xMax
chartsView.xAxis.axisMinimum = first

let set = LineChartDataSet(entries: chartValues, label: nil)
let set = LineChartDataSet(entries: chartValues, label: "")
set.drawCirclesEnabled = false
set.drawValuesEnabled = false

Expand Down
3 changes: 2 additions & 1 deletion nRF Toolbox/Profiles/UART/Model/UARTCommandModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@


import Foundation
import UIKit.UIImage
import AEXML

protocol UARTCommandModel: Codable, XMLRepresentable, UARTMacroElement, NordicTextTableViewCellModel {
Expand Down Expand Up @@ -80,7 +81,7 @@ struct TextCommand: UARTCommandModel, Equatable {
])
}

var title: String { text }
var title: String { text.split(whereSeparator: \.isNewline).joined() }

var data: Data {
text.data(using: .utf8)!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ class UARTNewCommandViewController: UIViewController {
let image = CommandImage.allCases[selectedItem]

if typeSegmentControl.selectedSegmentIndex == 0 {
let text = textView.text.split(separator: "\n").joined(separator: self.eolSymbol())
let slices = textView.text.split(omittingEmptySubsequences: false, whereSeparator: \.isNewline)
let text = slices.joined(separator: eolSymbol())

command = TextCommand(text: text, image: image, eol: self.eolSymbol())
} else {
command = DataCommand(data: Data(valueTextField.text!.hexa), image: image)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

import UIKit
import McuManager
import iOSDFULibrary
import NordicDFU

extension FirmwareUpgradeManager: UpgradeManager {
func stop() {
Expand Down
2 changes: 1 addition & 1 deletion nRF Toolbox/Utilities/Extensions/DFU.LogLevel+Ext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@



import iOSDFULibrary
import NordicDFU

extension LogLevel {
var level: LogType {
Expand Down

0 comments on commit ac2d70d

Please sign in to comment.