Skip to content

Commit c10a628

Browse files
author
Wes Smith
committed
enforce separate imports for private and applinks modules
1 parent 093dd1f commit c10a628

File tree

2 files changed

+23
-9
lines changed

2 files changed

+23
-9
lines changed

DeepLinkKit/AppLinks.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
#import "DeepLinkKit.h"
12
#import "DPLDeepLink+AppLinks.h"
23
#import "DPLMutableDeepLink+AppLinks.h"

DeepLinkKit/module.modulemap

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,29 @@
11
framework module DeepLinkKit {
22
umbrella header "DeepLinkKit.h"
33
export *
4-
module * { export * }
54

6-
explicit module Private {
7-
header "DeepLinkKit_Private.h"
8-
export *
9-
}
5+
exclude header "AppLinks.h"
6+
exclude header "DPLDeepLink+AppLinks.h"
7+
exclude header "DPLMutableDeepLink+AppLinks.h"
108

11-
explicit module AppLinks {
12-
header "AppLinks.h"
13-
export *
14-
}
9+
exclude header "DeepLinkKit_Private.h"
10+
exclude header "DPLDeepLink_Private.h"
11+
exclude header "DPLSerializable.h"
12+
exclude header "DPLMatchResult.h"
13+
exclude header "DPLRouteMatcher.h"
14+
exclude header "DPLRegularExpression.h"
15+
exclude header "NSString+DPLTrim.h"
16+
exclude header "NSString+DPLQuery.h"
17+
exclude header "NSString+DPLJSON.h"
18+
exclude header "NSObject+DPLJSONObject.h"
1519
}
1620

21+
explicit module DeepLinkKit.Private {
22+
header "DeepLinkKit_Private.h"
23+
export DeepLinkKit
24+
}
25+
26+
explicit module DeepLinkKit.AppLinks {
27+
header "AppLinks.h"
28+
export DeepLinkKit
29+
}

0 commit comments

Comments
 (0)