generated from mattrobmattrob/bazel-ios-swiftui-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
WORKSPACE
104 lines (72 loc) · 2.24 KB
/
WORKSPACE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
workspace(name = "swift_bep_parser")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load(
"@swift_bep_parser//tools:repositories.bzl",
"swift_bep_parser_dependencies",
)
swift_bep_parser_dependencies()
# Python
load("@rules_python//python:repositories.bzl", "py_repositories")
py_repositories()
# rules_swift
load(
"@build_bazel_rules_swift//swift:repositories.bzl",
"swift_rules_dependencies",
)
swift_rules_dependencies()
load(
"@build_bazel_rules_swift//swift:extras.bzl",
"swift_rules_extra_dependencies",
)
swift_rules_extra_dependencies()
# rules_apple
load(
"@build_bazel_rules_apple//apple:repositories.bzl",
"apple_rules_dependencies",
)
apple_rules_dependencies()
load(
"@build_bazel_apple_support//lib:repositories.bzl",
"apple_support_dependencies",
)
apple_support_dependencies()
# rules_xcodeproj
load(
"@rules_xcodeproj//xcodeproj:repositories.bzl",
"xcodeproj_rules_dependencies",
)
xcodeproj_rules_dependencies()
load("@bazel_features//:deps.bzl", "bazel_features_deps")
bazel_features_deps()
# Development Dependencies
## Buildifier
http_archive(
name = "buildifier_prebuilt",
sha256 = "f7093a960a8c3471552764892ce12cb62d9b72600fa4c8b08b2090c45db05ce8",
strip_prefix = "buildifier-prebuilt-6.0.0.1",
urls = [
"http://github.com/keith/buildifier-prebuilt/archive/6.0.0.1.tar.gz",
],
)
load("@buildifier_prebuilt//:deps.bzl", "buildifier_prebuilt_deps")
buildifier_prebuilt_deps()
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
bazel_skylib_workspace()
load("@buildifier_prebuilt//:defs.bzl", "buildifier_prebuilt_register_toolchains")
buildifier_prebuilt_register_toolchains()
## Swiftlint
http_archive(
name = "SwiftLint",
build_file_content = """
load("@bazel_skylib//rules:native_binary.bzl", "native_binary")
native_binary(
name = "swiftlint",
src = "bin/swiftlint",
out = "swiftlint",
visibility = ["//visibility:public"],
)
""",
sha256 = "abe7c0bb505d26c232b565c3b1b4a01a8d1a38d86846e788c4d02f0b1042a904",
strip_prefix = "SwiftLintBinary.artifactbundle/swiftlint-0.50.3-macos",
url = "https://github.com/realm/SwiftLint/releases/download/0.50.3/SwiftLintBinary-macos.artifactbundle.zip",
)