forked from player-ui/player
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
183 lines (142 loc) · 4.59 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
workspace(
name = "player",
managed_directories = {
"@npm": ["node_modules"],
"@Pods": ["xcode/Pods"],
},
)
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
http_archive(
name = "rules_player",
strip_prefix = "rules_player-0.10.2",
urls = ["https://github.com/player-ui/rules_player/archive/refs/tags/v0.10.2.tar.gz"],
sha256 = "5cffcc80eafc2dc0522a4e397bba5b6261ccbad3e399fa843bc452fc113357ab"
)
load("@rules_player//:workspace.bzl", "deps")
deps()
load("@rules_player//:conf.bzl", "apple", "javascript", "kotlin")
#####################
# Yarn Dependencies #
#####################
javascript()
load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "yarn_install")
node_repositories(
node_version = "16.12.0",
yarn_version = "1.22.17",
)
yarn_install(
name = "npm",
included_files = [],
package_json = "//:package.json",
strict_visibility = False,
yarn_lock = "//:yarn.lock",
)
#####################
# CocoaPods Dependencies #
#####################
apple()
load("@rules_player//cocoapods:cocoapod.bzl", "pod_install")
pod_install(
name = "Pods",
executable = "bundle exec pod",
flags = [
"--allow-root",
"--repo-update",
],
podfile = "//xcode:Podfile",
)
######################
# Kotlin Setup #
######################
kotlin()
load("@io_bazel_rules_kotlin//kotlin:core.bzl", "kt_register_toolchains")
kt_register_toolchains()
load("@rules_player//junit5:conf.bzl", "junit5")
junit5()
######################
# Android Setup #
######################
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
grab_remote = "https://github.com/sugarmanz/grab-bazel-common.git"
grab_commit = "a3fe2daf2965b439c8c2a4c2cce1f13beba446b1"
git_repository(
name = "grab_bazel_common",
commit = grab_commit,
remote = grab_remote,
shallow_since = "1654123549 -0400",
)
# Optional patched Android Tools
load("@grab_bazel_common//:workspace_defs.bzl", "android_tools")
android_tools(
commit = grab_commit,
remote = grab_remote,
shallow_since = "1654123549 -0400",
)
DAGGER_TAG = "2.28.1"
DAGGER_SHA = "9e69ab2f9a47e0f74e71fe49098bea908c528aa02fa0c5995334447b310d0cdd"
http_archive(
name = "dagger",
sha256 = DAGGER_SHA,
strip_prefix = "dagger-dagger-%s" % DAGGER_TAG,
url = "https://github.com/google/dagger/archive/dagger-%s.zip" % DAGGER_TAG,
)
http_archive(
name = "robolectric",
sha256 = "4e002cbe712c8abd9c3b565eb165787a2a7a92dfafb117e0d84b6767c2053189",
strip_prefix = "robolectric-bazel-4.8",
urls = ["https://github.com/robolectric/robolectric-bazel/archive/4.8.tar.gz"],
)
load("@robolectric//bazel:robolectric.bzl", "robolectric_repositories")
robolectric_repositories()
http_archive(
name = "build_bazel_rules_android",
sha256 = "cd06d15dd8bb59926e4d65f9003bfc20f9da4b2519985c27e190cddc8b7a7806",
strip_prefix = "rules_android-0.1.1",
urls = ["https://github.com/bazelbuild/rules_android/archive/v0.1.1.zip"],
)
overridden_targets = {
# Override the maven dep with the fixed target
"org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm": "@//android/demo:kotlinx_coroutines_core_jvm_fixed",
}
load("@bazel_tools//tools/build_defs/repo:maven_rules.bzl", "maven_aar")
# Because J2V8 is published as type `aar.asc`
maven_aar(
name = "android_j2v8",
artifact = "com.eclipsesource.j2v8:j2v8:6.1.0",
)
# Because eyes androidx components is published as type `pom`
maven_aar(
name = "androidx_eyes_components",
artifact = "com.applitools:eyes-android-components-androidx:4.7.6",
settings = "//android/demo:androidsettings.xml",
)
android_ndk_repository(name = "androidndk")
register_toolchains("@androidndk//:all")
######################
# Maven Dependencies #
######################
load("//jvm/dependencies:deps.bzl", artifacts = "maven")
load("@rules_jvm_external//:defs.bzl", "maven_install")
maven_install(
artifacts = artifacts,
fetch_sources = True,
override_targets = overridden_targets,
repositories = [
"https://repo1.maven.org/maven2",
"https://maven.google.com/",
"https://plugins.gradle.org/m2/",
"https://jcenter.bintray.com/",
],
)
maven_install(
name = "kotlinx_coroutines_core_fixed",
artifacts = [
"org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:jar:1.5.2",
],
repositories = [
"https://repo1.maven.org/maven2",
],
)
load("@vaticle_bazel_distribution//common:rules.bzl", "workspace_refs")
workspace_refs(name = "plugin_workspace_refs")