Skip to content

Commit d76c8ce

Browse files
committed
Deprecate NetworkActivityPlugin.
1 parent 843a792 commit d76c8ce

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ All notable changes to this project will be documented in this file.
1212

1313
* `Alamofire.ParameterEncoding`, `JSONEncoding` and `URLEncoding` are now exposed through TRON API and don't require importing Alamofire to use.
1414

15+
### Deprecated
16+
17+
* `NetworkActivityPlugin` is deprecated on iOS 13 and higher, because `UIApplication.isNetworkActivityIndicatorVisible` property it has been switching is deprecated on iOS 13 and higher.
18+
1519
## [5.1.0](https://github.com/MLSDev/TRON/releases/tag/5.1.0)
1620

1721
### Changed

Source/TRON/NetworkActivityPlugin.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import Foundation
2929
import UIKit
3030
import Alamofire
3131

32+
@available(iOS, deprecated: 13, message: "UIApplication.isNetworkActivityIndicatorVisible is deprecated on iOS 13 and higher. Therefore, this plugin is also deprecated for iOS 13 and higher.")
3233
/**
3334
Plugin, that monitors sent api requests, and automatically sets UIApplication networkActivityIndicatorVisible property.
3435

0 commit comments

Comments
 (0)