mirror of
https://github.com/material-components/material-components-ios.git
synced 2026-02-20 08:27:32 +08:00
Kokoro's Bazel version has been increased from 0.11.0 to 0.20.0 As part of this change, the `.kokoro` bazel header rewrite phase's rewrites for MDF libraries has been made less generic because MDFInternationalization can now be imported using framework-style imports as expected. MDFTextAccessibility does not yet have this functionality, so we still need to rewrite it. Version changes in the bazel workspace: - bazelbuild/rules_apple has been increased from 0.3.0 to 0.9.0 - bazel_skylib has been increased from 0.2.0 to 0.6.0 - bazelbuild/rules_swift has been added at 0.4.0 - xctestrunner has been increased from 0.2.1 to 0.2.5 - material_internationalization_ios has been increased from v1.0.4 to v2.0.1 - material_text_accessibility_ios has been increased from fd570d71ae0124c75ad5af00e6b8b4b1668d5e40 to v2.0.0 - motion_interchange_objc has been increased from v1.6.0 to v2.0.0 - motion_animator_objc has been increased from v2.5.0 to v3.0.0 - motion_transitioning_objc has been increased from v5.0.0 to v6.0.0 - Swift version has been pinned to 3 for all swift libraries. buildifier was ran on all affected build targets. This unblocks https://github.com/material-components/material-components-ios/pull/5550.
72 lines
1.7 KiB
Python
72 lines
1.7 KiB
Python
# Copyright 2017-present The Material Components for iOS Authors. All Rights Reserved.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
# implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
load(
|
|
"//:material_components_ios.bzl",
|
|
"mdc_objc_library",
|
|
"mdc_public_objc_library",
|
|
"mdc_unit_test_suite",
|
|
)
|
|
load("@build_bazel_rules_swift//swift:swift.bzl", "swift_library")
|
|
|
|
licenses(["notice"]) # Apache 2.0
|
|
|
|
mdc_public_objc_library(
|
|
name = "HeaderStackView",
|
|
sdk_frameworks = [
|
|
"CoreGraphics",
|
|
"UIKit",
|
|
],
|
|
)
|
|
|
|
mdc_objc_library(
|
|
name = "ColorThemer",
|
|
srcs = native.glob(["src/ColorThemer/*.m"]),
|
|
hdrs = native.glob(["src/ColorThemer/*.h"]),
|
|
includes = ["src/ColorThemer"],
|
|
sdk_frameworks = [
|
|
"UIKit",
|
|
],
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
":HeaderStackView",
|
|
"//components/Themes",
|
|
],
|
|
)
|
|
|
|
mdc_objc_library(
|
|
name = "unit_test_sources",
|
|
testonly = 1,
|
|
srcs = native.glob([
|
|
"tests/unit/*.m",
|
|
"tests/unit/*.h",
|
|
]),
|
|
sdk_frameworks = [
|
|
"UIKit",
|
|
"XCTest",
|
|
],
|
|
visibility = ["//visibility:private"],
|
|
deps = [
|
|
":ColorThemer",
|
|
":HeaderStackView",
|
|
],
|
|
)
|
|
|
|
mdc_unit_test_suite(
|
|
deps = [
|
|
":unit_test_sources",
|
|
],
|
|
)
|