Skip to content

Commit a71eed1

Browse files
authored
Merge pull request #407 from YangSen-qn/develop
support SPM
2 parents aa63674 + 411254f commit a71eed1

File tree

96 files changed

+160
-14
lines changed

Some content is hidden

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

96 files changed

+160
-14
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,4 @@ QiniuSDK.xcworkspace/xcshareddata/
3939
Pods/
4040
Podfile.lock
4141
.Podfile.swo
42+
.swiftpm

CHANGELOG.md

Lines changed: 4 additions & 0 deletions

Package.swift

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// swift-tools-version:5.5
2+
// The swift-tools-version declares the minimum version of Swift required to build this package.
3+
4+
import PackageDescription
5+
6+
let package = Package(
7+
name: "Qiniu",
8+
platforms: [
9+
.macOS(.v10_10),
10+
.iOS(.v8)
11+
],
12+
products: [
13+
// Products define the executables and libraries a package produces, and make them visible to other packages.
14+
.library(
15+
name: "Qiniu",
16+
targets: ["QiniuSDK"]),
17+
],
18+
dependencies: [
19+
.package(name:"HappyDNS", url: "https://github.com/qiniu/happy-dns-objc", "1.0.1"..<"1.1.0"),
20+
],
21+
targets: [
22+
.target(
23+
name: "QiniuSDK",
24+
dependencies: ["HappyDNS"],
25+
path: "QiniuSDK",
26+
sources: ["BigData", "Collect", "Common", "Http", "Recorder", "Storage", "Transaction", "Utils"],
27+
cSettings: [
28+
.headerSearchPath("BigData"),
29+
.headerSearchPath("Collect"),
30+
.headerSearchPath("Common"),
31+
.headerSearchPath("Http"),
32+
.headerSearchPath("Recorder"),
33+
.headerSearchPath("Storage"),
34+
.headerSearchPath("Transaction"),
35+
.headerSearchPath("Utils"),
36+
]),
37+
]
38+
)

Podfile

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

33
def shared_dependencies
4-
pod 'HappyDNS', '1.0.0'
5-
# pod 'HappyDNS', :path => '../HappyDns_iOS'
4+
pod 'HappyDNS', '~> 1.0.0'
5+
# pod 'HappyDNS', :path => '../HappyDns_iOS'
66
end
77

88
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.4.0'
3+
s.version = '8.4.1'
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'
@@ -10,7 +10,7 @@ Pod::Spec.new do |s|
1010
s.ios.deployment_target = '7.0'
1111
s.osx.deployment_target = '10.9'
1212

13-
s.source_files = "QiniuSDK/**/*.{h,m}"
13+
s.source_files = 'QiniuSDK/BigData/**/*.{h,m}','QiniuSDK/Collect/**/*.{h,m}','QiniuSDK/Common/**/*.{h,m}','QiniuSDK/Http/**/*.{h,m}','QiniuSDK/Recorder/**/*.{h,m}','QiniuSDK/Storage/**/*.{h,m}','QiniuSDK/Transaction/**/*.{h,m}','QiniuSDK/Utils/**/*.{h,m}','QiniuSDK/QiniuSDK.h'
1414
s.requires_arc = true
1515
s.libraries = 'z'
1616
s.dependency 'HappyDNS', '~> 1.0.0'

QiniuSDK/Utils/QNVersion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
/**
1212
* sdk 版本
1313
*/
14-
static NSString *const kQiniuVersion = @"8.4.0";
14+
static NSString *const kQiniuVersion = @"8.4.1";

QiniuSDK/include/NSData+QNGZip.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../Utils/NSData+QNGZip.h

QiniuSDK/include/NSData+QNMD5.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../Utils/NSData+QNMD5.h
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../Utils/NSObject+QNSwizzle.h
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../Http/Request/HttpClient/CFNetwork/NSURLRequest+QNRequest.h

0 commit comments

Comments
 (0)