Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a module map #90

Merged
merged 8 commits into from
Mar 31, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions DeepLinkKit.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Pod::Spec.new do |s|

s.platform = :ios, '7.0'
s.requires_arc = true
s.module_map = 'DeepLinkKit/module.modulemap'

s.source_files = 'DeepLinkKit/**/*.{h,m}'
end
69 changes: 23 additions & 46 deletions DeepLinkKit.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
buildConfiguration = "Test"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES">
<Testables>
<TestableReference
skipped = "NO">
Expand Down
2 changes: 1 addition & 1 deletion DeepLinkKit/Categories/NSString+DPLJSON.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import <Foundation/Foundation.h>
@import Foundation;

@interface NSString (DPLJSON)

Expand Down
2 changes: 1 addition & 1 deletion DeepLinkKit/Categories/NSString+DPLQuery.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import <Foundation/Foundation.h>
@import Foundation;

@interface NSString (DPLQuery)

Expand Down
2 changes: 1 addition & 1 deletion DeepLinkKit/Categories/NSString+DPLTrim.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import <Foundation/Foundation.h>
@import Foundation;

@interface NSString (DPLTrim)

Expand Down
6 changes: 2 additions & 4 deletions DeepLinkKit/DeepLink/DPLDeepLink.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#import <Foundation/Foundation.h>


@class DPLDeepLink, DPLAppAction;
@import Foundation;

@class DPLDeepLink;

@interface DPLDeepLink : NSObject <NSCopying, NSMutableCopying>

Expand Down
9 changes: 9 additions & 0 deletions DeepLinkKit/DeepLinkKit_Private.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#import "DPLDeepLink_Private.h"
#import "DPLSerializable.h"
#import "DPLMatchResult.h"
#import "DPLRouteMatcher.h"
#import "DPLRegularExpression.h"
#import "NSString+DPLTrim.h"
#import "NSString+DPLQuery.h"
#import "NSString+DPLJSON.h"
#import "NSObject+DPLJSONObject.h"
2 changes: 1 addition & 1 deletion DeepLinkKit/Protocols/DPLTargetViewControllerProtocol.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import <UIKit/UIKit.h>
@import UIKit;

@class DPLDeepLink;

Expand Down
2 changes: 1 addition & 1 deletion DeepLinkKit/Regex/DPLMatchResult.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import <Foundation/Foundation.h>
@import Foundation;

@interface DPLMatchResult : NSObject

Expand Down
2 changes: 1 addition & 1 deletion DeepLinkKit/Regex/DPLRegularExpression.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import <Foundation/Foundation.h>
@import Foundation;
#import "DPLMatchResult.h"

@interface DPLRegularExpression : NSRegularExpression
Expand Down
2 changes: 1 addition & 1 deletion DeepLinkKit/RouteHandler/DPLRouteHandler.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import <UIKit/UIKit.h>
@import UIKit;
#import "DPLTargetViewControllerProtocol.h"

@class DPLDeepLink;
Expand Down
2 changes: 1 addition & 1 deletion DeepLinkKit/RouteMatcher/DPLRouteMatcher.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import <Foundation/Foundation.h>
@import Foundation;

@class DPLDeepLink;

Expand Down
2 changes: 1 addition & 1 deletion DeepLinkKit/Router/DPLDeepLinkRouter.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import <Foundation/Foundation.h>
@import Foundation;

@class DPLDeepLink;
@protocol DPLRouteHandler;
Expand Down
29 changes: 29 additions & 0 deletions DeepLinkKit/module.modulemap
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
framework module DeepLinkKit {
umbrella header "DeepLinkKit.h"
export *

exclude header "AppLinks.h"
exclude header "DPLDeepLink+AppLinks.h"
exclude header "DPLMutableDeepLink+AppLinks.h"

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
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2015 Button, Inc.
Copyright (c) 2015-2016 Button, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion Podfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
xcodeproj 'DeepLinkKit.xcodeproj', 'Test' => :debug
inhibit_all_warnings!

use_frameworks!

target 'SenderDemo', :exclusive => true do
pod 'DeepLinkKit', :path => '.'
Expand Down
22 changes: 11 additions & 11 deletions Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
PODS:
- DeepLinkKit (1.1.0)
- Expecta (1.0.3)
- KIF (3.3.0):
- KIF/Core (= 3.3.0)
- KIF/Core (3.3.0)
- OCMock (3.2)
- Specta (1.0.4)
- Expecta (1.0.5)
- KIF (3.4.1):
- KIF/Core (= 3.4.1)
- KIF/Core (3.4.1)
- OCMock (3.2.2)
- Specta (1.0.5)

DEPENDENCIES:
- DeepLinkKit (from `.`)
Expand All @@ -19,10 +19,10 @@ EXTERNAL SOURCES:
:path: .

SPEC CHECKSUMS:
DeepLinkKit: 83cba3b73a997fffa9cf5ddda2bcba8bbed0788a
Expecta: 9d1bff6c8b0eeee73a166a2ee898892478927a15
KIF: 0a82046d06f3648799cac522d2d0f7934214caac
OCMock: 28def049ef47f996b515a8eeea958be7ccab2dbb
Specta: 69bb134672aae190a1379ff91df07dad8dd1f869
DeepLinkKit: 386c3cefdc29703ec85b6f2a69ed29657f6289d6
Expecta: e1c022fcd33910b6be89c291d2775b3fe27a89fe
KIF: 2275c6d59c77e5e56f660f006b99d73780130540
OCMock: 18c9b7e67d4c2770e95bb77a9cc1ae0c91fe3835
Specta: ac94d110b865115fe60ff2c6d7281053c6f8e8a2

COCOAPODS: 0.39.0
2 changes: 1 addition & 1 deletion SampleApps/ReceiverDemo/DPLReceiverAppDelegate.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#import "DPLReceiverAppDelegate.h"
#import "DPLProductRouteHandler.h"

#import <DeepLinkKit/DeepLinkKit.h>
@import DeepLinkKit;

@interface DPLReceiverAppDelegate ()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,21 @@
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "60x60",
Expand Down Expand Up @@ -49,10 +59,15 @@
"idiom" : "ipad",
"size" : "76x76",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "83.5x83.5",
"scale" : "2x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import <UIKit/UIKit.h>
#import <DeepLinkKit/DPLTargetViewControllerProtocol.h>
#import <DeepLinkKit/DeepLinkKit.h>

@class DPLProduct;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
#import "DPLProductDataSource.h"
#import "DPLProduct.h"

#import <DeepLinkKit/DPLDeepLink.h>

@interface DPLProductDetailViewController ()

@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
Expand Down
10 changes: 7 additions & 3 deletions SampleApps/ReceiverDemoSwift/DPLReceiverSwiftAppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,17 @@ class DPLReceiverSwiftAppDelegate: UIResponder, UIApplicationDelegate {
return true
}

func application(application: UIApplication, openURL url: NSURL, sourceApplication: String?, annotation: AnyObject?) -> Bool {
func application(application: UIApplication, openURL url: NSURL, sourceApplication: String?, annotation: AnyObject) -> Bool {
self.router.handleURL(url, withCompletion: nil)
return true
}

func application(application: UIApplication, continueUserActivity userActivity: NSUserActivity, restorationHandler: ([AnyObject]!) -> Void) -> Bool {

func application(app: UIApplication, openURL url: NSURL, options: [String : AnyObject]) -> Bool {
self.router.handleURL(url, withCompletion: nil)
return true
}

func application(application: UIApplication, continueUserActivity userActivity: NSUserActivity, restorationHandler: ([AnyObject]?) -> Void) -> Bool {
self.router.handleUserActivity(userActivity, withCompletion: nil)
return true
}
Expand Down
5 changes: 2 additions & 3 deletions Tests/DeepLink/DPLDeepLink_AppLinksSpec.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#import "Specta.h"
#import "DPLDeepLink_Private.h"
#import "DPLDeepLink+AppLinks.h"
#import "DPLMutableDeepLink+AppLinks.h"
@import DeepLinkKit.Private;
@import DeepLinkKit.AppLinks;

SpecBegin(DPLDeepLink_AppLinks)

Expand Down