Skip to content

Commit

Permalink
Update to support latest bazel rules_apple version.
Browse files Browse the repository at this point in the history
This means moving test resources into macos_unit_test instead of
objc_library as that attribute has been removed from objc_library.
  • Loading branch information
tnek committed Oct 15, 2021
1 parent 288553b commit 0c022fa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ objc_library(
objc_library(
name = "MOLCertificateTestsLib",
srcs = glob(["Tests/MOLCertificateTest.m"]),
data = glob([
"Tests/*.pem",
"Tests/*.crt",
]),
deps = [":MOLCertificate"],
)

Expand All @@ -28,5 +24,10 @@ load("@build_bazel_rules_apple//apple:macos.bzl", "macos_unit_test")
macos_unit_test(
name = "MOLCertificateTests",
minimum_os_version = "10.9",
resources = glob([
"Tests/*.pem",
"Tests/*.crt",
]),

deps = [":MOLCertificateTestsLib"],
)
2 changes: 1 addition & 1 deletion MOLCertificate.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'MOLCertificate'
s.version = '2.1'
s.version = '2.2'
s.platform = :osx, '10.9'
s.license = { :type => 'Apache', :file => 'LICENSE' }
s.homepage = 'https://github.com/google/macops-molcertificate'
Expand Down
2 changes: 1 addition & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
git_repository(
name = "build_bazel_rules_apple",
remote = "https://github.com/bazelbuild/rules_apple.git",
tag = "0.6.0",
tag = "0.31.3",
)

load(
Expand Down

0 comments on commit 0c022fa

Please sign in to comment.