Skip to content

Commit a002bcf

Browse files
committed
Make Polyfill module private.
1 parent 65a6840 commit a002bcf

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

LeanCloud.podspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Pod::Spec.new do |s|
1414

1515
s.subspec 'Foundation' do |ss|
1616
ss.source_files = 'Sources/Foundation/**/*.{h,m,swift}'
17+
ss.private_header_files = 'Sources/Foundation/Polyfill/Polyfill.h'
1718
ss.pod_target_xcconfig = { 'SWIFT_INCLUDE_PATHS' => '"$(PODS_TARGET_SRCROOT)"/**' }
1819
ss.preserve_paths = 'Sources/Foundation/**/*.{modulemap}'
1920
end

Sources/Foundation/Lazyload.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88

99
import Foundation
10-
import Polyfill
10+
import Polyfill.Private
1111

1212
extension NSObject {
1313

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
module Polyfill {
2-
header "Polyfill.h"
32
export *
43
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
explicit module Polyfill.Private {
2+
header "Polyfill.h"
3+
export *
4+
}

0 commit comments

Comments
 (0)