File tree Expand file tree Collapse file tree 3 files changed +24
-4
lines changed
Expand file tree Collapse file tree 3 files changed +24
-4
lines changed Original file line number Diff line number Diff line change 33// JavaScriptBridge
44//
55// Created by kishikawa katsumi on 2014/01/04.
6- // Copyright (c) 2014年 kishikawa katsumi. All rights reserved.
6+ // Copyright (c) 2014 kishikawa katsumi. All rights reserved.
77//
88
99#import < Foundation/Foundation.h>
1010
1111@interface JSBSuperClassProxy : NSProxy
1212
13+ @property (nonatomic , readonly ) id target;
14+
15+ - (id )initWithTarget : (id )target ;
16+
1317@end
Original file line number Diff line number Diff line change 33// JavaScriptBridge
44//
55// Created by kishikawa katsumi on 2014/01/04.
6- // Copyright (c) 2014年 kishikawa katsumi. All rights reserved.
6+ // Copyright (c) 2014 kishikawa katsumi. All rights reserved.
77//
88
99#import " JSBSuperClassProxy.h"
1010
1111@implementation JSBSuperClassProxy
1212
13+ - (id )initWithTarget : (id )target
14+ {
15+ _target = target;
16+ return self;
17+ }
18+
19+ - (void )forwardInvocation : (NSInvocation *)invocation
20+ {
21+ [invocation performSelector: NSSelectorFromString (@" invokeSuper" )];
22+ }
23+
24+ - (NSMethodSignature *)methodSignatureForSelector : (SEL )sel
25+ {
26+ return [self .target methodSignatureForSelector: sel];
27+ }
28+
1329@end
Original file line number Diff line number Diff line change @@ -8,12 +8,12 @@ task :default => [:clean, :test]
88
99desc "clean"
1010task :clean do
11- sh "xcodebuild clean -workspace #{ WORKSPASE } -scheme #{ SCHEME } | xcpretty -c "
11+ sh "xcodebuild clean -workspace #{ WORKSPASE } -scheme #{ SCHEME } "
1212end
1313
1414desc "run unit tests"
1515task :test do
1616 DESTINATIONS . each do |destination |
17- sh "xcodebuild test -sdk iphonesimulator -workspace #{ WORKSPASE } -scheme #{ SCHEME } -configuration Debug -destination \" #{ destination } \" | xcpretty -c "
17+ sh "xcodebuild test -sdk iphonesimulator -workspace #{ WORKSPASE } -scheme #{ SCHEME } -configuration Debug -destination \" #{ destination } \" "
1818 end
1919end
You can’t perform that action at this time.
0 commit comments