-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
71 additions
and
69 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
github "Alamofire/Alamofire" "5.4" | ||
github "Alamofire/Alamofire" ~> 5.4.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
github "Alamofire/Alamofire" "5.0.0-rc.2" | ||
github "Alamofire/Alamofire" "5.4.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,40 @@ | ||
// swift-tools-version:5.1 | ||
// | ||
// Package.swift | ||
// | ||
// The MIT License (MIT) | ||
// | ||
// Copyright (c) 2016 Konstantin Kabanov | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
// of this software and associated documentation files (the "Software"), to deal | ||
// in the Software without restriction, including without limitation the rights | ||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
// copies of the Software, and to permit persons to whom the Software is | ||
// furnished to do so, subject to the following conditions: | ||
// | ||
// The above copyright notice and this permission notice shall be included in all | ||
// copies or substantial portions of the Software. | ||
// | ||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
// SOFTWARE. | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "AlamofireNetworkActivityLogger", | ||
platforms: [ | ||
.iOS(.v10), | ||
.macOS(.v10_12), | ||
.tvOS(.v10), | ||
.watchOS(.v3) | ||
], | ||
products: [ | ||
.library( | ||
name: "AlamofireNetworkActivityLogger", | ||
targets: ["AlamofireNetworkActivityLogger"]), | ||
], | ||
dependencies: [ | ||
.package(url: "https://github.com/Alamofire/Alamofire.git", .upToNextMajor(from: "5.0.0-rc.3")), | ||
], | ||
targets: [ | ||
.target( | ||
name: "AlamofireNetworkActivityLogger", | ||
dependencies: [ | ||
"Alamofire", | ||
], | ||
path: "Source"), | ||
], | ||
swiftLanguageVersions: [.v5] | ||
) | ||
let package = Package(name: "AlamofireNetworkActivityLogger", | ||
platforms: [.iOS(.v10), | ||
.macOS(.v10_12), | ||
.tvOS(.v10), | ||
.watchOS(.v3)], | ||
products: [.library(name: "AlamofireNetworkActivityLogger", targets: ["AlamofireNetworkActivityLogger"])], | ||
dependencies: [.package(url: "https://github.com/Alamofire/Alamofire.git", | ||
from: "5.4.0")], | ||
targets: [.target(name: "AlamofireNetworkActivityLogger", | ||
dependencies: ["Alamofire"], | ||
path: "Source")], | ||
swiftLanguageVersions: [.v5]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,12 +9,12 @@ Network activity logger for Alamofire. | |
## Requirements | ||
|
||
- iOS 10.0+ / macOS 10.12+ / tvOS 10.0+ / watchOS 3.0+ | ||
- Xcode 10.2+ | ||
- Swift 5+ | ||
- Xcode 11+ | ||
- Swift 5.1+ | ||
|
||
## Dependencies | ||
|
||
- [Alamofire 5.0.0-rc.2+](https://github.com/Alamofire/Alamofire) | ||
- [Alamofire 5.4.0+](https://github.com/Alamofire/Alamofire) | ||
|
||
## Installation | ||
|
||
|
@@ -26,7 +26,7 @@ Network activity logger for Alamofire. | |
$ gem install cocoapods | ||
``` | ||
|
||
> CocoaPods 1.7.5+ is required. | ||
> CocoaPods 1.10.0+ is required. | ||
To integrate AlamofireNetworkActivityLogger into your Xcode project using CocoaPods, specify it in your `Podfile`: | ||
|
||
|
@@ -35,7 +35,7 @@ source 'https://github.com/CocoaPods/Specs.git' | |
platform :ios, '10.0' | ||
use_frameworks! | ||
|
||
pod 'AlamofireNetworkActivityLogger', '~> 3.0' | ||
pod 'AlamofireNetworkActivityLogger', '~> 3.4' | ||
``` | ||
|
||
Then, run the following command: | ||
|
@@ -58,7 +58,19 @@ $ brew install carthage | |
To integrate AlamofireNetworkActivityLogger into your Xcode project using Carthage, specify it in your `Cartfile`: | ||
|
||
```ogdl | ||
github "konkab/AlamofireNetworkActivityLogger" ~> 3.0 | ||
github "konkab/AlamofireNetworkActivityLogger" ~> 3.4 | ||
``` | ||
|
||
### Swift Package Manager | ||
|
||
The [Swift Package Manager](https://swift.org/package-manager/) is a tool for automating the distribution of Swift code and is integrated into the `swift` compiler. | ||
|
||
Once you have your Swift package set up, adding AlamofireNetworkActivityLogger as a dependency is as easy as adding it to the `dependencies` value of your `Package.swift`. | ||
|
||
```swift | ||
dependencies: [ | ||
.package(url: "https://github.com/konkab/AlamofireNetworkActivityLogger.git", .upToNextMajor(from: "3.4.0")) | ||
] | ||
``` | ||
|
||
--- | ||
|
@@ -77,7 +89,7 @@ Add the following code to `AppDelegate.swift application:didFinishLaunchingWithO | |
NetworkActivityLogger.shared.startLogging() | ||
``` | ||
|
||
Now all NSURLSessionTask objects created by an Alamofire.SessionManager will have their request and response logged to the console, a la: | ||
Now all NSURLSessionTask objects created by an Alamofire.Session will have their request and response logged to the console, a la: | ||
|
||
``` | ||
--------------------- | ||
|
@@ -97,7 +109,7 @@ NetworkActivityLogger.shared.level = .error | |
Konstantin Kabanov | ||
|
||
- [email protected] | ||
- Skype: konstantin_kabanov | ||
- [Telegram: konstantin_kabanov](https://t.me/konstantin_kabanov) | ||
- [Linkedin](https://ru.linkedin.com/in/konstantinkabanov) | ||
|
||
## License | ||
|