Skip to content

Commit

Permalink
Add bazel build support (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
russellhancox authored Sep 5, 2018
1 parent 8d55fe6 commit 861430d
Show file tree
Hide file tree
Showing 7 changed files with 89 additions and 611 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.DS_Store
Pods
*.xcodeproj/xcuserdata
*.xcworkspace
bazel-*
32 changes: 32 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
load("@build_bazel_rules_apple//apple:macos.bzl", "macos_unit_test")

objc_library(
name = "MOLAuthenticatingURLSession",
srcs = [
"Source/MOLAuthenticatingURLSession/MOLAuthenticatingURLSession.m",
"Source/MOLAuthenticatingURLSession/MOLDERDecoder.h",
"Source/MOLAuthenticatingURLSession/MOLDERDecoder.m",
],
hdrs = ["Source/MOLAuthenticatingURLSession/MOLAuthenticatingURLSession.h"],
includes = ["Source"],
sdk_frameworks = ["Security"],
deps = ["@MOLCertificate//:MOLCertificate"],
visibility = ["//visibility:public"],
)

objc_library(
name = "MOLAuthenticatingURLSessionTestsLib",
testonly = 1,
srcs = [
"Source/MOLAuthenticatingURLSession/MOLDERDecoder.h",
"Tests/MOLDERDecoderTest.m",
],
resources = ["Tests/dn.plist"],
deps = [":MOLAuthenticatingURLSession"],
)

macos_unit_test(
name = "MOLAuthenticatingURLSessionTests",
minimum_os_version = "10.11",
deps = [":MOLAuthenticatingURLSessionTestsLib"],
)
4 changes: 2 additions & 2 deletions MOLAuthenticatingURLSession.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'MOLAuthenticatingURLSession'
s.version = '2.4'
s.version = '2.5'
s.platform = :osx
s.osx.deployment_target = '10.9'
s.license = { :type => 'Apache 2.0', :file => 'LICENSE' }
Expand All @@ -11,5 +11,5 @@ Pod::Spec.new do |s|
:tag => "v#{s.version}" }
s.source_files = 'Source/MOLAuthenticatingURLSession/*.{h,m}'
s.framework = 'Security'
s.dependency 'MOLCertificate', '~> 1.8'
s.dependency 'MOLCertificate', '~> 2.0'
end
Loading

0 comments on commit 861430d

Please sign in to comment.