File tree 1 file changed +5
-21
lines changed
1 file changed +5
-21
lines changed Original file line number Diff line number Diff line change @@ -22,17 +22,17 @@ load(
22
22
"mdc_public_objc_library" ,
23
23
"mdc_snapshot_objc_library" ,
24
24
"mdc_snapshot_test" ,
25
+ "mdc_unit_test_objc_library" ,
25
26
"mdc_unit_test_suite" ,
27
+ "mdc_unit_test_swift_library" ,
26
28
)
27
- load ("@build_bazel_rules_swift//swift:swift.bzl" , "swift_library" )
28
29
29
30
licenses (["notice" ]) # Apache 2.0
30
31
31
32
mdc_public_objc_library (
32
33
name = "Cards" ,
33
34
sdk_frameworks = [
34
35
"CoreGraphics" ,
35
- "UIKit" ,
36
36
],
37
37
visibility = ["//visibility:public" ],
38
38
deps = [
@@ -82,17 +82,11 @@ mdc_extension_objc_library(
82
82
],
83
83
)
84
84
85
- swift_library (
85
+ mdc_unit_test_swift_library (
86
86
name = "unit_test_swift_sources" ,
87
- srcs = glob ([
88
- "tests/unit/*.swift" ,
87
+ extra_srcs = glob ([
89
88
"tests/unit/Theming/*.swift" ,
90
89
]),
91
- copts = [
92
- "-swift-version" ,
93
- "4.2" ,
94
- ],
95
- visibility = ["//visibility:private" ],
96
90
deps = [
97
91
":Cards" ,
98
92
":ColorThemer" ,
@@ -101,18 +95,8 @@ swift_library(
101
95
],
102
96
)
103
97
104
- mdc_objc_library (
98
+ mdc_unit_test_objc_library (
105
99
name = "unit_test_sources" ,
106
- testonly = 1 ,
107
- srcs = native .glob ([
108
- "tests/unit/*.m" ,
109
- "tests/unit/*.h" ,
110
- ]),
111
- sdk_frameworks = [
112
- "UIKit" ,
113
- "XCTest" ,
114
- ],
115
- visibility = ["//visibility:private" ],
116
100
deps = [
117
101
":Cards" ,
118
102
"//components/private/Icons/icons/ic_info" ,
You can’t perform that action at this time.
0 commit comments