diff --git a/ATRNetworkActivityIndicatorManager.podspec b/ATRNetworkActivityIndicatorManager.podspec index 657b54a..9cb09e3 100644 --- a/ATRNetworkActivityIndicatorManager.podspec +++ b/ATRNetworkActivityIndicatorManager.podspec @@ -2,7 +2,7 @@ Pod::Spec.new do |s| s.name = "ATRNetworkActivityIndicatorManager" - s.version = "1.0" + s.version = "1.1" s.summary = "Simple UIApplication's NetworkActivityIndicator counter" s.description = "Simple UIApplication's NetworkActivityIndicator counter (https://github.com/alphatroya/NetworkActivityIndicatorManager)" s.homepage = "https://github.com/alphatroya/NetworkActivityIndicatorManager" diff --git a/Cartfile.resolved b/Cartfile.resolved index f03c284..9f494e8 100644 --- a/Cartfile.resolved +++ b/Cartfile.resolved @@ -1,2 +1,2 @@ -github "Quick/Nimble" "v3.1.0" -github "Quick/Quick" "v0.9.0" +github "Quick/Nimble" "v3.2.0" +github "Quick/Quick" "v0.9.1" diff --git a/Carthage/Checkouts/Nimble b/Carthage/Checkouts/Nimble index 72878d6..3f3ae0e 160000 --- a/Carthage/Checkouts/Nimble +++ b/Carthage/Checkouts/Nimble @@ -1 +1 @@ -Subproject commit 72878d6622cf8362d3507cd2e3d341b06580f451 +Subproject commit 3f3ae0ebd210ed563ce75e313f1b6022188eb660 diff --git a/Carthage/Checkouts/Quick b/Carthage/Checkouts/Quick index fcb11a2..2f03756 160000 --- a/Carthage/Checkouts/Quick +++ b/Carthage/Checkouts/Quick @@ -1 +1 @@ -Subproject commit fcb11a2cbf08e10806039b8f767ab9072115d04d +Subproject commit 2f037560be197f0f5ae992512549bc29fabb3818 diff --git a/NetworkActivityIndicatorManager/NetworkActivityIndicatorManager.swift b/NetworkActivityIndicatorManager/NetworkActivityIndicatorManager.swift index 2b66328..0702e84 100644 --- a/NetworkActivityIndicatorManager/NetworkActivityIndicatorManager.swift +++ b/NetworkActivityIndicatorManager/NetworkActivityIndicatorManager.swift @@ -31,12 +31,12 @@ public class NetworkActivityIndicatorManager { application.networkActivityIndicatorVisible = true } - self.dynamicType.activitiesCount++ + self.dynamicType.activitiesCount += 1 } public func removeActivity() { if self.dynamicType.activitiesCount > 0 { - self.dynamicType.activitiesCount-- + self.dynamicType.activitiesCount -= 1 if self.dynamicType.activitiesCount == 0 { application.networkActivityIndicatorVisible = false diff --git a/README.md b/README.md index 133f86b..e3af4f4 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![Build Status](https://travis-ci.org/alphatroya/NetworkActivityIndicatorManager.svg?branch=master)](https://travis-ci.org/alphatroya/NetworkActivityIndicatorManager) [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) +[![codebeat badge](https://codebeat.co/badges/b9f64cba-baea-4ac6-ac9c-eedf093a72fe)](https://codebeat.co/projects/github-com-alphatroya-networkactivityindicatormanager) ## Usage