Skip to content

Commit

Permalink
Add support for static lib via cocoapods
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubvano committed May 8, 2018
1 parent 108154e commit 3869018
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
github "Quick/Nimble" "v7.0.3"
github "Quick/Quick" "v1.2.0"
github "Swinject/Swinject" "2.3.0"
github "Swinject/Swinject" "2.4.0"
7 changes: 6 additions & 1 deletion Sources/SwinjectStoryboard+SetUp.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@

#import <Foundation/Foundation.h>
#import <SwinjectStoryboard/SwinjectStoryboardProtocol.h>
#import <SwinjectStoryboard/SwinjectStoryboard-Swift.h>

#if __has_include(<SwinjectStoryboard/SwinjectStoryboard-Swift.h>)
#import <SwinjectStoryboard/SwinjectStoryboard-Swift.h>
#elif __has_include("SwinjectStoryboard-Swift.h")
#import "SwinjectStoryboard-Swift.h"
#endif

@interface SwinjectStoryboard (SetUp)

Expand Down
7 changes: 6 additions & 1 deletion Sources/iOS-tvOS/UIStoryboard+Swizzling.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@

#import "UIStoryboard+Swizzling.h"
#import <objc/runtime.h>
#import <SwinjectStoryboard/SwinjectStoryboard-Swift.h>
#import <SwinjectStoryboard/SwinjectStoryboardProtocol.h>

#if __has_include(<SwinjectStoryboard/SwinjectStoryboard-Swift.h>)
#import <SwinjectStoryboard/SwinjectStoryboard-Swift.h>
#elif __has_include("SwinjectStoryboard-Swift.h")
#import "SwinjectStoryboard-Swift.h"
#endif

@implementation UIStoryboard (Swizzling)

+ (void)load {
Expand Down
2 changes: 1 addition & 1 deletion SwinjectStoryboard.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ Pod::Spec.new do |s|
s.ios.deployment_target = '8.0'
s.osx.deployment_target = '10.10'
s.tvos.deployment_target = '9.0'
s.dependency 'Swinject', '~> 2.3'
s.dependency 'Swinject', '~> 2.4'
s.requires_arc = true
end

0 comments on commit 3869018

Please sign in to comment.