Skip to content

Commit 2efa41e

Browse files
committed
Move to Mobile Native Foundation and rename to XCBBuildServiceProxyKit
1 parent c07d4ae commit 2efa41e

22 files changed

Lines changed: 81 additions & 45 deletions

BUILD.bazel

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
alias(
2-
name = "XCBBuildServiceProxy",
3-
actual = "//Sources/XCBBuildServiceProxy",
2+
name = "XCBBuildServiceProxyKit",
3+
actual = "//Sources/XCBBuildServiceProxyKit",
44
visibility = ["//visibility:public"],
55
)
66

@@ -45,4 +45,3 @@ alias(
4545
actual = "//Sources/XCBProtocol_13_3",
4646
visibility = ["//visibility:public"],
4747
)
48-

Docs/UPDATING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ The `XCBBuildService` lives here: `$(XCODE_DIR)/Contents/SharedFrameworks/XCBuil
3636

3737
To debug `BazelXCBBuildService` while it is being used by Xcode, you will need to have two instances of Xcode running:
3838

39-
- "Main" Xcode: An instance of Xcode that uses our XCBBuildServiceProxy. This version will be used to build and run your app.
39+
- "Main" Xcode: An instance of Xcode that uses our XCBBuildServiceProxyKit. This version will be used to build and run your app.
4040
- "Debugging" Xcode: An instance of Xcode that uses the original XCBBuildService shipped with Xcode. This version will be used to debug the "main" instance of Xcode.
4141

4242
Getting two instances of Xcode going can be done a couple of ways:

Examples/.bazelversion

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.6.0

Examples/BazelXCBBuildService/BUILD.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ swift_library(
1414
":build_event_stream_proto",
1515
"@com_github_apple_swift_log//:Logging",
1616
"@com_github_apple_swift_nio//:NIO",
17-
"@com_github_target_xcbbuildserviceproxy//:XCBBuildServiceProxy",
18-
"@com_github_target_xcbbuildserviceproxy//:XCBProtocol",
19-
"@com_github_target_xcbbuildserviceproxy//:XCBProtocol_12_0",
17+
"@com_github_mobilenativefoundation_xcbbuildserviceproxykit//:XCBBuildServiceProxyKit",
18+
"@com_github_mobilenativefoundation_xcbbuildserviceproxykit//:XCBProtocol",
19+
"@com_github_mobilenativefoundation_xcbbuildserviceproxykit//:XCBProtocol_12_0",
2020
],
2121
)
2222

Examples/BazelXCBBuildService/Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ let package = Package(
1212
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
1313
.package(url: "https://github.com/apple/swift-nio.git", from: "2.17.0"),
1414
.package(url: "https://github.com/apple/swift-protobuf.git", from: "1.9.0"),
15-
// XCBBuildServiceProxy lives up two levels from here
15+
// XCBBuildServiceProxyKit lives up two levels from here
1616
.package(path: "../../"),
1717
],
1818
targets: [
@@ -23,7 +23,7 @@ let package = Package(
2323
"Logging",
2424
"NIO",
2525
"SwiftProtobuf",
26-
"XCBBuildServiceProxy",
26+
"XCBBuildServiceProxyKit",
2727
"XCBProtocol",
2828
"XCBProtocol_12_0",
2929
],

Examples/BazelXCBBuildService/Sources/BazelBuild.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Foundation
2-
import XCBBuildServiceProxy
2+
import XCBBuildServiceProxyKit
33
import XCBProtocol
44

55
// swiftformat:disable braces

Examples/BazelXCBBuildService/Sources/RequestHandler.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Foundation
22
import Logging
33
import NIO
4-
import XCBBuildServiceProxy
4+
import XCBBuildServiceProxyKit
55
import XCBProtocol
66

77
@_exported import XCBProtocol_12_0

Examples/BazelXCBBuildService/Sources/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Foundation
22
import Logging
33
import NIO
4-
import XCBBuildServiceProxy
4+
import XCBBuildServiceProxyKit
55

66
LoggingSystem.bootstrap { label in
77
var handler = StreamLogHandler.standardError(label: label)

Examples/WORKSPACE

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
workspace(name = "com_github_target_xcbbuildserviceproxy_examples")
1+
workspace(name = "com_github_mobilenativefoundation_xcbbuildserviceproxykit_examples")
22

33
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
44

@@ -22,32 +22,47 @@ http_archive(
2222
url = "https://github.com/bazelbuild/rules_swift/releases/download/0.15.0/rules_swift.0.15.0.tar.gz",
2323
)
2424

25-
load("@build_bazel_apple_support//lib:repositories.bzl", "apple_support_dependencies")
25+
load(
26+
"@build_bazel_apple_support//lib:repositories.bzl",
27+
"apple_support_dependencies",
28+
)
2629

2730
apple_support_dependencies()
2831

29-
load("@build_bazel_rules_apple//apple:repositories.bzl", "apple_rules_dependencies")
32+
load(
33+
"@build_bazel_rules_apple//apple:repositories.bzl",
34+
"apple_rules_dependencies",
35+
)
3036

3137
apple_rules_dependencies()
3238

33-
load("@build_bazel_rules_swift//swift:repositories.bzl", "swift_rules_dependencies")
39+
load(
40+
"@build_bazel_rules_swift//swift:repositories.bzl",
41+
"swift_rules_dependencies",
42+
)
3443

3544
swift_rules_dependencies()
3645

37-
load("@build_bazel_rules_swift//swift:extras.bzl", "swift_rules_extra_dependencies")
46+
load(
47+
"@build_bazel_rules_swift//swift:extras.bzl",
48+
"swift_rules_extra_dependencies",
49+
)
3850

3951
swift_rules_extra_dependencies()
4052

4153
# Project dependencies
4254

4355
local_repository(
44-
name = "com_github_target_xcbbuildserviceproxy",
56+
name = "com_github_mobilenativefoundation_xcbbuildserviceproxykit",
4557
path = "../",
4658
)
4759

48-
load("@com_github_target_xcbbuildserviceproxy//:repositories.bzl", "xcbbuildserviceproxy_dependencies")
60+
load(
61+
"@com_github_mobilenativefoundation_xcbbuildserviceproxykit//:repositories.bzl",
62+
"xcbbuildserviceproxykit_dependencies",
63+
)
4964

50-
xcbbuildserviceproxy_dependencies()
65+
xcbbuildserviceproxykit_dependencies()
5166

5267
http_archive(
5368
name = "build_bazel_bazel",

Package.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import PackageDescription
44

55
let package = Package(
6-
name: "XCBBuildServiceProxy",
6+
name: "XCBBuildServiceProxyKit",
77
platforms: [.macOS(.v11)],
88
products: [
99
.library(name: "XCBProtocol", targets: ["XCBProtocol"]),
@@ -13,7 +13,7 @@ let package = Package(
1313
.library(name: "XCBProtocol_12_5", targets: ["XCBProtocol_12_5"]),
1414
.library(name: "XCBProtocol_13_0", targets: ["XCBProtocol_13_0"]),
1515
.library(name: "XCBProtocol_13_3", targets: ["XCBProtocol_13_3"]),
16-
.library(name: "XCBBuildServiceProxy", targets: ["XCBBuildServiceProxy"]),
16+
.library(name: "XCBBuildServiceProxyKit", targets: ["XCBBuildServiceProxyKit"]),
1717
],
1818
dependencies: [
1919
// Make sure to update the versions used in the `repositories.bzl` file if you change them here
@@ -108,7 +108,7 @@ let package = Package(
108108
]
109109
),
110110
.target(
111-
name: "XCBBuildServiceProxy",
111+
name: "XCBBuildServiceProxyKit",
112112
dependencies: [
113113
.product(name: "Logging", package: "swift-log"),
114114
.product(name: "NIO", package: "swift-nio"),

0 commit comments

Comments
 (0)