Skip to content

Commit a0ec85b

Browse files
authored
Merge pull request #3 from Rminsh/master
Added Support for SPM(Swift Package Manager)
2 parents d8ab0e6 + 7f4e82d commit a0ec85b

File tree

4 files changed

+33
-0
lines changed

4 files changed

+33
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
# Xcode
55
build/
6+
.build/
7+
.swiftpm/
68
*.pbxuser
79
!default.pbxuser
810
*.mode1v3

Package.swift

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// swift-tools-version:5.0
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: "TelegramStickersImport",
8+
platforms: [
9+
.iOS(.v9)
10+
],
11+
products: [
12+
// Products define the executables and libraries a package produces, and make them visible to other packages.
13+
.library(
14+
name: "TelegramStickersImport",
15+
targets: ["TelegramStickersImport"]),
16+
],
17+
dependencies: [
18+
// Dependencies declare other packages that this package depends on.
19+
// .package(url: /* package url */, from: "1.0.0"),
20+
],
21+
targets: [
22+
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
23+
// Targets can depend on other targets in this package, and on products in packages this package depends on.
24+
.target(
25+
name: "TelegramStickersImport",
26+
dependencies: [],
27+
path: "Source"),
28+
]
29+
)

Source/Helpers.swift

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Foundation
2+
import UIKit
23

34
public extension Sticker.StickerData {
45
init?(image: UIImage) {

Source/StickerSet.swift

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Foundation
2+
import UIKit
23

34
/// A sticker set
45
public class StickerSet {

0 commit comments

Comments
 (0)