Skip to content

Commit c2fc564

Browse files
committed
Merge pull request #286 from tilltue/spm
SPM Support
2 parents dfba254 + d848746 commit c2fc564

20 files changed

Lines changed: 175 additions & 25 deletions

Package.swift

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// swift-tools-version:5.3
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: "TLPhotoPicker",
8+
platforms: [
9+
.iOS(.v10)
10+
],
11+
products: [
12+
// Products define the executables and libraries produced by a package, and make them visible to other packages.
13+
.library(
14+
name: "TLPhotoPicker",
15+
targets: ["TLPhotoPicker"]),
16+
],
17+
targets: [
18+
.target(
19+
name: "TLPhotoPicker",
20+
path: "TLPhotoPicker",
21+
resources: [
22+
.process("TLPhotoPicker/Classes/TLCollectionTableViewCell.xib"),
23+
.process("TLPhotoPicker/Classes/TLPhotoCollectionViewCell.xib"),
24+
.process("TLPhotoPicker/Classes/TLPhotosPickerViewController.xib"),
25+
.process("TLPhotoPicker/Assets.xcassets")
26+
]
27+
)
28+
]
29+
)

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,16 @@ Specify TLPhotoPicker into your project's Cartfile:
6868
github "tilltue/TLPhotoPicker"
6969
```
7070

71+
### Swift Package Manager
72+
73+
The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler. It is in early development, but TLPhotoPicker does support its use on supported platforms.
74+
75+
Once you have your Swift package set up, adding Alamofire as a dependency is as easy as adding it to the dependencies value of your Package.swift.
76+
77+
dependencies: [
78+
.package(url: "https://github.com/tilltue/TLPhotoPicker.git", .upToNextMajor(from: "2.1.0"))
79+
]
80+
7181

7282
> Don't forget the Privacy Description in `info.plist`.
7383
<img src="./Images/Privacy.png">

TLPhotoPicker.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'TLPhotoPicker'
11-
s.version = '2.0.12'
11+
s.version = '2.1.0'
1212
s.summary = 'multiple phassets picker for iOS lib. like facebook'
1313

1414
# This description is used to generate tags and improve search results.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"author" : "xcode",
4+
"version" : 1
5+
}
6+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "arrow.png",
5+
"idiom" : "universal",
6+
"scale" : "1x"
7+
},
8+
{
9+
"idiom" : "universal",
10+
"scale" : "2x"
11+
},
12+
{
13+
"idiom" : "universal",
14+
"scale" : "3x"
15+
}
16+
],
17+
"info" : {
18+
"author" : "xcode",
19+
"version" : 1
20+
}
21+
}
1.08 KB
Loading
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "universal",
5+
"scale" : "1x"
6+
},
7+
{
8+
"idiom" : "universal",
9+
"scale" : "2x"
10+
},
11+
{
12+
"filename" : "camera@3x.png",
13+
"idiom" : "universal",
14+
"scale" : "3x"
15+
}
16+
],
17+
"info" : {
18+
"author" : "xcode",
19+
"version" : 1
20+
}
21+
}
3.01 KB
Loading
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "universal",
5+
"scale" : "1x"
6+
},
7+
{
8+
"idiom" : "universal",
9+
"scale" : "2x"
10+
},
11+
{
12+
"filename" : "insertPhotoMaterial@3x.png",
13+
"idiom" : "universal",
14+
"scale" : "3x"
15+
}
16+
],
17+
"info" : {
18+
"author" : "xcode",
19+
"version" : 1
20+
}
21+
}
1.63 KB
Loading

0 commit comments

Comments
 (0)