Skip to content

Commit

Permalink
Merge pull request #194 from longbai/test_update
Browse files Browse the repository at this point in the history
proj update
  • Loading branch information
longbai authored Sep 8, 2016
2 parents e4b93b7 + 9bf29ad commit ad2c730
Show file tree
Hide file tree
Showing 9 changed files with 121 additions and 113 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
language: objective-c
osx_image: xcode7

before_install:
- rvm install 2.3.1
- rvm use 2.3.1
Expand All @@ -8,10 +9,13 @@ before_install:
- gem install cocoapods --pre
- pod --version
- pod repo remove master
- rm -rf ~/.cocoapods
- pod setup
- pod install --verbose --no-repo-update

before_script:
- export QINIU_TEST_ENV="travis"

script:
- xctool -workspace QiniuSDK.xcworkspace -scheme QiniuSDK_iOS -sdk iphonesimulator -configuration Release test -test-sdk iphonesimulator9.0 -freshInstall -freshSimulator
- xctool -workspace QiniuSDK.xcworkspace -scheme QiniuSDK_Mac -sdk macosx -configuration Release test -test-sdk macosx
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#Changelog

## 7.1.1 (2016-09-08)
## 改变
* 修正 happydns 调用函数

## 7.1.0 (2016-07-04)
## 改变
* 依赖升级到AFNetworking 到 3.x
Expand Down
22 changes: 11 additions & 11 deletions Podfile
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
source 'https://github.com/CocoaPods/Specs.git'

def shared_dependencies
pod "AFNetworking", "~> 3"
pod "HappyDNS", ">= 0.3"
pod 'AFNetworking', '~> 3'
pod 'HappyDNS', '>= 0.3'
end

def test_dependencies
pod "AGAsyncTestHelper/Shorthand"
pod 'AGAsyncTestHelper/Shorthand'
end

target "QiniuSDK_iOS" do
platform :ios, "7.0"
target 'QiniuSDK_iOS' do
platform :ios, '7.0'
shared_dependencies
end

target "QiniuSDK_iOSTests" do
platform :ios, "7.0"
target 'QiniuSDK_iOSTests' do
platform :ios, '7.0'
shared_dependencies
test_dependencies
end

target "QiniuSDK_Mac" do
platform :osx, "10.9"
target 'QiniuSDK_Mac' do
platform :osx, '10.9'
shared_dependencies
end

target "QiniuSDK_MacTests" do
platform :osx, "10.9"
target 'QiniuSDK_MacTests' do
platform :osx, '10.9'
shared_dependencies
test_dependencies
end
20 changes: 10 additions & 10 deletions Qiniu.podspec
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
Pod::Spec.new do |s|
s.name = 'Qiniu'
s.version = "7.1.0.1"
s.summary = "Qiniu Resource Storage SDK for iOS and Mac"
s.homepage = "https://github.com/qiniu/objc-sdk"
s.social_media_url = "http://weibo.com/qiniutek"
s.version = '7.1.1'
s.summary = 'Qiniu Resource Storage SDK for iOS and Mac'
s.homepage = 'https://github.com/qiniu/objc-sdk'
s.social_media_url = 'http://weibo.com/qiniutek'
s.author = "Qiniu => [email protected]"
s.source = {:git => "https://github.com/qiniu/objc-sdk.git", :tag => "v#{s.version}"}
s.source = {:git => 'https://github.com/qiniu/objc-sdk.git', :tag => "v#{s.version}"}

s.ios.deployment_target = "7.0"
s.osx.deployment_target = "10.9"
s.ios.deployment_target = '7.0'
s.osx.deployment_target = '10.9'

s.source_files = "QiniuSDK/**/*.{h,m}"
s.requires_arc = true
s.libraries = "z"
s.dependency "AFNetworking", "~> 3"
s.dependency "HappyDNS", "~> 0.3"
s.libraries = 'z'
s.dependency 'AFNetworking', '~> 3'
s.dependency 'HappyDNS', '~> 0.3'
s.license = { :type => "MIT", :text => <<-LICENSE
The MIT License (MIT)
Expand Down
174 changes: 87 additions & 87 deletions QiniuSDK.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion QiniuSDK/Common/QNVersion.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
/**
* sdk 版本
*/
static const NSString *kQiniuVersion = @"7.1.0";
static const NSString *kQiniuVersion = @"7.1.1";
4 changes: 2 additions & 2 deletions QiniuSDK/Storage/QNConfiguration.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ static void addZoneToDns(QNZone *zone, QNDnsManager *dns) {
QNDnsManager *d = builder.dns;
if (d == nil) {
id<QNResolverDelegate> r1 = [QNResolver systemResolver];
id<QNResolverDelegate> r2 = [[QNResolver alloc] initWithAddres:@"119.29.29.29"];
id<QNResolverDelegate> r3 = [[QNResolver alloc] initWithAddres:@"114.114.115.115"];
id<QNResolverDelegate> r2 = [[QNResolver alloc] initWithAddress:@"119.29.29.29"];
id<QNResolverDelegate> r3 = [[QNResolver alloc] initWithAddress:@"114.114.115.115"];
d = [[QNDnsManager alloc] init:[NSArray arrayWithObjects:r1, r2, r3, nil] networkInfo:[QNNetworkInfo normal]];
}
return d;
Expand Down
2 changes: 1 addition & 1 deletion QiniuSDKTests/QNFormUploadTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ - (void)testDnsHosts {
__block QNResponseInfo *testInfo = nil;
__block NSDictionary *testResp = nil;
__block NSString *key = nil;
QNResolver *resolver = [[QNResolver alloc] initWithAddres:@"114.114.115.115"];
QNResolver *resolver = [[QNResolver alloc] initWithAddress:@"114.114.115.115"];
QNDnsManager *dns = [[QNDnsManager alloc] init:[NSArray arrayWithObject:resolver] networkInfo:[QNNetworkInfo normal]];
QNConfiguration *config = [QNConfiguration build:^(QNConfigurationBuilder *builder) {
NSArray *ips = [QNZone zone0].up.ips;
Expand Down
2 changes: 1 addition & 1 deletion QiniuSDKTests/QNSessionTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ - (void)testUrlConvert {
- (void)testPostIp {
__block QNResponseInfo *testInfo = nil;
NSData *data = [@"Hello, World!" dataUsingEncoding:NSUTF8StringEncoding];
QNResolver *resolver = [[QNResolver alloc] initWithAddres:@"114.114.115.115"];
QNResolver *resolver = [[QNResolver alloc] initWithAddress:@"114.114.115.115"];
QNDnsManager *dns = [[QNDnsManager alloc] init:[NSArray arrayWithObject:resolver] networkInfo:[QNNetworkInfo normal]];
[dns putHosts:@"upnonono.qiniu.com" ip:[QNZone zone0].up.ips[0]];
QNSessionManager *httpManager = [[QNSessionManager alloc] initWithProxy:nil timeout:60 urlConverter:nil dns:dns];
Expand Down

0 comments on commit ad2c730

Please sign in to comment.