Skip to content

Commit

Permalink
enforce separate imports for private and applinks modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Wes Smith committed Mar 31, 2016
1 parent 6f0758a commit cd16175
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 9 deletions.
1 change: 1 addition & 0 deletions DeepLinkKit/AppLinks.h
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#import "DeepLinkKit.h"
#import "DPLDeepLink+AppLinks.h"
#import "DPLMutableDeepLink+AppLinks.h"
31 changes: 22 additions & 9 deletions DeepLinkKit/module.modulemap
Original file line number Diff line number Diff line change
@@ -1,16 +1,29 @@
framework module DeepLinkKit {
umbrella header "DeepLinkKit.h"
export *
module * { export * }

explicit module Private {
header "DeepLinkKit_Private.h"
export *
}
exclude header "AppLinks.h"
exclude header "DPLDeepLink+AppLinks.h"
exclude header "DPLMutableDeepLink+AppLinks.h"

explicit module AppLinks {
header "AppLinks.h"
export *
}
exclude header "DeepLinkKit_Private.h"
exclude header "DPLDeepLink_Private.h"
exclude header "DPLSerializable.h"
exclude header "DPLMatchResult.h"
exclude header "DPLRouteMatcher.h"
exclude header "DPLRegularExpression.h"
exclude header "NSString+DPLTrim.h"
exclude header "NSString+DPLQuery.h"
exclude header "NSString+DPLJSON.h"
exclude header "NSObject+DPLJSONObject.h"
}

explicit module DeepLinkKit.Private {
header "DeepLinkKit_Private.h"
export DeepLinkKit
}

explicit module DeepLinkKit.AppLinks {
header "AppLinks.h"
export DeepLinkKit
}

0 comments on commit cd16175

Please sign in to comment.