Skip to content

Commit 0d415ac

Browse files
committedApr 21, 2023
Add SPM support
1 parent 1431a5b commit 0d415ac

File tree

7 files changed

+45
-1
lines changed

7 files changed

+45
-1
lines changed
 

‎.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,5 @@ fastlane/test_output
8888
# https://github.com/johnno1962/injectionforxcode
8989

9090
iOSInjectionProject/
91+
92+
.swiftpm

‎Package.swift

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
// swift-tools-version:5.3
2+
import PackageDescription
3+
4+
let package = Package(
5+
name: "Screeb",
6+
platforms: [
7+
.iOS(.v13)
8+
],
9+
products: [
10+
// Products define the executables and libraries a package produces, and make them visible to other packages.
11+
.library(
12+
name: "Screeb",
13+
targets: ["ScreebTarget"])
14+
],
15+
dependencies: [
16+
// Dependencies declare other packages that this package depends on.
17+
.package(name: "Alamofire",url: "https://github.com/Alamofire/Alamofire.git", from: "5.4.0"),
18+
.package(name: "Starscream",url: "https://github.com/daltoniam/Starscream.git", from: "4.0.0"),
19+
.package(name: "Kingfisher",url: "https://github.com/onevcat/Kingfisher.git", from: "7.0.0"),
20+
.package(name: "KeyboardGuide",url: "https://github.com/niw/KeyboardGuide.git", from: "0.2.1"),
21+
],
22+
targets: [
23+
.target(
24+
name: "ScreebTarget",
25+
dependencies: [.target(name: "BinaryFrameworkWrapper")],
26+
path: "Sources/Screeb"),
27+
.target(name: "BinaryFrameworkWrapper",
28+
dependencies: [
29+
.target(name: "Screeb"),
30+
.product(name: "Alamofire", package: "Alamofire"),
31+
.product(name: "Starscream", package: "Starscream"),
32+
.product(name: "Kingfisher", package: "Kingfisher"),
33+
.product(name: "KeyboardGuide", package: "KeyboardGuide")
34+
],
35+
path: "Sources/BinaryFramework"),
36+
.binaryTarget(
37+
name: "Screeb",
38+
url: "https://github.com/ScreebApp/sdk-ios-public/releases/download/1.12.4/Screeb.zip",
39+
checksum: "34176f3a33f6ba801689b85ba83ef3f3a3fce439e8d89bd8ffd4cd636449ac52"
40+
)
41+
]
42+
)

‎Sources/BinaryFramework/dummybisbis.m

Whitespace-only changes.

‎Sources/BinaryFramework/include/dummybisbis.h

Whitespace-only changes.

‎Sources/Screeb/dummybis.m

Whitespace-only changes.

‎Sources/Screeb/include/dummybis.h

Whitespace-only changes.

‎example/Podfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ inhibit_all_warnings!
44

55
target 'ExampleApp' do
66
project 'ExampleApp'
7-
pod "Screeb", "1.12.3"
7+
pod "Screeb", "1.12.4"
88
end
99

1010
post_install do |installer|

0 commit comments

Comments
 (0)