From 0c022fa8ef6ef716b24a0749826659aea64e2cf8 Mon Sep 17 00:00:00 2001 From: Kent Ma Date: Fri, 15 Oct 2021 13:04:28 -0400 Subject: [PATCH] Update to support latest bazel rules_apple version. This means moving test resources into macos_unit_test instead of objc_library as that attribute has been removed from objc_library. --- BUILD | 9 +++++---- MOLCertificate.podspec | 2 +- WORKSPACE | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/BUILD b/BUILD index 2540b72..0963b41 100644 --- a/BUILD +++ b/BUILD @@ -16,10 +16,6 @@ objc_library( objc_library( name = "MOLCertificateTestsLib", srcs = glob(["Tests/MOLCertificateTest.m"]), - data = glob([ - "Tests/*.pem", - "Tests/*.crt", - ]), deps = [":MOLCertificate"], ) @@ -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"], ) diff --git a/MOLCertificate.podspec b/MOLCertificate.podspec index 5d141fb..8e1ee76 100644 --- a/MOLCertificate.podspec +++ b/MOLCertificate.podspec @@ -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' diff --git a/WORKSPACE b/WORKSPACE index 1bce1ec..6145672 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -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(