Skip to content

Commit

Permalink
Merge pull request #3 from Rminsh/master
Browse files Browse the repository at this point in the history
Added Support for SPM(Swift Package Manager)
  • Loading branch information
laktyushin authored Jun 28, 2021
2 parents d8ab0e6 + 7f4e82d commit a0ec85b
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

# Xcode
build/
.build/
.swiftpm/
*.pbxuser
!default.pbxuser
*.mode1v3
Expand Down
29 changes: 29 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// swift-tools-version:5.0
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "TelegramStickersImport",
platforms: [
.iOS(.v9)
],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "TelegramStickersImport",
targets: ["TelegramStickersImport"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.target(
name: "TelegramStickersImport",
dependencies: [],
path: "Source"),
]
)
1 change: 1 addition & 0 deletions Source/Helpers.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Foundation
import UIKit

public extension Sticker.StickerData {
init?(image: UIImage) {
Expand Down
1 change: 1 addition & 0 deletions Source/StickerSet.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Foundation
import UIKit

/// A sticker set
public class StickerSet {
Expand Down

0 comments on commit a0ec85b

Please sign in to comment.