Commit b76390ba by wanggang

replace HUD

parent d1bf1935
...@@ -11,6 +11,8 @@ target 'WXDownloadingKit' do ...@@ -11,6 +11,8 @@ target 'WXDownloadingKit' do
pod 'MGSwipeTableCell' pod 'MGSwipeTableCell'
pod 'Reachability' pod 'Reachability'
pod 'MBProgressHUD'
end end
...@@ -23,5 +25,7 @@ target 'WXDownloadingComponent' do ...@@ -23,5 +25,7 @@ target 'WXDownloadingComponent' do
pod 'MGSwipeTableCell' pod 'MGSwipeTableCell'
pod 'Reachability' pod 'Reachability'
pod 'MBProgressHUD'
end end
PODS: PODS:
- MBProgressHUD (1.2.0)
- MGSwipeTableCell (1.6.11) - MGSwipeTableCell (1.6.11)
- Reachability (3.2) - Reachability (3.2)
- YYKit (1.0.9): - YYKit (1.0.9):
...@@ -6,21 +7,24 @@ PODS: ...@@ -6,21 +7,24 @@ PODS:
- YYKit/no-arc (1.0.9) - YYKit/no-arc (1.0.9)
DEPENDENCIES: DEPENDENCIES:
- MBProgressHUD
- MGSwipeTableCell - MGSwipeTableCell
- Reachability - Reachability
- YYKit - YYKit
SPEC REPOS: SPEC REPOS:
https://github.com/cocoapods/specs.git: https://github.com/cocoapods/specs.git:
- MBProgressHUD
- MGSwipeTableCell - MGSwipeTableCell
- Reachability - Reachability
- YYKit - YYKit
SPEC CHECKSUMS: SPEC CHECKSUMS:
MBProgressHUD: 3ee5efcc380f6a79a7cc9b363dd669c5e1ae7406
MGSwipeTableCell: b804e4e450dee439c42250be90bd50458bf67fce MGSwipeTableCell: b804e4e450dee439c42250be90bd50458bf67fce
Reachability: 33e18b67625424e47b6cde6d202dce689ad7af96 Reachability: 33e18b67625424e47b6cde6d202dce689ad7af96
YYKit: 7cda43304a8dc3696c449041e2cb3107b4e236e7 YYKit: 7cda43304a8dc3696c449041e2cb3107b4e236e7
PODFILE CHECKSUM: c868a7d98611d357247477b920106b0538a46ea8 PODFILE CHECKSUM: b9c7ad7c7b87e8ff4d6441b8c7486e604fc18b7b
COCOAPODS: 1.7.2 COCOAPODS: 1.7.2
Copyright © 2009-2020 Matej Bukovinski
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.
\ No newline at end of file
# MBProgressHUD
[![Build Status](https://travis-ci.org/matej/MBProgressHUD.svg?branch=master)](https://travis-ci.org/matej/MBProgressHUD) [![codecov.io](https://codecov.io/github/matej/MBProgressHUD/coverage.svg?branch=master)](https://codecov.io/github/matej/MBProgressHUD?branch=master)
[![SwiftPM compatible](https://img.shields.io/badge/SwiftPM-compatible-brightgreen.svg)](https://github.com/apple/swift-package-manager) [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage#adding-frameworks-to-an-application) [![Accio supported](https://img.shields.io/badge/Accio-supported-0A7CF5.svg?style=flat)](https://github.com/JamitLabs/Accio) [![CocoaPods compatible](https://img.shields.io/cocoapods/v/MBProgressHUD.svg?style=flat)](https://cocoapods.org/pods/MBProgressHUD) [![License: MIT](https://img.shields.io/cocoapods/l/MBProgressHUD.svg?style=flat)](http://opensource.org/licenses/MIT)
`MBProgressHUD` is an iOS drop-in class that displays a translucent HUD with an indicator and/or labels while work is being done in a background thread. The HUD is meant as a replacement for the undocumented, private `UIKit` `UIProgressHUD` with some additional features.
[![](https://raw.githubusercontent.com/wiki/matej/MBProgressHUD/Screenshots/1-small.png)](https://raw.githubusercontent.com/wiki/matej/MBProgressHUD/Screenshots/1.png)
[![](https://raw.githubusercontent.com/wiki/matej/MBProgressHUD/Screenshots/2-small.png)](https://raw.githubusercontent.com/wiki/matej/MBProgressHUD/Screenshots/2.png)
[![](https://raw.githubusercontent.com/wiki/matej/MBProgressHUD/Screenshots/3-small.png)](https://raw.githubusercontent.com/wiki/matej/MBProgressHUD/Screenshots/3.png)
[![](https://raw.githubusercontent.com/wiki/matej/MBProgressHUD/Screenshots/4-small.png)](https://raw.githubusercontent.com/wiki/matej/MBProgressHUD/Screenshots/4.png)
[![](https://raw.githubusercontent.com/wiki/matej/MBProgressHUD/Screenshots/5-small.png)](https://raw.githubusercontent.com/wiki/matej/MBProgressHUD/Screenshots/5.png)
[![](https://raw.githubusercontent.com/wiki/matej/MBProgressHUD/Screenshots/6-small.png)](https://raw.githubusercontent.com/wiki/matej/MBProgressHUD/Screenshots/6.png)
[![](https://raw.githubusercontent.com/wiki/matej/MBProgressHUD/Screenshots/7-small.png)](https://raw.githubusercontent.com/wiki/matej/MBProgressHUD/Screenshots/7.png)
**NOTE:** The class has recently undergone a major rewrite. The old version is available in the [legacy](https://github.com/jdg/MBProgressHUD/tree/legacy) branch, should you need it.
## Requirements
`MBProgressHUD` works on iOS 9.0+. It depends on the following Apple frameworks, which should already be included with most Xcode templates:
* Foundation.framework
* UIKit.framework
* CoreGraphics.framework
You will need the latest developer tools in order to build `MBProgressHUD`. Old Xcode versions might work, but compatibility will not be explicitly maintained.
## Adding MBProgressHUD to your project
### CocoaPods
[CocoaPods](http://cocoapods.org) is the recommended way to add MBProgressHUD to your project.
1. Add a pod entry for MBProgressHUD to your Podfile `pod 'MBProgressHUD', '~> 1.2.0'`
2. Install the pod(s) by running `pod install`.
3. Include MBProgressHUD wherever you need it with `#import "MBProgressHUD.h"`.
### Carthage
1. Add MBProgressHUD to your Cartfile. e.g., `github "jdg/MBProgressHUD" ~> 1.2.0`
2. Run `carthage update`
3. Follow the rest of the [standard Carthage installation instructions](https://github.com/Carthage/Carthage#adding-frameworks-to-an-application) to add MBProgressHUD to your project.
### SwiftPM / Accio
1. Add the following to your `Package.swift`:
```swift
.package(url: "https://github.com/jdg/MBProgressHUD.git", .upToNextMajor(from: "1.2.0")),
```
2. Next, add `MBProgressHUD` to your App targets dependencies like so:
```swift
.target(name: "App", dependencies: ["MBProgressHUD"]),
```
3. Then open your project in Xcode 11+ (SwiftPM) or run `accio update` (Accio).
### Source files
Alternatively you can directly add the `MBProgressHUD.h` and `MBProgressHUD.m` source files to your project.
1. Download the [latest code version](https://github.com/matej/MBProgressHUD/archive/master.zip) or add the repository as a git submodule to your git-tracked project.
2. Open your project in Xcode, then drag and drop `MBProgressHUD.h` and `MBProgressHUD.m` onto your project (use the "Product Navigator view"). Make sure to select Copy items when asked if you extracted the code archive outside of your project.
3. Include MBProgressHUD wherever you need it with `#import "MBProgressHUD.h"`.
### Static library
You can also add MBProgressHUD as a static library to your project or workspace.
1. Download the [latest code version](https://github.com/matej/MBProgressHUD/downloads) or add the repository as a git submodule to your git-tracked project.
2. Open your project in Xcode, then drag and drop `MBProgressHUD.xcodeproj` onto your project or workspace (use the "Product Navigator view").
3. Select your target and go to the Build phases tab. In the Link Binary With Libraries section select the add button. On the sheet find and add `libMBProgressHUD.a`. You might also need to add `MBProgressHUD` to the Target Dependencies list.
4. Include MBProgressHUD wherever you need it with `#import <MBProgressHUD/MBProgressHUD.h>`.
## Usage
The main guideline you need to follow when dealing with MBProgressHUD while running long-running tasks is keeping the main thread work-free, so the UI can be updated promptly. The recommended way of using MBProgressHUD is therefore to set it up on the main thread and then spinning the task, that you want to perform, off onto a new thread.
```objective-c
[MBProgressHUD showHUDAddedTo:self.view animated:YES];
dispatch_async(dispatch_get_global_queue( DISPATCH_QUEUE_PRIORITY_LOW, 0), ^{
// Do something...
dispatch_async(dispatch_get_main_queue(), ^{
[MBProgressHUD hideHUDForView:self.view animated:YES];
});
});
```
You can add the HUD on any view or window. It is however a good idea to avoid adding the HUD to certain `UIKit` views with complex view hierarchies - like `UITableView` or `UICollectionView`. Those can mutate their subviews in unexpected ways and thereby break HUD display.
If you need to configure the HUD you can do this by using the MBProgressHUD reference that showHUDAddedTo:animated: returns.
```objective-c
MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:self.view animated:YES];
hud.mode = MBProgressHUDModeAnnularDeterminate;
hud.label.text = @"Loading";
[self doSomethingInBackgroundWithProgressCallback:^(float progress) {
hud.progress = progress;
} completionCallback:^{
[hud hideAnimated:YES];
}];
```
You can also use a `NSProgress` object and MBProgressHUD will update itself when there is progress reported through that object.
```objective-c
MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:self.view animated:YES];
hud.mode = MBProgressHUDModeAnnularDeterminate;
hud.label.text = @"Loading";
NSProgress *progress = [self doSomethingInBackgroundCompletion:^{
[hud hideAnimated:YES];
}];
hud.progressObject = progress;
```
Keep in mind that UI updates, inclining calls to MBProgressHUD should always be done on the main thread.
If you need to run your long-running task in the main thread, you should perform it with a slight delay, so UIKit will have enough time to update the UI (i.e., draw the HUD) before you block the main thread with your task.
```objective-c
[MBProgressHUD showHUDAddedTo:self.view animated:YES];
dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, 0.01 * NSEC_PER_SEC);
dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
// Do something...
[MBProgressHUD hideHUDForView:self.view animated:YES];
});
```
You should be aware that any HUD updates issued inside the above block won't be displayed until the block completes.
For more examples, including how to use MBProgressHUD with asynchronous operations such as NSURLConnection, take a look at the bundled demo project. Extensive API documentation is provided in the header file (MBProgressHUD.h).
## License
This code is distributed under the terms and conditions of the [MIT license](LICENSE).
## Change-log
A brief summary of each MBProgressHUD release can be found in the [CHANGELOG](CHANGELOG.mdown).
PODS: PODS:
- MBProgressHUD (1.2.0)
- MGSwipeTableCell (1.6.11) - MGSwipeTableCell (1.6.11)
- Reachability (3.2) - Reachability (3.2)
- YYKit (1.0.9): - YYKit (1.0.9):
...@@ -6,21 +7,24 @@ PODS: ...@@ -6,21 +7,24 @@ PODS:
- YYKit/no-arc (1.0.9) - YYKit/no-arc (1.0.9)
DEPENDENCIES: DEPENDENCIES:
- MBProgressHUD
- MGSwipeTableCell - MGSwipeTableCell
- Reachability - Reachability
- YYKit - YYKit
SPEC REPOS: SPEC REPOS:
https://github.com/cocoapods/specs.git: https://github.com/cocoapods/specs.git:
- MBProgressHUD
- MGSwipeTableCell - MGSwipeTableCell
- Reachability - Reachability
- YYKit - YYKit
SPEC CHECKSUMS: SPEC CHECKSUMS:
MBProgressHUD: 3ee5efcc380f6a79a7cc9b363dd669c5e1ae7406
MGSwipeTableCell: b804e4e450dee439c42250be90bd50458bf67fce MGSwipeTableCell: b804e4e450dee439c42250be90bd50458bf67fce
Reachability: 33e18b67625424e47b6cde6d202dce689ad7af96 Reachability: 33e18b67625424e47b6cde6d202dce689ad7af96
YYKit: 7cda43304a8dc3696c449041e2cb3107b4e236e7 YYKit: 7cda43304a8dc3696c449041e2cb3107b4e236e7
PODFILE CHECKSUM: c868a7d98611d357247477b920106b0538a46ea8 PODFILE CHECKSUM: b9c7ad7c7b87e8ff4d6441b8c7486e604fc18b7b
COCOAPODS: 1.7.2 COCOAPODS: 1.7.2
This source diff could not be displayed because it is too large. You can view the blob instead.
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1100"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForAnalyzing = "YES"
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "82B0A41D3031FF27D78E17B0A9A46FB0"
BuildableName = "MBProgressHUD.framework"
BlueprintName = "MBProgressHUD"
ReferencedContainer = "container:Pods.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
buildConfiguration = "Debug"
allowLocationSimulation = "YES">
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES"
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES">
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
...@@ -4,41 +4,48 @@ ...@@ -4,41 +4,48 @@
<dict> <dict>
<key>SchemeUserState</key> <key>SchemeUserState</key>
<dict> <dict>
<key>MGSwipeTableCell.xcscheme</key> <key>MBProgressHUD.xcscheme</key>
<dict> <dict>
<key>isShown</key> <key>isShown</key>
<false/> <false/>
<key>orderHint</key> <key>orderHint</key>
<integer>1</integer> <integer>1</integer>
</dict> </dict>
<key>Pods-WXDownloadingComponent.xcscheme</key> <key>MGSwipeTableCell.xcscheme</key>
<dict> <dict>
<key>isShown</key> <key>isShown</key>
<false/> <false/>
<key>orderHint</key> <key>orderHint</key>
<integer>2</integer> <integer>2</integer>
</dict> </dict>
<key>Pods-WXDownloadingKit.xcscheme</key> <key>Pods-WXDownloadingComponent.xcscheme</key>
<dict> <dict>
<key>isShown</key> <key>isShown</key>
<false/> <false/>
<key>orderHint</key> <key>orderHint</key>
<integer>3</integer> <integer>3</integer>
</dict> </dict>
<key>Reachability.xcscheme</key> <key>Pods-WXDownloadingKit.xcscheme</key>
<dict> <dict>
<key>isShown</key> <key>isShown</key>
<false/> <false/>
<key>orderHint</key> <key>orderHint</key>
<integer>4</integer> <integer>4</integer>
</dict> </dict>
<key>YYKit.xcscheme</key> <key>Reachability.xcscheme</key>
<dict> <dict>
<key>isShown</key> <key>isShown</key>
<false/> <false/>
<key>orderHint</key> <key>orderHint</key>
<integer>5</integer> <integer>5</integer>
</dict> </dict>
<key>YYKit.xcscheme</key>
<dict>
<key>isShown</key>
<false/>
<key>orderHint</key>
<integer>6</integer>
</dict>
</dict> </dict>
<key>SuppressBuildableAutocreation</key> <key>SuppressBuildableAutocreation</key>
<dict/> <dict/>
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>${PRODUCT_BUNDLE_IDENTIFIER}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.2.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>${CURRENT_PROJECT_VERSION}</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
#import <Foundation/Foundation.h>
@interface PodsDummy_MBProgressHUD : NSObject
@end
@implementation PodsDummy_MBProgressHUD
@end
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
#import "MBProgressHUD.h"
FOUNDATION_EXPORT double MBProgressHUDVersionNumber;
FOUNDATION_EXPORT const unsigned char MBProgressHUDVersionString[];
framework module MBProgressHUD {
umbrella header "MBProgressHUD-umbrella.h"
export *
module * { export * }
}
CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/MBProgressHUD
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
OTHER_LDFLAGS = $(inherited) -framework "CoreGraphics" -framework "QuartzCore"
PODS_BUILD_DIR = ${BUILD_DIR}
PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
PODS_ROOT = ${SRCROOT}
PODS_TARGET_SRCROOT = ${PODS_ROOT}/MBProgressHUD
PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier}
SKIP_INSTALL = YES
# Acknowledgements # Acknowledgements
This application makes use of the following third party libraries: This application makes use of the following third party libraries:
## MBProgressHUD
Copyright © 2009-2020 Matej Bukovinski
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.
## MGSwipeTableCell ## MGSwipeTableCell
The MIT License (MIT) The MIT License (MIT)
......
...@@ -14,6 +14,34 @@ ...@@ -14,6 +14,34 @@
</dict> </dict>
<dict> <dict>
<key>FooterText</key> <key>FooterText</key>
<string>Copyright © 2009-2020 Matej Bukovinski
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.</string>
<key>License</key>
<string>MIT</string>
<key>Title</key>
<string>MBProgressHUD</string>
<key>Type</key>
<string>PSGroupSpecifier</string>
</dict>
<dict>
<key>FooterText</key>
<string>The MIT License (MIT) <string>The MIT License (MIT)
Copyright (c) 2018 Imanol Fernandez @MortimerGoro Copyright (c) 2018 Imanol Fernandez @MortimerGoro
......
FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MGSwipeTableCell" "${PODS_CONFIGURATION_BUILD_DIR}/Reachability" "${PODS_CONFIGURATION_BUILD_DIR}/YYKit" "${PODS_ROOT}/YYKit/Vendor" FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MBProgressHUD" "${PODS_CONFIGURATION_BUILD_DIR}/MGSwipeTableCell" "${PODS_CONFIGURATION_BUILD_DIR}/Reachability" "${PODS_CONFIGURATION_BUILD_DIR}/YYKit" "${PODS_ROOT}/YYKit/Vendor"
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MGSwipeTableCell/MGSwipeTableCell.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/Reachability/Reachability.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/YYKit/YYKit.framework/Headers" HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MBProgressHUD/MBProgressHUD.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/MGSwipeTableCell/MGSwipeTableCell.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/Reachability/Reachability.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/YYKit/YYKit.framework/Headers"
LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' '@executable_path/../../Frameworks' LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' '@executable_path/../../Frameworks'
OTHER_CFLAGS = $(inherited) -isystem "${PODS_CONFIGURATION_BUILD_DIR}/MGSwipeTableCell/MGSwipeTableCell.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/Reachability/Reachability.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/YYKit/YYKit.framework/Headers" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/MGSwipeTableCell" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/Reachability" -iframework "${PODS_ROOT}/YYKit/Vendor" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/YYKit" OTHER_CFLAGS = $(inherited) -isystem "${PODS_CONFIGURATION_BUILD_DIR}/MBProgressHUD/MBProgressHUD.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/MGSwipeTableCell/MGSwipeTableCell.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/Reachability/Reachability.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/YYKit/YYKit.framework/Headers" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/MBProgressHUD" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/MGSwipeTableCell" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/Reachability" -iframework "${PODS_ROOT}/YYKit/Vendor" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/YYKit"
OTHER_LDFLAGS = $(inherited) -ObjC -l"sqlite3" -l"z" -framework "Accelerate" -framework "AssetsLibrary" -framework "CoreFoundation" -framework "CoreGraphics" -framework "CoreImage" -framework "CoreText" -framework "ImageIO" -framework "MGSwipeTableCell" -framework "MobileCoreServices" -framework "QuartzCore" -framework "Reachability" -framework "SystemConfiguration" -framework "UIKit" -framework "YYKit" OTHER_LDFLAGS = $(inherited) -ObjC -l"sqlite3" -l"z" -framework "Accelerate" -framework "AssetsLibrary" -framework "CoreFoundation" -framework "CoreGraphics" -framework "CoreImage" -framework "CoreText" -framework "ImageIO" -framework "MBProgressHUD" -framework "MGSwipeTableCell" -framework "MobileCoreServices" -framework "QuartzCore" -framework "Reachability" -framework "SystemConfiguration" -framework "UIKit" -framework "YYKit"
PODS_BUILD_DIR = ${BUILD_DIR} PODS_BUILD_DIR = ${BUILD_DIR}
PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
PODS_PODFILE_DIR_PATH = ${SRCROOT}/. PODS_PODFILE_DIR_PATH = ${SRCROOT}/.
......
FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MGSwipeTableCell" "${PODS_CONFIGURATION_BUILD_DIR}/Reachability" "${PODS_CONFIGURATION_BUILD_DIR}/YYKit" "${PODS_ROOT}/YYKit/Vendor" FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MBProgressHUD" "${PODS_CONFIGURATION_BUILD_DIR}/MGSwipeTableCell" "${PODS_CONFIGURATION_BUILD_DIR}/Reachability" "${PODS_CONFIGURATION_BUILD_DIR}/YYKit" "${PODS_ROOT}/YYKit/Vendor"
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MGSwipeTableCell/MGSwipeTableCell.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/Reachability/Reachability.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/YYKit/YYKit.framework/Headers" HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MBProgressHUD/MBProgressHUD.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/MGSwipeTableCell/MGSwipeTableCell.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/Reachability/Reachability.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/YYKit/YYKit.framework/Headers"
LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' '@executable_path/../../Frameworks' LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' '@executable_path/../../Frameworks'
OTHER_CFLAGS = $(inherited) -isystem "${PODS_CONFIGURATION_BUILD_DIR}/MGSwipeTableCell/MGSwipeTableCell.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/Reachability/Reachability.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/YYKit/YYKit.framework/Headers" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/MGSwipeTableCell" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/Reachability" -iframework "${PODS_ROOT}/YYKit/Vendor" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/YYKit" OTHER_CFLAGS = $(inherited) -isystem "${PODS_CONFIGURATION_BUILD_DIR}/MBProgressHUD/MBProgressHUD.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/MGSwipeTableCell/MGSwipeTableCell.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/Reachability/Reachability.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/YYKit/YYKit.framework/Headers" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/MBProgressHUD" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/MGSwipeTableCell" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/Reachability" -iframework "${PODS_ROOT}/YYKit/Vendor" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/YYKit"
OTHER_LDFLAGS = $(inherited) -ObjC -l"sqlite3" -l"z" -framework "Accelerate" -framework "AssetsLibrary" -framework "CoreFoundation" -framework "CoreGraphics" -framework "CoreImage" -framework "CoreText" -framework "ImageIO" -framework "MGSwipeTableCell" -framework "MobileCoreServices" -framework "QuartzCore" -framework "Reachability" -framework "SystemConfiguration" -framework "UIKit" -framework "YYKit" OTHER_LDFLAGS = $(inherited) -ObjC -l"sqlite3" -l"z" -framework "Accelerate" -framework "AssetsLibrary" -framework "CoreFoundation" -framework "CoreGraphics" -framework "CoreImage" -framework "CoreText" -framework "ImageIO" -framework "MBProgressHUD" -framework "MGSwipeTableCell" -framework "MobileCoreServices" -framework "QuartzCore" -framework "Reachability" -framework "SystemConfiguration" -framework "UIKit" -framework "YYKit"
PODS_BUILD_DIR = ${BUILD_DIR} PODS_BUILD_DIR = ${BUILD_DIR}
PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
PODS_PODFILE_DIR_PATH = ${SRCROOT}/. PODS_PODFILE_DIR_PATH = ${SRCROOT}/.
......
# Acknowledgements # Acknowledgements
This application makes use of the following third party libraries: This application makes use of the following third party libraries:
## MBProgressHUD
Copyright © 2009-2020 Matej Bukovinski
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.
## MGSwipeTableCell ## MGSwipeTableCell
The MIT License (MIT) The MIT License (MIT)
......
...@@ -14,6 +14,34 @@ ...@@ -14,6 +14,34 @@
</dict> </dict>
<dict> <dict>
<key>FooterText</key> <key>FooterText</key>
<string>Copyright © 2009-2020 Matej Bukovinski
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.</string>
<key>License</key>
<string>MIT</string>
<key>Title</key>
<string>MBProgressHUD</string>
<key>Type</key>
<string>PSGroupSpecifier</string>
</dict>
<dict>
<key>FooterText</key>
<string>The MIT License (MIT) <string>The MIT License (MIT)
Copyright (c) 2018 Imanol Fernandez @MortimerGoro Copyright (c) 2018 Imanol Fernandez @MortimerGoro
......
${PODS_ROOT}/Target Support Files/Pods-WXDownloadingKit/Pods-WXDownloadingKit-frameworks.sh ${PODS_ROOT}/Target Support Files/Pods-WXDownloadingKit/Pods-WXDownloadingKit-frameworks.sh
${BUILT_PRODUCTS_DIR}/MBProgressHUD/MBProgressHUD.framework
${BUILT_PRODUCTS_DIR}/MGSwipeTableCell/MGSwipeTableCell.framework ${BUILT_PRODUCTS_DIR}/MGSwipeTableCell/MGSwipeTableCell.framework
${BUILT_PRODUCTS_DIR}/Reachability/Reachability.framework ${BUILT_PRODUCTS_DIR}/Reachability/Reachability.framework
${BUILT_PRODUCTS_DIR}/YYKit/YYKit.framework ${BUILT_PRODUCTS_DIR}/YYKit/YYKit.framework
\ No newline at end of file
${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MBProgressHUD.framework
${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MGSwipeTableCell.framework ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MGSwipeTableCell.framework
${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Reachability.framework ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Reachability.framework
${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/YYKit.framework ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/YYKit.framework
\ No newline at end of file
${PODS_ROOT}/Target Support Files/Pods-WXDownloadingKit/Pods-WXDownloadingKit-frameworks.sh ${PODS_ROOT}/Target Support Files/Pods-WXDownloadingKit/Pods-WXDownloadingKit-frameworks.sh
${BUILT_PRODUCTS_DIR}/MBProgressHUD/MBProgressHUD.framework
${BUILT_PRODUCTS_DIR}/MGSwipeTableCell/MGSwipeTableCell.framework ${BUILT_PRODUCTS_DIR}/MGSwipeTableCell/MGSwipeTableCell.framework
${BUILT_PRODUCTS_DIR}/Reachability/Reachability.framework ${BUILT_PRODUCTS_DIR}/Reachability/Reachability.framework
${BUILT_PRODUCTS_DIR}/YYKit/YYKit.framework ${BUILT_PRODUCTS_DIR}/YYKit/YYKit.framework
\ No newline at end of file
${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MBProgressHUD.framework
${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MGSwipeTableCell.framework ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/MGSwipeTableCell.framework
${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Reachability.framework ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Reachability.framework
${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/YYKit.framework ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/YYKit.framework
\ No newline at end of file
...@@ -161,11 +161,13 @@ strip_invalid_archs() { ...@@ -161,11 +161,13 @@ strip_invalid_archs() {
if [[ "$CONFIGURATION" == "Debug" ]]; then if [[ "$CONFIGURATION" == "Debug" ]]; then
install_framework "${BUILT_PRODUCTS_DIR}/MBProgressHUD/MBProgressHUD.framework"
install_framework "${BUILT_PRODUCTS_DIR}/MGSwipeTableCell/MGSwipeTableCell.framework" install_framework "${BUILT_PRODUCTS_DIR}/MGSwipeTableCell/MGSwipeTableCell.framework"
install_framework "${BUILT_PRODUCTS_DIR}/Reachability/Reachability.framework" install_framework "${BUILT_PRODUCTS_DIR}/Reachability/Reachability.framework"
install_framework "${BUILT_PRODUCTS_DIR}/YYKit/YYKit.framework" install_framework "${BUILT_PRODUCTS_DIR}/YYKit/YYKit.framework"
fi fi
if [[ "$CONFIGURATION" == "Release" ]]; then if [[ "$CONFIGURATION" == "Release" ]]; then
install_framework "${BUILT_PRODUCTS_DIR}/MBProgressHUD/MBProgressHUD.framework"
install_framework "${BUILT_PRODUCTS_DIR}/MGSwipeTableCell/MGSwipeTableCell.framework" install_framework "${BUILT_PRODUCTS_DIR}/MGSwipeTableCell/MGSwipeTableCell.framework"
install_framework "${BUILT_PRODUCTS_DIR}/Reachability/Reachability.framework" install_framework "${BUILT_PRODUCTS_DIR}/Reachability/Reachability.framework"
install_framework "${BUILT_PRODUCTS_DIR}/YYKit/YYKit.framework" install_framework "${BUILT_PRODUCTS_DIR}/YYKit/YYKit.framework"
......
FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MGSwipeTableCell" "${PODS_CONFIGURATION_BUILD_DIR}/Reachability" "${PODS_CONFIGURATION_BUILD_DIR}/YYKit" "${PODS_ROOT}/YYKit/Vendor" FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MBProgressHUD" "${PODS_CONFIGURATION_BUILD_DIR}/MGSwipeTableCell" "${PODS_CONFIGURATION_BUILD_DIR}/Reachability" "${PODS_CONFIGURATION_BUILD_DIR}/YYKit" "${PODS_ROOT}/YYKit/Vendor"
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MGSwipeTableCell/MGSwipeTableCell.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/Reachability/Reachability.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/YYKit/YYKit.framework/Headers" HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MBProgressHUD/MBProgressHUD.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/MGSwipeTableCell/MGSwipeTableCell.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/Reachability/Reachability.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/YYKit/YYKit.framework/Headers"
LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
OTHER_CFLAGS = $(inherited) -isystem "${PODS_CONFIGURATION_BUILD_DIR}/MGSwipeTableCell/MGSwipeTableCell.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/Reachability/Reachability.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/YYKit/YYKit.framework/Headers" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/MGSwipeTableCell" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/Reachability" -iframework "${PODS_ROOT}/YYKit/Vendor" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/YYKit" OTHER_CFLAGS = $(inherited) -isystem "${PODS_CONFIGURATION_BUILD_DIR}/MBProgressHUD/MBProgressHUD.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/MGSwipeTableCell/MGSwipeTableCell.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/Reachability/Reachability.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/YYKit/YYKit.framework/Headers" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/MBProgressHUD" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/MGSwipeTableCell" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/Reachability" -iframework "${PODS_ROOT}/YYKit/Vendor" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/YYKit"
OTHER_LDFLAGS = $(inherited) -ObjC -l"sqlite3" -l"z" -framework "Accelerate" -framework "AssetsLibrary" -framework "CoreFoundation" -framework "CoreGraphics" -framework "CoreImage" -framework "CoreText" -framework "ImageIO" -framework "MGSwipeTableCell" -framework "MobileCoreServices" -framework "QuartzCore" -framework "Reachability" -framework "SystemConfiguration" -framework "UIKit" -framework "YYKit" OTHER_LDFLAGS = $(inherited) -ObjC -l"sqlite3" -l"z" -framework "Accelerate" -framework "AssetsLibrary" -framework "CoreFoundation" -framework "CoreGraphics" -framework "CoreImage" -framework "CoreText" -framework "ImageIO" -framework "MBProgressHUD" -framework "MGSwipeTableCell" -framework "MobileCoreServices" -framework "QuartzCore" -framework "Reachability" -framework "SystemConfiguration" -framework "UIKit" -framework "YYKit"
PODS_BUILD_DIR = ${BUILD_DIR} PODS_BUILD_DIR = ${BUILD_DIR}
PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
PODS_PODFILE_DIR_PATH = ${SRCROOT}/. PODS_PODFILE_DIR_PATH = ${SRCROOT}/.
......
FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MGSwipeTableCell" "${PODS_CONFIGURATION_BUILD_DIR}/Reachability" "${PODS_CONFIGURATION_BUILD_DIR}/YYKit" "${PODS_ROOT}/YYKit/Vendor" FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MBProgressHUD" "${PODS_CONFIGURATION_BUILD_DIR}/MGSwipeTableCell" "${PODS_CONFIGURATION_BUILD_DIR}/Reachability" "${PODS_CONFIGURATION_BUILD_DIR}/YYKit" "${PODS_ROOT}/YYKit/Vendor"
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MGSwipeTableCell/MGSwipeTableCell.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/Reachability/Reachability.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/YYKit/YYKit.framework/Headers" HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/MBProgressHUD/MBProgressHUD.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/MGSwipeTableCell/MGSwipeTableCell.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/Reachability/Reachability.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/YYKit/YYKit.framework/Headers"
LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks'
OTHER_CFLAGS = $(inherited) -isystem "${PODS_CONFIGURATION_BUILD_DIR}/MGSwipeTableCell/MGSwipeTableCell.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/Reachability/Reachability.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/YYKit/YYKit.framework/Headers" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/MGSwipeTableCell" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/Reachability" -iframework "${PODS_ROOT}/YYKit/Vendor" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/YYKit" OTHER_CFLAGS = $(inherited) -isystem "${PODS_CONFIGURATION_BUILD_DIR}/MBProgressHUD/MBProgressHUD.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/MGSwipeTableCell/MGSwipeTableCell.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/Reachability/Reachability.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/YYKit/YYKit.framework/Headers" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/MBProgressHUD" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/MGSwipeTableCell" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/Reachability" -iframework "${PODS_ROOT}/YYKit/Vendor" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/YYKit"
OTHER_LDFLAGS = $(inherited) -ObjC -l"sqlite3" -l"z" -framework "Accelerate" -framework "AssetsLibrary" -framework "CoreFoundation" -framework "CoreGraphics" -framework "CoreImage" -framework "CoreText" -framework "ImageIO" -framework "MGSwipeTableCell" -framework "MobileCoreServices" -framework "QuartzCore" -framework "Reachability" -framework "SystemConfiguration" -framework "UIKit" -framework "YYKit" OTHER_LDFLAGS = $(inherited) -ObjC -l"sqlite3" -l"z" -framework "Accelerate" -framework "AssetsLibrary" -framework "CoreFoundation" -framework "CoreGraphics" -framework "CoreImage" -framework "CoreText" -framework "ImageIO" -framework "MBProgressHUD" -framework "MGSwipeTableCell" -framework "MobileCoreServices" -framework "QuartzCore" -framework "Reachability" -framework "SystemConfiguration" -framework "UIKit" -framework "YYKit"
PODS_BUILD_DIR = ${BUILD_DIR} PODS_BUILD_DIR = ${BUILD_DIR}
PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
PODS_PODFILE_DIR_PATH = ${SRCROOT}/. PODS_PODFILE_DIR_PATH = ${SRCROOT}/.
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
archiveVersion = 1; archiveVersion = 1;
classes = { classes = {
}; };
objectVersion = 50; objectVersion = 51;
objects = { objects = {
/* Begin PBXBuildFile section */ /* Begin PBXBuildFile section */
...@@ -28,11 +28,6 @@ ...@@ -28,11 +28,6 @@
7390472B2410EACA00181090 /* CODownloadObject.m in Sources */ = {isa = PBXBuildFile; fileRef = 739047172410EACA00181090 /* CODownloadObject.m */; }; 7390472B2410EACA00181090 /* CODownloadObject.m in Sources */ = {isa = PBXBuildFile; fileRef = 739047172410EACA00181090 /* CODownloadObject.m */; };
739047362411099C00181090 /* CODownloadCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 739047352411099C00181090 /* CODownloadCell.m */; }; 739047362411099C00181090 /* CODownloadCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 739047352411099C00181090 /* CODownloadCell.m */; };
7390473924110C5700181090 /* WXCOUtility.m in Sources */ = {isa = PBXBuildFile; fileRef = 7390473824110C5700181090 /* WXCOUtility.m */; }; 7390473924110C5700181090 /* WXCOUtility.m in Sources */ = {isa = PBXBuildFile; fileRef = 7390473824110C5700181090 /* WXCOUtility.m */; };
73904744241132A500181090 /* SVRadialGradientLayer.m in Sources */ = {isa = PBXBuildFile; fileRef = 7390473B241132A500181090 /* SVRadialGradientLayer.m */; };
73904745241132A500181090 /* SVProgressAnimatedView.m in Sources */ = {isa = PBXBuildFile; fileRef = 7390473E241132A500181090 /* SVProgressAnimatedView.m */; };
73904746241132A500181090 /* SVProgressHUD.m in Sources */ = {isa = PBXBuildFile; fileRef = 73904740241132A500181090 /* SVProgressHUD.m */; };
73904747241132A500181090 /* SVIndefiniteAnimatedView.m in Sources */ = {isa = PBXBuildFile; fileRef = 73904741241132A500181090 /* SVIndefiniteAnimatedView.m */; };
73904748241132A500181090 /* SVProgressHUD.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 73904742241132A500181090 /* SVProgressHUD.bundle */; };
739047522411E2C900181090 /* WXDownloadingComponent.h in Headers */ = {isa = PBXBuildFile; fileRef = 739047502411E2C900181090 /* WXDownloadingComponent.h */; settings = {ATTRIBUTES = (Public, ); }; }; 739047522411E2C900181090 /* WXDownloadingComponent.h in Headers */ = {isa = PBXBuildFile; fileRef = 739047502411E2C900181090 /* WXDownloadingComponent.h */; settings = {ATTRIBUTES = (Public, ); }; };
739047552411E2C900181090 /* WXDownloadingComponent.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7390474E2411E2C900181090 /* WXDownloadingComponent.framework */; }; 739047552411E2C900181090 /* WXDownloadingComponent.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7390474E2411E2C900181090 /* WXDownloadingComponent.framework */; };
739047562411E2C900181090 /* WXDownloadingComponent.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 7390474E2411E2C900181090 /* WXDownloadingComponent.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 739047562411E2C900181090 /* WXDownloadingComponent.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 7390474E2411E2C900181090 /* WXDownloadingComponent.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
...@@ -142,15 +137,6 @@ ...@@ -142,15 +137,6 @@
739047352411099C00181090 /* CODownloadCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CODownloadCell.m; sourceTree = "<group>"; }; 739047352411099C00181090 /* CODownloadCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CODownloadCell.m; sourceTree = "<group>"; };
7390473724110C5700181090 /* WXCOUtility.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WXCOUtility.h; sourceTree = "<group>"; }; 7390473724110C5700181090 /* WXCOUtility.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WXCOUtility.h; sourceTree = "<group>"; };
7390473824110C5700181090 /* WXCOUtility.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = WXCOUtility.m; sourceTree = "<group>"; }; 7390473824110C5700181090 /* WXCOUtility.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = WXCOUtility.m; sourceTree = "<group>"; };
7390473B241132A500181090 /* SVRadialGradientLayer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SVRadialGradientLayer.m; sourceTree = "<group>"; };
7390473C241132A500181090 /* SVIndefiniteAnimatedView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SVIndefiniteAnimatedView.h; sourceTree = "<group>"; };
7390473D241132A500181090 /* SVProgressHUD.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SVProgressHUD.h; sourceTree = "<group>"; };
7390473E241132A500181090 /* SVProgressAnimatedView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SVProgressAnimatedView.m; sourceTree = "<group>"; };
7390473F241132A500181090 /* SVRadialGradientLayer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SVRadialGradientLayer.h; sourceTree = "<group>"; };
73904740241132A500181090 /* SVProgressHUD.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SVProgressHUD.m; sourceTree = "<group>"; };
73904741241132A500181090 /* SVIndefiniteAnimatedView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SVIndefiniteAnimatedView.m; sourceTree = "<group>"; };
73904742241132A500181090 /* SVProgressHUD.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = SVProgressHUD.bundle; sourceTree = "<group>"; };
73904743241132A500181090 /* SVProgressAnimatedView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SVProgressAnimatedView.h; sourceTree = "<group>"; };
7390474E2411E2C900181090 /* WXDownloadingComponent.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = WXDownloadingComponent.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 7390474E2411E2C900181090 /* WXDownloadingComponent.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = WXDownloadingComponent.framework; sourceTree = BUILT_PRODUCTS_DIR; };
739047502411E2C900181090 /* WXDownloadingComponent.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WXDownloadingComponent.h; sourceTree = "<group>"; }; 739047502411E2C900181090 /* WXDownloadingComponent.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WXDownloadingComponent.h; sourceTree = "<group>"; };
739047512411E2C900181090 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; 739047512411E2C900181090 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
...@@ -212,7 +198,6 @@ ...@@ -212,7 +198,6 @@
7390469D2410DB7800181090 /* WXDownloadingKit */ = { 7390469D2410DB7800181090 /* WXDownloadingKit */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
7390473A241132A500181090 /* SVProgressHUD */,
739046E92410DFC300181090 /* Downloading */, 739046E92410DFC300181090 /* Downloading */,
7390469E2410DB7800181090 /* AppDelegate.h */, 7390469E2410DB7800181090 /* AppDelegate.h */,
7390469F2410DB7800181090 /* AppDelegate.m */, 7390469F2410DB7800181090 /* AppDelegate.m */,
...@@ -321,22 +306,6 @@ ...@@ -321,22 +306,6 @@
path = View; path = View;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
7390473A241132A500181090 /* SVProgressHUD */ = {
isa = PBXGroup;
children = (
7390473C241132A500181090 /* SVIndefiniteAnimatedView.h */,
73904741241132A500181090 /* SVIndefiniteAnimatedView.m */,
73904743241132A500181090 /* SVProgressAnimatedView.h */,
7390473E241132A500181090 /* SVProgressAnimatedView.m */,
7390473D241132A500181090 /* SVProgressHUD.h */,
73904740241132A500181090 /* SVProgressHUD.m */,
7390473F241132A500181090 /* SVRadialGradientLayer.h */,
7390473B241132A500181090 /* SVRadialGradientLayer.m */,
73904742241132A500181090 /* SVProgressHUD.bundle */,
);
path = SVProgressHUD;
sourceTree = "<group>";
};
7390474F2411E2C900181090 /* WXDownloadingComponent */ = { 7390474F2411E2C900181090 /* WXDownloadingComponent */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
...@@ -469,7 +438,6 @@ ...@@ -469,7 +438,6 @@
739046AE2410DB7900181090 /* LaunchScreen.storyboard in Resources */, 739046AE2410DB7900181090 /* LaunchScreen.storyboard in Resources */,
739046AB2410DB7900181090 /* Assets.xcassets in Resources */, 739046AB2410DB7900181090 /* Assets.xcassets in Resources */,
739046A92410DB7800181090 /* Main.storyboard in Resources */, 739046A92410DB7800181090 /* Main.storyboard in Resources */,
73904748241132A500181090 /* SVProgressHUD.bundle in Resources */,
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
}; };
...@@ -552,17 +520,14 @@ ...@@ -552,17 +520,14 @@
buildActionMask = 2147483647; buildActionMask = 2147483647;
files = ( files = (
7390471B2410EACA00181090 /* BPDownloadContent.m in Sources */, 7390471B2410EACA00181090 /* BPDownloadContent.m in Sources */,
73904747241132A500181090 /* SVIndefiniteAnimatedView.m in Sources */,
739047232410EACA00181090 /* CODownloadManager+Paper.m in Sources */, 739047232410EACA00181090 /* CODownloadManager+Paper.m in Sources */,
7390471D2410EACA00181090 /* BPDownloadManager.m in Sources */, 7390471D2410EACA00181090 /* BPDownloadManager.m in Sources */,
739047272410EACA00181090 /* CODownloadManager+ByURL.m in Sources */, 739047272410EACA00181090 /* CODownloadManager+ByURL.m in Sources */,
739047362411099C00181090 /* CODownloadCell.m in Sources */, 739047362411099C00181090 /* CODownloadCell.m in Sources */,
739047192410EACA00181090 /* BPFileManager.m in Sources */, 739047192410EACA00181090 /* BPFileManager.m in Sources */,
739047202410EACA00181090 /* SyncDownloadHandler.m in Sources */, 739047202410EACA00181090 /* SyncDownloadHandler.m in Sources */,
73904744241132A500181090 /* SVRadialGradientLayer.m in Sources */,
7390471C2410EACA00181090 /* BPNetWorkService.m in Sources */, 7390471C2410EACA00181090 /* BPNetWorkService.m in Sources */,
739046A62410DB7800181090 /* ViewController.m in Sources */, 739046A62410DB7800181090 /* ViewController.m in Sources */,
73904746241132A500181090 /* SVProgressHUD.m in Sources */,
739047292410EACA00181090 /* CODownloadModel.m in Sources */, 739047292410EACA00181090 /* CODownloadModel.m in Sources */,
7390473924110C5700181090 /* WXCOUtility.m in Sources */, 7390473924110C5700181090 /* WXCOUtility.m in Sources */,
7390471A2410EACA00181090 /* BPDownloader.m in Sources */, 7390471A2410EACA00181090 /* BPDownloader.m in Sources */,
...@@ -572,7 +537,6 @@ ...@@ -572,7 +537,6 @@
7390472B2410EACA00181090 /* CODownloadObject.m in Sources */, 7390472B2410EACA00181090 /* CODownloadObject.m in Sources */,
739047182410EACA00181090 /* BPNetWorkConfig.m in Sources */, 739047182410EACA00181090 /* BPNetWorkConfig.m in Sources */,
739046B12410DB7900181090 /* main.m in Sources */, 739046B12410DB7900181090 /* main.m in Sources */,
73904745241132A500181090 /* SVProgressAnimatedView.m in Sources */,
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
}; };
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<key>WXDownloadingKit.xcscheme_^#shared#^_</key> <key>WXDownloadingKit.xcscheme_^#shared#^_</key>
<dict> <dict>
<key>orderHint</key> <key>orderHint</key>
<integer>6</integer> <integer>7</integer>
</dict> </dict>
</dict> </dict>
<key>SuppressBuildableAutocreation</key> <key>SuppressBuildableAutocreation</key>
......
...@@ -17,7 +17,7 @@ NS_ASSUME_NONNULL_BEGIN ...@@ -17,7 +17,7 @@ NS_ASSUME_NONNULL_BEGIN
+ (UIViewController *)getCurrentVC; + (UIViewController *)getCurrentVC;
+ (void)showAlertWithMessage:(NSString *)message; + (void)showHUDWithMessage:(NSString *)message;
+ (NSURL *)urlWithString:(NSString *)string; + (NSURL *)urlWithString:(NSString *)string;
......
...@@ -7,21 +7,12 @@ ...@@ -7,21 +7,12 @@
// //
#import "WXCOUtility.h" #import "WXCOUtility.h"
#import "SVProgressHUD.h"
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#import <YYKit/YYKit.h>
#import <MBProgressHUD/MBProgressHUD.h>
@implementation WXCOUtility @implementation WXCOUtility
+ (void)initialize {
[SVProgressHUD setDefaultMaskType:SVProgressHUDMaskTypeClear];// 整个后面的背景选择
[SVProgressHUD setBackgroundColor:[UIColor colorWithRed:0 green:0 blue:0 alpha:0.6]];// 弹出框颜色
[SVProgressHUD setForegroundColor:[UIColor whiteColor]];// 弹出框内容颜色
[SVProgressHUD setFont:[UIFont systemFontOfSize:13]];//字体
[SVProgressHUD setMinimumDismissTimeInterval:1.5];
[SVProgressHUD setMaximumDismissTimeInterval:3.0];
[SVProgressHUD setDefaultAnimationType:SVProgressHUDAnimationTypeNative];
}
+ (NSString *)getTimeNow { + (NSString *)getTimeNow {
NSDate *date = [NSDate date]; NSDate *date = [NSDate date];
return [self getTimeString:date]; return [self getTimeString:date];
...@@ -71,9 +62,23 @@ ...@@ -71,9 +62,23 @@
return currentVC; return currentVC;
} }
+ (void)showAlertWithMessage:(NSString *)message { + (void)showHUDWithMessage:(NSString *)message {
[SVProgressHUD setCornerRadius:20.0f]; if (!message || [message isKindOfClass:[NSNull class]] || message.length == 0) {
[SVProgressHUD showImage:nil status:message]; return;
}
[self performOptionOnMainQueue:^{
MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:[UIApplication sharedApplication].keyWindow animated:YES];
hud.userInteractionEnabled = NO;
hud.mode = MBProgressHUDModeText;
hud.detailsLabel.text = message;
hud.contentColor = [UIColor whiteColor];
hud.bezelView.color = [UIColor colorWithWhite:0 alpha:0.9f];
hud.detailsLabel.font = [UIFont systemFontOfSize:15.0f];
hud.margin = 10.0f;
hud.removeFromSuperViewOnHide = YES;
[hud hideAnimated:YES afterDelay:2.0f];
}];
} }
+ (NSURL *)urlWithString:(NSString *)string { + (NSURL *)urlWithString:(NSString *)string {
...@@ -90,4 +95,20 @@ ...@@ -90,4 +95,20 @@
return timestamp; return timestamp;
} }
#pragma mark - Main Queue
+ (void)performOptionOnMainQueue:(void (^)(void))block {
if ([NSThread isMainThread]) {
if (block) {
block();
}
} else {
dispatch_async(dispatch_get_main_queue(), ^{
if (block) {
block();
}
});
}
}
@end @end
...@@ -55,14 +55,14 @@ ...@@ -55,14 +55,14 @@
- (void)co_pauseURLDownload:(NSString *)downloadURL { - (void)co_pauseURLDownload:(NSString *)downloadURL {
if (WXCOIsNilOrNull(downloadURL) || downloadURL.length <= 0) { if (WXCOIsNilOrNull(downloadURL) || downloadURL.length <= 0) {
[WXCOUtility showAlertWithMessage:@"抱歉,没有找到下载数据"]; [WXCOUtility showHUDWithMessage:@"抱歉,没有找到下载数据"];
return; return;
} }
downloadURL = [WXCOUtility urlWithString:downloadURL].absoluteString; // 编码处理 downloadURL = [WXCOUtility urlWithString:downloadURL].absoluteString; // 编码处理
CODownloadObject *object = [self co_getDownloadObjectByUrl:downloadURL]; CODownloadObject *object = [self co_getDownloadObjectByUrl:downloadURL];
if (WXCOIsNilOrNull(object) == YES) { if (WXCOIsNilOrNull(object) == YES) {
[WXCOUtility showAlertWithMessage:@"抱歉,没有找到下载数据"]; [WXCOUtility showHUDWithMessage:@"抱歉,没有找到下载数据"];
return; return;
} }
[self co_pauseDownload:[NSMutableArray arrayWithObjects:object, nil]]; [self co_pauseDownload:[NSMutableArray arrayWithObjects:object, nil]];
...@@ -72,14 +72,14 @@ ...@@ -72,14 +72,14 @@
userID:(NSString *)userID userID:(NSString *)userID
withViewController:(UIViewController *)presentVC { withViewController:(UIViewController *)presentVC {
if (WXCOIsNilOrNull(downloadURL) || downloadURL.length <= 0) { if (WXCOIsNilOrNull(downloadURL) || downloadURL.length <= 0) {
[WXCOUtility showAlertWithMessage:@"抱歉,没有找到下载数据"]; [WXCOUtility showHUDWithMessage:@"抱歉,没有找到下载数据"];
return; return;
} }
downloadURL = [WXCOUtility urlWithString:downloadURL].absoluteString; // 编码处理 downloadURL = [WXCOUtility urlWithString:downloadURL].absoluteString; // 编码处理
CODownloadObject *object = [self co_getDownloadObjectByUrl:downloadURL]; CODownloadObject *object = [self co_getDownloadObjectByUrl:downloadURL];
if (WXCOIsNilOrNull(object) == YES) { // 没发现可以删除的对象 if (WXCOIsNilOrNull(object) == YES) { // 没发现可以删除的对象
[WXCOUtility showAlertWithMessage:@"抱歉,没有找到下载数据"]; [WXCOUtility showHUDWithMessage:@"抱歉,没有找到下载数据"];
return; return;
} }
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
userID:(NSString *)userID userID:(NSString *)userID
cancelBlock:(nullable void(^)(BOOL cancel))block { cancelBlock:(nullable void(^)(BOOL cancel))block {
if (paperArray == nil || paperArray.count <= 0) { // 没发现可以删除的对象 if (paperArray == nil || paperArray.count <= 0) { // 没发现可以删除的对象
[WXCOUtility showAlertWithMessage:@"此次操作中没有发现可删除的文件"]; [WXCOUtility showHUDWithMessage:@"此次操作中没有发现可删除的文件"];
if (WXCOIsNilOrNull(block) == NO) { if (WXCOIsNilOrNull(block) == NO) {
block(YES); block(YES);
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
- (void)showNormalDownloadRejectInfo:(NSMutableArray<CODownloadRejectModel *> *)rejectArray - (void)showNormalDownloadRejectInfo:(NSMutableArray<CODownloadRejectModel *> *)rejectArray
withPriorityDownlaod:(BOOL)isPriority { withPriorityDownlaod:(BOOL)isPriority {
if (rejectArray == nil || rejectArray.count <= 0) { if (rejectArray == nil || rejectArray.count <= 0) {
[WXCOUtility showAlertWithMessage:(isPriority == YES ? @"已优先下载" : @"已添加到下载队列,请前往缓存下载查看")]; [WXCOUtility showHUDWithMessage:(isPriority == YES ? @"已优先下载" : @"已添加到下载队列,请前往缓存下载查看")];
return; return;
} }
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
if (model.reason == DownloadRejectReasonEmptyList || if (model.reason == DownloadRejectReasonEmptyList ||
model.reason == DownloadRejectReasonNoNetwork || model.reason == DownloadRejectReasonNoNetwork ||
model.reason == DownloadRejectReasonWWANNetwork) { model.reason == DownloadRejectReasonWWANNetwork) {
[WXCOUtility showAlertWithMessage:model.description]; [WXCOUtility showHUDWithMessage:model.description];
message = nil; message = nil;
break; break;
} else if (model.reason == DownloadRejectReasonEmptyURL || } else if (model.reason == DownloadRejectReasonEmptyURL ||
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
} }
if (WXCOStringIsEmpty(message) == NO) { if (WXCOStringIsEmpty(message) == NO) {
[WXCOUtility showAlertWithMessage:message]; [WXCOUtility showHUDWithMessage:message];
} }
} }
......
...@@ -224,7 +224,7 @@ static CODownloadManager *instance=nil; ...@@ -224,7 +224,7 @@ static CODownloadManager *instance=nil;
- (void)co_pauseDownload:(NSMutableArray <CODownloadObject *>*)objectArray { - (void)co_pauseDownload:(NSMutableArray <CODownloadObject *>*)objectArray {
if (objectArray == nil || objectArray.count <= 0) { // 没发现可以暂停的对象 if (objectArray == nil || objectArray.count <= 0) { // 没发现可以暂停的对象
[WXCOUtility showAlertWithMessage:@"未发现可暂停的下载"]; [WXCOUtility showHUDWithMessage:@"未发现可暂停的下载"];
return; return;
} }
...@@ -239,14 +239,14 @@ static CODownloadManager *instance=nil; ...@@ -239,14 +239,14 @@ static CODownloadManager *instance=nil;
} }
// 如果需要提示 // 如果需要提示
if (toastTip == YES) { if (toastTip == YES) {
[WXCOUtility showAlertWithMessage:@"已暂停下载"]; [WXCOUtility showHUDWithMessage:@"已暂停下载"];
} }
[self co_processDownloadQueue]; // 推动下载队列继续前进,如果有空闲的下载通道,则可以有新的下载进入 [self co_processDownloadQueue]; // 推动下载队列继续前进,如果有空闲的下载通道,则可以有新的下载进入
} }
- (void)co_deleteDownload:(NSMutableArray <CODownloadObject *>*)objectArray userID:(NSString *)userID { - (void)co_deleteDownload:(NSMutableArray <CODownloadObject *>*)objectArray userID:(NSString *)userID {
if (objectArray == nil || objectArray.count <= 0) { // 没发现可以删除的对象 if (objectArray == nil || objectArray.count <= 0) { // 没发现可以删除的对象
[WXCOUtility showAlertWithMessage:@"未发现可删除的下载"]; [WXCOUtility showHUDWithMessage:@"未发现可删除的下载"];
return; return;
} }
...@@ -264,7 +264,7 @@ static CODownloadManager *instance=nil; ...@@ -264,7 +264,7 @@ static CODownloadManager *instance=nil;
// 如果需要提示 // 如果需要提示
if (toastTip == YES) { if (toastTip == YES) {
[WXCOUtility showAlertWithMessage:@"操作成功"]; [WXCOUtility showHUDWithMessage:@"操作成功"];
} }
[self co_processDownloadQueue]; // 推动下载队列继续前进,如果有空闲的下载通道,则可以有新的下载进入 [self co_processDownloadQueue]; // 推动下载队列继续前进,如果有空闲的下载通道,则可以有新的下载进入
[[NSNotificationCenter defaultCenter] postNotificationName:NotiUpdateDownloadInfo object:nil]; [[NSNotificationCenter defaultCenter] postNotificationName:NotiUpdateDownloadInfo object:nil];
......
//
// SVIndefiniteAnimatedView.h
// SVProgressHUD, https://github.com/SVProgressHUD/SVProgressHUD
//
// Copyright (c) 2014-2018 Guillaume Campagna. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface SVIndefiniteAnimatedView : UIView
@property (nonatomic, assign) CGFloat strokeThickness;
@property (nonatomic, assign) CGFloat radius;
@property (nonatomic, strong) UIColor *strokeColor;
@end
//
// SVIndefiniteAnimatedView.m
// SVProgressHUD, https://github.com/SVProgressHUD/SVProgressHUD
//
// Copyright (c) 2014-2018 Guillaume Campagna. All rights reserved.
//
#import "SVIndefiniteAnimatedView.h"
#import "SVProgressHUD.h"
@interface SVIndefiniteAnimatedView ()
@property (nonatomic, strong) CAShapeLayer *indefiniteAnimatedLayer;
@end
@implementation SVIndefiniteAnimatedView
- (void)willMoveToSuperview:(UIView*)newSuperview {
if (newSuperview) {
[self layoutAnimatedLayer];
} else {
[_indefiniteAnimatedLayer removeFromSuperlayer];
_indefiniteAnimatedLayer = nil;
}
}
- (void)layoutAnimatedLayer {
CALayer *layer = self.indefiniteAnimatedLayer;
[self.layer addSublayer:layer];
CGFloat widthDiff = CGRectGetWidth(self.bounds) - CGRectGetWidth(layer.bounds);
CGFloat heightDiff = CGRectGetHeight(self.bounds) - CGRectGetHeight(layer.bounds);
layer.position = CGPointMake(CGRectGetWidth(self.bounds) - CGRectGetWidth(layer.bounds) / 2 - widthDiff / 2, CGRectGetHeight(self.bounds) - CGRectGetHeight(layer.bounds) / 2 - heightDiff / 2);
}
- (CAShapeLayer*)indefiniteAnimatedLayer {
if(!_indefiniteAnimatedLayer) {
CGPoint arcCenter = CGPointMake(self.radius+self.strokeThickness/2+5, self.radius+self.strokeThickness/2+5);
UIBezierPath* smoothedPath = [UIBezierPath bezierPathWithArcCenter:arcCenter radius:self.radius startAngle:(CGFloat) (M_PI*3/2) endAngle:(CGFloat) (M_PI/2+M_PI*5) clockwise:YES];
_indefiniteAnimatedLayer = [CAShapeLayer layer];
_indefiniteAnimatedLayer.contentsScale = [[UIScreen mainScreen] scale];
_indefiniteAnimatedLayer.frame = CGRectMake(0.0f, 0.0f, arcCenter.x*2, arcCenter.y*2);
_indefiniteAnimatedLayer.fillColor = [UIColor clearColor].CGColor;
_indefiniteAnimatedLayer.strokeColor = self.strokeColor.CGColor;
_indefiniteAnimatedLayer.lineWidth = self.strokeThickness;
_indefiniteAnimatedLayer.lineCap = kCALineCapRound;
_indefiniteAnimatedLayer.lineJoin = kCALineJoinBevel;
_indefiniteAnimatedLayer.path = smoothedPath.CGPath;
CALayer *maskLayer = [CALayer layer];
NSBundle *bundle = [NSBundle bundleForClass:[SVProgressHUD class]];
NSURL *url = [bundle URLForResource:@"SVProgressHUD" withExtension:@"bundle"];
NSBundle *imageBundle = [NSBundle bundleWithURL:url];
NSString *path = [imageBundle pathForResource:@"angle-mask" ofType:@"png"];
maskLayer.contents = (__bridge id)[[UIImage imageWithContentsOfFile:path] CGImage];
maskLayer.frame = _indefiniteAnimatedLayer.bounds;
_indefiniteAnimatedLayer.mask = maskLayer;
NSTimeInterval animationDuration = 1;
CAMediaTimingFunction *linearCurve = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionLinear];
CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@"transform.rotation"];
animation.fromValue = (id) 0;
animation.toValue = @(M_PI*2);
animation.duration = animationDuration;
animation.timingFunction = linearCurve;
animation.removedOnCompletion = NO;
animation.repeatCount = INFINITY;
animation.fillMode = kCAFillModeForwards;
animation.autoreverses = NO;
[_indefiniteAnimatedLayer.mask addAnimation:animation forKey:@"rotate"];
CAAnimationGroup *animationGroup = [CAAnimationGroup animation];
animationGroup.duration = animationDuration;
animationGroup.repeatCount = INFINITY;
animationGroup.removedOnCompletion = NO;
animationGroup.timingFunction = linearCurve;
CABasicAnimation *strokeStartAnimation = [CABasicAnimation animationWithKeyPath:@"strokeStart"];
strokeStartAnimation.fromValue = @0.015;
strokeStartAnimation.toValue = @0.515;
CABasicAnimation *strokeEndAnimation = [CABasicAnimation animationWithKeyPath:@"strokeEnd"];
strokeEndAnimation.fromValue = @0.485;
strokeEndAnimation.toValue = @0.985;
animationGroup.animations = @[strokeStartAnimation, strokeEndAnimation];
[_indefiniteAnimatedLayer addAnimation:animationGroup forKey:@"progress"];
}
return _indefiniteAnimatedLayer;
}
- (void)setFrame:(CGRect)frame {
if(!CGRectEqualToRect(frame, super.frame)) {
[super setFrame:frame];
if(self.superview) {
[self layoutAnimatedLayer];
}
}
}
- (void)setRadius:(CGFloat)radius {
if(radius != _radius) {
_radius = radius;
[_indefiniteAnimatedLayer removeFromSuperlayer];
_indefiniteAnimatedLayer = nil;
if(self.superview) {
[self layoutAnimatedLayer];
}
}
}
- (void)setStrokeColor:(UIColor*)strokeColor {
_strokeColor = strokeColor;
_indefiniteAnimatedLayer.strokeColor = strokeColor.CGColor;
}
- (void)setStrokeThickness:(CGFloat)strokeThickness {
_strokeThickness = strokeThickness;
_indefiniteAnimatedLayer.lineWidth = _strokeThickness;
}
- (CGSize)sizeThatFits:(CGSize)size {
return CGSizeMake((self.radius+self.strokeThickness/2+5)*2, (self.radius+self.strokeThickness/2+5)*2);
}
@end
//
// SVProgressAnimatedView.h
// SVProgressHUD, https://github.com/SVProgressHUD/SVProgressHUD
//
// Copyright (c) 2017-2018 Tobias Tiemerding. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface SVProgressAnimatedView : UIView
@property (nonatomic, assign) CGFloat radius;
@property (nonatomic, assign) CGFloat strokeThickness;
@property (nonatomic, strong) UIColor *strokeColor;
@property (nonatomic, assign) CGFloat strokeEnd;
@end
//
// SVProgressAnimatedView.m
// SVProgressHUD, https://github.com/SVProgressHUD/SVProgressHUD
//
// Copyright (c) 2017-2018 Tobias Tiemerding. All rights reserved.
//
#import "SVProgressAnimatedView.h"
@interface SVProgressAnimatedView ()
@property (nonatomic, strong) CAShapeLayer *ringAnimatedLayer;
@end
@implementation SVProgressAnimatedView
- (void)willMoveToSuperview:(UIView*)newSuperview {
if (newSuperview) {
[self layoutAnimatedLayer];
} else {
[_ringAnimatedLayer removeFromSuperlayer];
_ringAnimatedLayer = nil;
}
}
- (void)layoutAnimatedLayer {
CALayer *layer = self.ringAnimatedLayer;
[self.layer addSublayer:layer];
CGFloat widthDiff = CGRectGetWidth(self.bounds) - CGRectGetWidth(layer.bounds);
CGFloat heightDiff = CGRectGetHeight(self.bounds) - CGRectGetHeight(layer.bounds);
layer.position = CGPointMake(CGRectGetWidth(self.bounds) - CGRectGetWidth(layer.bounds) / 2 - widthDiff / 2, CGRectGetHeight(self.bounds) - CGRectGetHeight(layer.bounds) / 2 - heightDiff / 2);
}
- (CAShapeLayer*)ringAnimatedLayer {
if(!_ringAnimatedLayer) {
CGPoint arcCenter = CGPointMake(self.radius+self.strokeThickness/2+5, self.radius+self.strokeThickness/2+5);
UIBezierPath* smoothedPath = [UIBezierPath bezierPathWithArcCenter:arcCenter radius:self.radius startAngle:(CGFloat)-M_PI_2 endAngle:(CGFloat) (M_PI + M_PI_2) clockwise:YES];
_ringAnimatedLayer = [CAShapeLayer layer];
_ringAnimatedLayer.contentsScale = [[UIScreen mainScreen] scale];
_ringAnimatedLayer.frame = CGRectMake(0.0f, 0.0f, arcCenter.x*2, arcCenter.y*2);
_ringAnimatedLayer.fillColor = [UIColor clearColor].CGColor;
_ringAnimatedLayer.strokeColor = self.strokeColor.CGColor;
_ringAnimatedLayer.lineWidth = self.strokeThickness;
_ringAnimatedLayer.lineCap = kCALineCapRound;
_ringAnimatedLayer.lineJoin = kCALineJoinBevel;
_ringAnimatedLayer.path = smoothedPath.CGPath;
}
return _ringAnimatedLayer;
}
- (void)setFrame:(CGRect)frame {
if(!CGRectEqualToRect(frame, super.frame)) {
[super setFrame:frame];
if(self.superview) {
[self layoutAnimatedLayer];
}
}
}
- (void)setRadius:(CGFloat)radius {
if(radius != _radius) {
_radius = radius;
[_ringAnimatedLayer removeFromSuperlayer];
_ringAnimatedLayer = nil;
if(self.superview) {
[self layoutAnimatedLayer];
}
}
}
- (void)setStrokeColor:(UIColor*)strokeColor {
_strokeColor = strokeColor;
_ringAnimatedLayer.strokeColor = strokeColor.CGColor;
}
- (void)setStrokeThickness:(CGFloat)strokeThickness {
_strokeThickness = strokeThickness;
_ringAnimatedLayer.lineWidth = _strokeThickness;
}
- (void)setStrokeEnd:(CGFloat)strokeEnd {
_strokeEnd = strokeEnd;
_ringAnimatedLayer.strokeEnd = _strokeEnd;
}
- (CGSize)sizeThatFits:(CGSize)size {
return CGSizeMake((self.radius+self.strokeThickness/2+5)*2, (self.radius+self.strokeThickness/2+5)*2);
}
@end
//
// SVRadialGradientLayer.h
// SVProgressHUD, https://github.com/SVProgressHUD/SVProgressHUD
//
// Copyright (c) 2014-2018 Tobias Tiemerding. All rights reserved.
//
#import <QuartzCore/QuartzCore.h>
@interface SVRadialGradientLayer : CALayer
@property (nonatomic) CGPoint gradientCenter;
@end
//
// SVRadialGradientLayer.m
// SVProgressHUD, https://github.com/SVProgressHUD/SVProgressHUD
//
// Copyright (c) 2014-2018 Tobias Tiemerding. All rights reserved.
//
#import "SVRadialGradientLayer.h"
@implementation SVRadialGradientLayer
- (void)drawInContext:(CGContextRef)context {
size_t locationsCount = 2;
CGFloat locations[2] = {0.0f, 1.0f};
CGFloat colors[8] = {0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.75f};
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
CGGradientRef gradient = CGGradientCreateWithColorComponents(colorSpace, colors, locations, locationsCount);
CGColorSpaceRelease(colorSpace);
float radius = MIN(self.bounds.size.width , self.bounds.size.height);
CGContextDrawRadialGradient (context, gradient, self.gradientCenter, 0, self.gradientCenter, radius, kCGGradientDrawsAfterEndLocation);
CGGradientRelease(gradient);
}
@end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment