Skip to content

Commit d31b542

Browse files
committed
v1.0.0
1 parent 97eff2c commit d31b542

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

Package.swift

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// swift-tools-version:5.4
2+
import PackageDescription
3+
4+
let package = Package(
5+
name: "BrowserstackSwiftSDK",
6+
platforms: [.iOS(.v14)],
7+
products: [
8+
.library(
9+
name: "BrowserstackSwiftSDK",
10+
targets: ["BrowserstackSwiftSDK"]
11+
)
12+
],
13+
targets: [
14+
.binaryTarget(
15+
name: "BrowserstackSwiftSDK",
16+
url: "https://sdk-assets.browserstack.com/browserstack-swift-sdk/releases/1.0.0/BrowserstackSwiftSDK.zip",
17+
checksum: "6e76b5f20df8141fc9fc7673e60aeeb7bebf80699dab76ebeb4e0e76a8e23311"
18+
)
19+
]
20+
)

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,35 @@
11
# browserstack-swift-sdk-artifacts
22
Publishing repository for BrowserStack Swift SDK for Automation testing.
3+
4+
## Installation
5+
1. Select **File > Swift Packages > Add Package Dependency...**.
6+
2. Add the Github URL of the Package file:
7+
8+
```
9+
https://github.com/browserstack/browserstack-swift-sdk-artifacts
10+
```
11+
12+
>If you receive an `artifact of binary target 'BrowserstackSwiftSDK' failed extraction: The operation couldn’t be completed. (TSCBasic.StringError error 1.)` error when extracting the package, please close Xcode, delete the Derrived Data folder, re-open Xcode, and try again.
13+
14+
3. Select the BrowserstackSwiftSDK package product, select your target, and select Finish.
15+
4. Add the below entry in the Info.plist file of your UI test target
16+
```
17+
<key>NSPrincipalClass</key>
18+
<string>BrowserstackSwiftSDK.BrowserstackSwiftSDK</string>
19+
```
20+
21+
**Alternatively**,
22+
Import the Browserstack Swift SDK module
23+
24+
```
25+
import BrowserstackSwiftSDK
26+
```
27+
28+
And then in the UI test target's class initializer add,
29+
```
30+
override class func setUp() {
31+
/* Can be any class initializer */
32+
super.setUp()
33+
let _ = BrowserstackSwiftSDK()
34+
}
35+
```

0 commit comments

Comments
 (0)