Skip to content

Commit 4ea8cbf

Browse files
authored
Remove Bazel support (#222)
This removes the BUILD files and Bazel infra. Bazel users should consume via SPM using https://github.com/cgrindel/rules_swift_package_manager
1 parent c77ebd0 commit 4ea8cbf

21 files changed

+7
-381
lines changed

.bazelrc

-8
This file was deleted.

.bazelversion

-1
This file was deleted.

.github/workflows/ci.yml

-8
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,6 @@ jobs:
9898
uses: actions/checkout@v4
9999
- name: Build
100100
run: carthage build --no-skip-current --platform iOS --use-xcframeworks --verbose
101-
bazel:
102-
name: Bazel Build
103-
runs-on: macOS-13
104-
steps:
105-
- name: Checkout Repo
106-
uses: actions/checkout@v4
107-
- name: Build
108-
run: bazel build //...
109101
validate-strings:
110102
name: Validate Localized Strings
111103
runs-on: macOS-13

.gitignore

-3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,3 @@ Pods/
3232
generated/
3333
.build/
3434
.swiftpm/
35-
36-
# Bazel
37-
bazel-*

Bazel/0001-Patch-testonly-swift_library.patch

-20
This file was deleted.

Bazel/BUILD.bazel

Whitespace-only changes.

Bazel/non_bzlmod_deps.bzl

-37
This file was deleted.

Bazel/swift_snapshot_testing.BUILD.bazel

-14
This file was deleted.

MODULE.bazel

-33
This file was deleted.

README.md

-65
Original file line numberDiff line numberDiff line change
@@ -86,71 +86,6 @@ github "cashapp/AccessibilitySnapshot"
8686
```
8787
</details>
8888

89-
<details>
90-
<summary>Bazel</summary>
91-
92-
Add the following to your `MODULE.bazel` file:
93-
94-
```starlark
95-
bazel_dep(
96-
name = "accessibility_snapshot",
97-
version = "x.x.x",
98-
)
99-
```
100-
101-
Use the provided targets in the `BUILD.bazel` files. There is a `*_library` target for each target suffixed with `.lib` that can be used as a dependency. Without the suffix you will get an `ios_framework` target (dynamic).
102-
103-
```starlark
104-
105-
swift_library(
106-
name = "MyLibrary",
107-
...,
108-
deps = [
109-
"//Sources/AccessibilitySnapshot/Core:AccessibilitySnapshotCore.lib",
110-
],
111-
)
112-
```
113-
114-
To use [iOSSnapshotTestCase](https://github.com/uber/ios-snapshot-test-case) you can add a dependency on the `//Sources/AccessibilitySnapshot/iOSSnapshotTestCase:AccessibilitySnapshot_iOSSnapshotTestCase` targets.
115-
116-
For example:
117-
118-
```starlark
119-
swift_test(
120-
name = "MyLibraryTests",
121-
...,
122-
deps = [
123-
"//Sources/AccessibilitySnapshot/Core:AccessibilitySnapshotCore.lib",
124-
"//Sources/AccessibilitySnapshot/iOSSnapshotTestCase:AccessibilitySnapshot_iOSSnapshotTestCase",
125-
],
126-
)
127-
```
128-
129-
```swift
130-
import AccessibilitySnapshot_iOSSnapshotTestCase
131-
```
132-
133-
To use [SnapshotTesting](https://github.com/pointfreeco/swift-snapshot-testing) you can add a dependency on the `//Sources/AccessibilitySnapshot/SnapshotTesting:AccessibilitySnapshot_SnapshotTesting` targets.
134-
135-
For example:
136-
137-
```starlark
138-
swift_test(
139-
name = "MyLibraryTests",
140-
...,
141-
deps = [
142-
"//Sources/AccessibilitySnapshot/Core:AccessibilitySnapshotCore.lib",
143-
"//Sources/AccessibilitySnapshot/SnapshotTesting:AccessibilitySnapshot_SnapshotTesting",
144-
],
145-
)
146-
```
147-
148-
```swift
149-
import AccessibilitySnapshot_SnapshotTesting
150-
```
151-
152-
</details>
153-
15489
## Usage
15590

15691
AccessibilitySnapshot builds on top of existing snapshot frameworks to add support for snapshotting your app's accessibility. By default it uses the [SnapshotTesting](https://github.com/pointfreeco/swift-snapshot-testing) framework for snapshotting, but can be switched over to [iOSSnapshotTestCase](https://github.com/uber/ios-snapshot-test-case) as well.

Sources/AccessibilitySnapshot/Core/BUILD.bazel

-73
This file was deleted.

Sources/AccessibilitySnapshot/SnapshotTesting/BUILD.bazel

-37
This file was deleted.

Sources/AccessibilitySnapshot/SnapshotTesting/SnapshotTesting+Accessibility.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import SnapshotTesting
1818
import UIKit
1919

20-
#if SWIFT_PACKAGE || BAZEL_PACKAGE
20+
#if SWIFT_PACKAGE
2121
import AccessibilitySnapshotCore
2222
import AccessibilitySnapshotCore_ObjC
2323
#endif

Sources/AccessibilitySnapshot/SnapshotTesting/SnapshotTesting+SwiftUI.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import SnapshotTesting
1818
import SwiftUI
1919
import UIKit
2020

21-
#if SWIFT_PACKAGE || BAZEL_PACKAGE
21+
#if SWIFT_PACKAGE
2222
import AccessibilitySnapshotCore
2323
import AccessibilitySnapshotCore_ObjC
2424
#endif

0 commit comments

Comments
 (0)