21
21
"mdc_public_objc_library" ,
22
22
"mdc_snapshot_objc_library" ,
23
23
"mdc_snapshot_test" ,
24
+ "mdc_unit_test_objc_library" ,
24
25
"mdc_unit_test_suite" ,
26
+ "mdc_unit_test_swift_library" ,
25
27
)
26
28
load ("@build_bazel_rules_swift//swift:swift.bzl" , "swift_library" )
27
29
@@ -31,7 +33,6 @@ mdc_public_objc_library(
31
33
name = "BottomSheet" ,
32
34
sdk_frameworks = [
33
35
"QuartzCore" ,
34
- "UIKit" ,
35
36
],
36
37
deps = [
37
38
"//components/Elevation" ,
@@ -59,22 +60,6 @@ mdc_extension_objc_library(
59
60
],
60
61
)
61
62
62
- mdc_objc_library (
63
- name = "unit_test_sources" ,
64
- testonly = 1 ,
65
- srcs = glob (["tests/unit/*.m" ]),
66
- hdrs = glob (["tests/unit/*.h" ]),
67
- sdk_frameworks = [
68
- "UIKit" ,
69
- "XCTest" ,
70
- ],
71
- visibility = ["//visibility:private" ],
72
- deps = [
73
- ":BottomSheet" ,
74
- ":privateHeaders" ,
75
- ],
76
- )
77
-
78
63
mdc_examples_objc_library (
79
64
name = "ObjcExamples" ,
80
65
deps = [
@@ -101,28 +86,30 @@ mdc_examples_swift_library(
101
86
],
102
87
)
103
88
104
- mdc_unit_test_suite (
105
- name = "unit_tests " ,
89
+ mdc_unit_test_objc_library (
90
+ name = "unit_test_sources " ,
106
91
deps = [
107
- ":unit_test_sources " ,
108
- ":unit_test_swift_sources " ,
92
+ ":BottomSheet " ,
93
+ ":privateHeaders " ,
109
94
],
110
95
)
111
96
112
- swift_library (
97
+ mdc_unit_test_swift_library (
113
98
name = "unit_test_swift_sources" ,
114
- srcs = glob (["tests/unit/*.swift" ]),
115
- copts = [
116
- "-swift-version" ,
117
- "4.2" ,
118
- ],
119
- visibility = ["//visibility:private" ],
120
99
deps = [
121
100
":BottomSheet" ,
122
101
":ShapeThemer" ,
123
102
],
124
103
)
125
104
105
+ mdc_unit_test_suite (
106
+ name = "unit_tests" ,
107
+ deps = [
108
+ ":unit_test_sources" ,
109
+ ":unit_test_swift_sources" ,
110
+ ],
111
+ )
112
+
126
113
mdc_snapshot_objc_library (
127
114
name = "snapshot_test_lib" ,
128
115
deps = [
0 commit comments