Skip to content

Commit

Permalink
Merge pull request #11 from diogobalseiro/master
Browse files Browse the repository at this point in the history
Minor housekeeping
  • Loading branch information
franciscoamado authored Mar 25, 2021
2 parents ec10b96 + 89ec746 commit bfa9205
Show file tree
Hide file tree
Showing 10 changed files with 78 additions and 92 deletions.
4 changes: 2 additions & 2 deletions FNMNetworkMonitor.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |spec|
spec.name = 'FNMNetworkMonitor'
spec.module_name = 'FNMNetworkMonitor'
spec.version = '11.0.0'
spec.version = '11.1.0'
spec.summary = 'A network monitor'
spec.homepage = 'https://github.com/Farfetch/network-monitor-ios'
spec.license = 'MIT'
Expand All @@ -12,7 +12,7 @@ Pod::Spec.new do |spec|
spec.requires_arc = true

spec.cocoapods_version = '>= 1.7'
spec.swift_versions = ['5.0']
spec.swift_versions = ['5.0', '5.1', '5.2', '5.3']

spec.source_files = 'NetworkMonitor/Classes/**/*.{h,m,swift}'
end
16 changes: 8 additions & 8 deletions NetworkMonitor.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
A39500101FD84F96001D6086 /* FNMDebugSummaryTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = A395000F1FD84F96001D6086 /* FNMDebugSummaryTableViewCell.swift */; };
A395FFFD1FD83AB1001D6086 /* FNMNetworkMonitorURLProtocol.swift in Sources */ = {isa = PBXBuildFile; fileRef = A395FFE31FD83AB1001D6086 /* FNMNetworkMonitorURLProtocol.swift */; };
A3DA63EE201B3637002CB2C0 /* FNMViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A3DA63ED201B3637002CB2C0 /* FNMViewController.swift */; };
A3E27FC51FC81F9000245188 /* Cold-Start-First-Party-Calls.json in Resources */ = {isa = PBXBuildFile; fileRef = A3E27FC11FC81F8400245188 /* Cold-Start-First-Party-Calls.json */; };
A3E27FC71FC81F9000245188 /* Cold-Start-Third-Party-Calls.json in Resources */ = {isa = PBXBuildFile; fileRef = A3E27FC01FC81F8400245188 /* Cold-Start-Third-Party-Calls.json */; };
A3E27FC51FC81F9000245188 /* Request-Nodes-A.json in Resources */ = {isa = PBXBuildFile; fileRef = A3E27FC11FC81F8400245188 /* Request-Nodes-A.json */; };
A3E27FC71FC81F9000245188 /* Request-Nodes-B.json in Resources */ = {isa = PBXBuildFile; fileRef = A3E27FC01FC81F8400245188 /* Request-Nodes-B.json */; };
DDD462ED24DB54C600F14CD6 /* FNMNetworkMonitor.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F793CA4D1F9E361900AA9C41 /* FNMNetworkMonitor.framework */; };
DDD462EE24DB54C600F14CD6 /* FNMNetworkMonitor.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = F793CA4D1F9E361900AA9C41 /* FNMNetworkMonitor.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
F737BF202080F97D00ECCDE3 /* FNMHTTPRequestRecord.swift in Sources */ = {isa = PBXBuildFile; fileRef = F737BF1F2080F97C00ECCDE3 /* FNMHTTPRequestRecord.swift */; };
Expand Down Expand Up @@ -106,8 +106,8 @@
A395FFFA1FD83AB1001D6086 /* FNMNetworkMonitor.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FNMNetworkMonitor.swift; sourceTree = "<group>"; };
A395FFFC1FD83AB1001D6086 /* FNMAdditions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FNMAdditions.swift; sourceTree = "<group>"; };
A3DA63ED201B3637002CB2C0 /* FNMViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FNMViewController.swift; sourceTree = "<group>"; };
A3E27FC01FC81F8400245188 /* Cold-Start-Third-Party-Calls.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "Cold-Start-Third-Party-Calls.json"; sourceTree = "<group>"; };
A3E27FC11FC81F8400245188 /* Cold-Start-First-Party-Calls.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "Cold-Start-First-Party-Calls.json"; sourceTree = "<group>"; };
A3E27FC01FC81F8400245188 /* Request-Nodes-B.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "Request-Nodes-B.json"; sourceTree = "<group>"; };
A3E27FC11FC81F8400245188 /* Request-Nodes-A.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "Request-Nodes-A.json"; sourceTree = "<group>"; };
F737BF1F2080F97C00ECCDE3 /* FNMHTTPRequestRecord.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FNMHTTPRequestRecord.swift; sourceTree = "<group>"; };
F737BF212080F9B700ECCDE3 /* FNMHTTPRequestRecord+Codable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "FNMHTTPRequestRecord+Codable.swift"; sourceTree = "<group>"; };
F737BF252080FC9100ECCDE3 /* FNMProfile.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FNMProfile.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -237,8 +237,8 @@
F7A5E799208E29E4008C74CE /* Matching-Profiles-1.json */,
F7A5E79B208E2C96008C74CE /* Matching-Profiles-2.json */,
F792A3912099D0A500D9C894 /* Matching-Profiles-3.json */,
A3E27FC11FC81F8400245188 /* Cold-Start-First-Party-Calls.json */,
A3E27FC01FC81F8400245188 /* Cold-Start-Third-Party-Calls.json */,
A3E27FC11FC81F8400245188 /* Request-Nodes-A.json */,
A3E27FC01FC81F8400245188 /* Request-Nodes-B.json */,
);
path = Resources;
sourceTree = "<group>";
Expand Down Expand Up @@ -520,8 +520,8 @@
F76084C72409678E00451AE8 /* Image.png in Resources */,
F792A3922099D0A500D9C894 /* Matching-Profiles-3.json in Resources */,
F7DA8306240956280095D93F /* Generic-Profile-Response.json in Resources */,
A3E27FC51FC81F9000245188 /* Cold-Start-First-Party-Calls.json in Resources */,
A3E27FC71FC81F9000245188 /* Cold-Start-Third-Party-Calls.json in Resources */,
A3E27FC51FC81F9000245188 /* Request-Nodes-A.json in Resources */,
A3E27FC71FC81F9000245188 /* Request-Nodes-B.json in Resources */,
F77D3F32209A16F0008F5E56 /* Generic-Profiles-Duplicates.json in Resources */,
F7A5E79C208E2C96008C74CE /* Matching-Profiles-2.json in Resources */,
F7A5E79A208E29E4008C74CE /* Matching-Profiles-1.json in Resources */,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import UIKit
final class DebugDetailBodyViewController: UIViewController, HighlightReloadable {

// MARK: Properties

let recordBodyDetailInfo: RecordBodyDetailInfo

private let titleLabel = UILabel()
Expand All @@ -21,7 +20,6 @@ final class DebugDetailBodyViewController: UIViewController, HighlightReloadable
var highlight: String = ""

// MARK: Lifecycle

init(recordBodyDetailInfo: RecordBodyDetailInfo) {

self.recordBodyDetailInfo = recordBodyDetailInfo
Expand All @@ -43,7 +41,6 @@ final class DebugDetailBodyViewController: UIViewController, HighlightReloadable
}

// MARK: Public

func reloadData(with highlight: String?) {

self.highlight = highlight ?? ""
Expand All @@ -57,7 +54,6 @@ final class DebugDetailBodyViewController: UIViewController, HighlightReloadable
private extension DebugDetailBodyViewController {

// MARK: - Constants

enum Constants {

static let goldColor = UIColor(red: 196.0, green: 170.0, blue: 132.0, alpha: 1.0)
Expand All @@ -66,7 +62,6 @@ private extension DebugDetailBodyViewController {
}

// MARK: - Layout Configuration

func configureViews() {

self.view.addSubview(self.titleLabel)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import UIKit
final class DebugDetailHeadersViewController: UIViewController, HighlightReloadable {

// MARK: Properties

let recordHeaderDetailInfo: RecordHeaderDetailInfo

private let tableView = UITableView(frame: .zero,
Expand All @@ -21,7 +20,6 @@ final class DebugDetailHeadersViewController: UIViewController, HighlightReloada
var highlight: String = ""

// MARK: - Lifecycle

init(recordHeaderDetailInfo: RecordHeaderDetailInfo) {

self.recordHeaderDetailInfo = recordHeaderDetailInfo
Expand All @@ -43,7 +41,6 @@ final class DebugDetailHeadersViewController: UIViewController, HighlightReloada
}

// MARK: Public

func reloadData(with highlight: String?) {

self.highlight = highlight ?? ""
Expand All @@ -57,14 +54,12 @@ final class DebugDetailHeadersViewController: UIViewController, HighlightReloada
private extension DebugDetailHeadersViewController {

// MARK: - Constants

enum Constants {

static let tableViewEstimatedHeight: CGFloat = 60.0
}

// MARK: - Layout Configuration

func configureViews() {

self.configureTableView()
Expand Down Expand Up @@ -107,7 +102,6 @@ private extension DebugDetailHeadersViewController {
}

// MARK: - DebugDetailHeadersViewController: UITableViewDataSource

extension DebugDetailHeadersViewController: UITableViewDataSource {

enum DebugDetailViewControllerSection: Int {
Expand Down Expand Up @@ -200,7 +194,6 @@ extension DebugDetailHeadersViewController: UITableViewDataSource {
}

// MARK: - DebugDetailHeadersViewController: UITableViewDelegate

extension DebugDetailHeadersViewController: UITableViewDelegate {

func tableView(_ tableView: UITableView, shouldHighlightRowAt indexPath: IndexPath) -> Bool {
Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

## What is this ?

FNMNetworkMonitor is an iOS networking framework that can be used to monitor the network of an iOS app.
FNMNetworkMonitor is a swift iOS networking framework that can be used to monitor the network of an iOS app.
It makes **debugging** the network easy, allowing you to pinpoint the root cause of network related problems in your app and share those requests via email.
it can also **mock** network requests, making it much easier to use incomplete APIs or model specific states for unit testing.

Expand Down Expand Up @@ -95,6 +95,4 @@ List of [Maintainers](MAINTAINERS.md)

## License

[MIT](LICENSE)


The FNMNetworkMonitor is released under the [MIT](LICENSE) license. See the LICENSE file for more details.
6 changes: 3 additions & 3 deletions Sample/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ final class ViewController: UIViewController {

enum Constants {

static let labelTopPadding: CGFloat = 50.0
static let imageSidePadding: CGFloat = 10.0
static let imageBorderWidth: CGFloat = 5.0
static let labelTopPadding: CGFloat = 60.0
static let imageSidePadding: CGFloat = 15.0
static let imageBorderWidth: CGFloat = 3.0

static let robotURL = "https://www.alphabet.com/robots.txt"
static let errorURL = "https://www.ohthehumanity.error"
Expand Down
Loading

0 comments on commit bfa9205

Please sign in to comment.