Skip to content

Commit 71fa6e1

Browse files
authored
Merge pull request #403 from YangSen-qn/develop
support doh & server config
2 parents 6999cb4 + 7728905 commit 71fa6e1

File tree

101 files changed

+3095
-1053
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+3095
-1053
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#Changelog
2+
## 8.4.0(2021-10-15)
3+
## 优化
4+
- Dns 预解析支持 Doh
5+
- 优化 Dns 劫持处理
6+
- 优化 Dns 预取结果分组
7+
28
## 8.3.2(2021-09-3)
39
## 优化
410
- 处理 PHAssert 偶现上传失败问题

Podfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
source 'https://github.com/CocoaPods/Specs.git'
22

33
def shared_dependencies
4-
pod 'HappyDNS', '0.3.17'
4+
pod 'HappyDNS', '1.0.0'
5+
# pod 'HappyDNS', :path => '../HappyDns_iOS'
56
end
67

78
def test_dependencies

Qiniu.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'Qiniu'
3-
s.version = '8.3.2'
3+
s.version = '8.4.0'
44
s.summary = 'Qiniu Resource Storage SDK for iOS and Mac'
55
s.homepage = 'https://github.com/qiniu/objc-sdk'
66
s.social_media_url = 'http://weibo.com/qiniutek'
@@ -13,7 +13,7 @@ Pod::Spec.new do |s|
1313
s.source_files = "QiniuSDK/**/*.{h,m}"
1414
s.requires_arc = true
1515
s.libraries = 'z'
16-
s.dependency 'HappyDNS', '~> 0.3.17'
16+
s.dependency 'HappyDNS', '~> 1.0.0'
1717
s.license = { :type => "MIT", :text => <<-LICENSE
1818
The MIT License (MIT)
1919

QiniuDemo/Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ source 'https://github.com/CocoaPods/Specs.git'
33
target "QiniuDemo" do
44
platform :ios, "10.0"
55

6-
# pod 'Qiniu', '~> 8.1.1'
6+
# pod 'Qiniu', '~> 8.3.2'
77
pod 'Qiniu',:path => '../'
88
end
99

QiniuDemo/QiniuDemo.xcodeproj/project.pbxproj

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
31304CA325628E97001034D2 /* image.png in Resources */ = {isa = PBXBuildFile; fileRef = 31304CA025628E97001034D2 /* image.png */; };
1313
31304CA425628E97001034D2 /* UploadResource_49M.zip in Resources */ = {isa = PBXBuildFile; fileRef = 31304CA125628E97001034D2 /* UploadResource_49M.zip */; };
1414
31304CA525628E97001034D2 /* image.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 31304CA225628E97001034D2 /* image.jpg */; };
15-
3152B913268C4EC3004705AA /* UploadResource_1.44G.zip in Resources */ = {isa = PBXBuildFile; fileRef = 3152B912268C4EC3004705AA /* UploadResource_1.44G.zip */; };
16-
318191AB2531516F00D18536 /* UploadResource.dmg in Resources */ = {isa = PBXBuildFile; fileRef = 318191AA2531516F00D18536 /* UploadResource.dmg */; };
15+
318D377527192578004AA91F /* UploadResource_9M.zip in Resources */ = {isa = PBXBuildFile; fileRef = 318D377427192577004AA91F /* UploadResource_9M.zip */; };
1716
31B188E426C365F0006046CC /* UploadResource_6M.zip in Resources */ = {isa = PBXBuildFile; fileRef = 31B188E326C365F0006046CC /* UploadResource_6M.zip */; };
1817
93D230241C86D7F700434F6D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 93D230231C86D7F700434F6D /* main.m */; };
1918
93D230271C86D7F700434F6D /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 93D230261C86D7F700434F6D /* AppDelegate.m */; };
@@ -48,10 +47,9 @@
4847
31304CA025628E97001034D2 /* image.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = image.png; sourceTree = "<group>"; };
4948
31304CA125628E97001034D2 /* UploadResource_49M.zip */ = {isa = PBXFileReference; lastKnownFileType = archive.zip; path = UploadResource_49M.zip; sourceTree = "<group>"; };
5049
31304CA225628E97001034D2 /* image.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = image.jpg; sourceTree = "<group>"; };
51-
3152B912268C4EC3004705AA /* UploadResource_1.44G.zip */ = {isa = PBXFileReference; lastKnownFileType = archive.zip; path = UploadResource_1.44G.zip; sourceTree = "<group>"; };
52-
318191AA2531516F00D18536 /* UploadResource.dmg */ = {isa = PBXFileReference; lastKnownFileType = file; path = UploadResource.dmg; sourceTree = "<group>"; };
5350
318191AF25315F3500D18536 /* Configure.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Configure.h; sourceTree = "<group>"; };
5451
3189882026469145003CCA68 /* QiniuDemo.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = QiniuDemo.entitlements; sourceTree = "<group>"; };
52+
318D377427192577004AA91F /* UploadResource_9M.zip */ = {isa = PBXFileReference; lastKnownFileType = archive.zip; path = UploadResource_9M.zip; sourceTree = "<group>"; };
5553
31B188E326C365F0006046CC /* UploadResource_6M.zip */ = {isa = PBXFileReference; lastKnownFileType = archive.zip; path = UploadResource_6M.zip; sourceTree = "<group>"; };
5654
6B9BC5A8D93F988C1240E05F /* libPods-QiniuDemo.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-QiniuDemo.a"; sourceTree = BUILT_PRODUCTS_DIR; };
5755
93D2301F1C86D7F700434F6D /* QiniuDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = QiniuDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -105,13 +103,12 @@
105103
318191A92531516F00D18536 /* DemoTestResource */ = {
106104
isa = PBXGroup;
107105
children = (
106+
318D377427192577004AA91F /* UploadResource_9M.zip */,
108107
31B188E326C365F0006046CC /* UploadResource_6M.zip */,
109-
3152B912268C4EC3004705AA /* UploadResource_1.44G.zip */,
110108
31304CA225628E97001034D2 /* image.jpg */,
111109
31304CA025628E97001034D2 /* image.png */,
112110
31304CA125628E97001034D2 /* UploadResource_49M.zip */,
113111
318191AF25315F3500D18536 /* Configure.h */,
114-
318191AA2531516F00D18536 /* UploadResource.dmg */,
115112
);
116113
path = DemoTestResource;
117114
sourceTree = "<group>";
@@ -308,10 +305,9 @@
308305
isa = PBXResourcesBuildPhase;
309306
buildActionMask = 2147483647;
310307
files = (
308+
318D377527192578004AA91F /* UploadResource_9M.zip in Resources */,
311309
93D230321C86D7F700434F6D /* LaunchScreen.storyboard in Resources */,
312-
318191AB2531516F00D18536 /* UploadResource.dmg in Resources */,
313310
93D2302F1C86D7F700434F6D /* Assets.xcassets in Resources */,
314-
3152B913268C4EC3004705AA /* UploadResource_1.44G.zip in Resources */,
315311
93D2302D1C86D7F700434F6D /* Main.storyboard in Resources */,
316312
31304CA525628E97001034D2 /* image.jpg in Resources */,
317313
31B188E426C365F0006046CC /* UploadResource_6M.zip in Resources */,

QiniuDemo/QiniuDemo/Base.lproj/Main.storyboard

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="15705" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="ICJ-el-kyi">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="18122" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="ICJ-el-kyi">
33
<device id="retina6_1" orientation="portrait" appearance="light"/>
44
<dependencies>
55
<deployment version="2048" identifier="iOS"/>
6-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15706"/>
6+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="18093"/>
77
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
88
</dependencies>
99
<scenes>
@@ -35,8 +35,8 @@
3535
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
3636
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
3737
<subviews>
38-
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="f8h-Tl-cef">
39-
<rect key="frame" x="70" y="582" width="274" height="50"/>
38+
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="f8h-Tl-cef">
39+
<rect key="frame" x="41.5" y="582" width="331" height="50"/>
4040
<color key="backgroundColor" red="0.0" green="0.50196081400000003" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
4141
<constraints>
4242
<constraint firstAttribute="height" constant="50" id="kgT-aZ-IJU"/>
@@ -50,7 +50,7 @@
5050
</connections>
5151
</button>
5252
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Psn-X6-kmD">
53-
<rect key="frame" x="70" y="662" width="274" height="50"/>
53+
<rect key="frame" x="41.5" y="662" width="331" height="50"/>
5454
<color key="backgroundColor" red="0.0" green="0.50196081400000003" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
5555
<constraints>
5656
<constraint firstAttribute="height" constant="50" id="pu0-Bk-3Gw"/>
@@ -64,29 +64,29 @@
6464
</connections>
6565
</button>
6666
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="PUC-cw-bND">
67-
<rect key="frame" x="20" y="200" width="374" height="249.5"/>
67+
<rect key="frame" x="20" y="202" width="374" height="249.5"/>
6868
<constraints>
6969
<constraint firstAttribute="width" secondItem="PUC-cw-bND" secondAttribute="height" multiplier="3:2" id="C8p-6F-bXA"/>
7070
</constraints>
7171
</imageView>
7272
<progressView opaque="NO" contentMode="scaleToFill" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="F9t-wS-hHW">
73-
<rect key="frame" x="20" y="168" width="374" height="2"/>
73+
<rect key="frame" x="20" y="168" width="374" height="4"/>
7474
</progressView>
7575
</subviews>
7676
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
7777
<constraints>
78-
<constraint firstItem="f8h-Tl-cef" firstAttribute="leading" secondItem="UJS-dn-gjX" secondAttribute="leadingMargin" constant="50" id="93T-X6-QAQ"/>
79-
<constraint firstAttribute="trailingMargin" secondItem="Psn-X6-kmD" secondAttribute="trailing" constant="50" id="MQh-ht-UJM"/>
78+
<constraint firstItem="Psn-X6-kmD" firstAttribute="centerX" secondItem="UJS-dn-gjX" secondAttribute="centerX" id="OgR-VO-cGg"/>
79+
<constraint firstItem="Psn-X6-kmD" firstAttribute="width" secondItem="f8h-Tl-cef" secondAttribute="width" id="PPD-zp-rom"/>
8080
<constraint firstItem="F9t-wS-hHW" firstAttribute="trailing" secondItem="PUC-cw-bND" secondAttribute="trailing" id="Pma-gi-Cbz"/>
8181
<constraint firstItem="PUC-cw-bND" firstAttribute="leading" secondItem="UJS-dn-gjX" secondAttribute="leadingMargin" id="VV2-Av-yVE"/>
8282
<constraint firstItem="EaF-tv-BfV" firstAttribute="top" secondItem="Psn-X6-kmD" secondAttribute="bottom" constant="150" id="WZ7-eI-2en"/>
83+
<constraint firstItem="f8h-Tl-cef" firstAttribute="width" secondItem="UJS-dn-gjX" secondAttribute="width" multiplier="0.8" id="Yv6-dt-1KD"/>
8384
<constraint firstItem="PUC-cw-bND" firstAttribute="top" secondItem="F9t-wS-hHW" secondAttribute="bottom" constant="30" id="adz-zG-8Ce"/>
8485
<constraint firstItem="F9t-wS-hHW" firstAttribute="top" secondItem="TZn-al-ylh" secondAttribute="bottom" constant="80" id="f1f-t0-LdB"/>
8586
<constraint firstItem="F9t-wS-hHW" firstAttribute="leading" secondItem="PUC-cw-bND" secondAttribute="leading" id="jiN-B0-534"/>
8687
<constraint firstAttribute="trailingMargin" secondItem="PUC-cw-bND" secondAttribute="trailing" id="k8E-N3-8Zw"/>
87-
<constraint firstItem="Psn-X6-kmD" firstAttribute="leading" secondItem="UJS-dn-gjX" secondAttribute="leadingMargin" constant="50" id="ot8-YA-bd8"/>
88+
<constraint firstItem="f8h-Tl-cef" firstAttribute="centerX" secondItem="UJS-dn-gjX" secondAttribute="centerX" id="pzZ-Ph-Td6"/>
8889
<constraint firstItem="Psn-X6-kmD" firstAttribute="top" secondItem="f8h-Tl-cef" secondAttribute="bottom" constant="30" id="sEq-Qn-Fuf"/>
89-
<constraint firstAttribute="trailingMargin" secondItem="f8h-Tl-cef" secondAttribute="trailing" constant="50" id="uUk-RB-biH"/>
9090
</constraints>
9191
</view>
9292
<tabBarItem key="tabBarItem" title="图片上传" id="NUn-lf-ojx"/>

0 commit comments

Comments
 (0)