Skip to content

Commit

Permalink
update to v1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ksysdkci committed Nov 1, 2017
1 parent 598a522 commit 1bf34a9
Show file tree
Hide file tree
Showing 48 changed files with 819 additions and 553 deletions.
379 changes: 379 additions & 0 deletions demo/KSYHTTPCacheDemo.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0900"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "B0E45A631DD59AC600D48A5E"
BuildableName = "KSYHTTPCacheDemo.app"
BlueprintName = "KSYHTTPCacheDemo"
ReferencedContainer = "container:KSYHTTPCacheDemo.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "B0E45A631DD59AC600D48A5E"
BuildableName = "KSYHTTPCacheDemo.app"
BlueprintName = "KSYHTTPCacheDemo"
ReferencedContainer = "container:KSYHTTPCacheDemo.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
language = ""
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "B0E45A631DD59AC600D48A5E"
BuildableName = "KSYHTTPCacheDemo.app"
BlueprintName = "KSYHTTPCacheDemo"
ReferencedContainer = "container:KSYHTTPCacheDemo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "B0E45A631DD59AC600D48A5E"
BuildableName = "KSYHTTPCacheDemo.app"
BlueprintName = "KSYHTTPCacheDemo"
ReferencedContainer = "container:KSYHTTPCacheDemo.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#import "AppDelegate.h"
#import <KSYHTTPCache/KSYHTTPProxyService.h>
#import <Bugly/Bugly.h>

@interface AppDelegate ()
@property (nonatomic, strong) NSTimer *timer;
Expand All @@ -16,8 +17,14 @@ @interface AppDelegate ()
@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

BuglyConfig * cfg = [[BuglyConfig alloc] init];
cfg.channel = @"public";
[Bugly startWithAppId:@"2735967241" config:cfg];

// Override point for customization after application launch.
[[KSYHTTPProxyService sharedInstance] setCacheRoot:[NSTemporaryDirectory() stringByAppendingPathComponent:@"cachetest"]];
// [KSYHTTPProxyService sharedInstance].ignoreURLParamter = YES; //不设置时为NO,如果要忽略http url参数,将此属性设置为YES
[[KSYHTTPProxyService sharedInstance] startServer];

// //设置请求头
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions demo/demo/Info.plist → demo/KSYHTTPCacheDemo/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>1.2.2</string>
<key>CFBundleVersion</key>
<string>1</string>
<string>1.2.2.1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSAppTransportSecurity</key>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ - (void)viewDidLoad {
-(NSMutableArray*)getNameAndProxyUrl:(NSString*)url {
NSMutableArray* array = [[NSMutableArray alloc] init];
[array addObject:[url lastPathComponent]];
//[array addObject: [[KSYHTTPProxyService sharedInstance] getProxyUrl:url]];
[array addObject: [[KSYHTTPProxyService sharedInstance] getProxyUrl:url newCache:YES]];
[array addObject: [[KSYHTTPProxyService sharedInstance] getProxyUrl:url]];
return array;
}

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

#import "ShowFileDownloader.h"
#import <kSYHTTPCache/KSYFileDownloader.h>
#import <KSYHTTPCache/KSYFileDownloader.h>
#import <UIKit/UIKit.h>

@interface ShowFileDownloader ()
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 6 additions & 5 deletions demo/Podfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Uncomment this line to define a global platform for your project
platform :ios, '8.0'
platform :ios, '7.0'
inhibit_all_warnings!

target 'demo' do
target 'KSYHTTPCacheDemo' do
pod 'Bugly'

pod 'ksyhttpcache', :path => '../'
pod 'KSYMediaPlayer_iOS'
pod 'ksyhttpcache'
end

28 changes: 0 additions & 28 deletions demo/Podfile.lock

This file was deleted.

Loading

0 comments on commit 1bf34a9

Please sign in to comment.