-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
zhoufan123
committed
Aug 4, 2020
1 parent
4c0dc78
commit 21db7b7
Showing
19 changed files
with
505 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+12.5 KB
(130%)
Example/FZRouter.xcworkspace/xcuserdata/franzhou.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>fran</key> | ||
<dict> | ||
<key>www.franzhou.com</key> | ||
<dict> | ||
<key>routerTest</key> | ||
<array> | ||
<dict> | ||
<key>target</key> | ||
<string>RouterDemo</string> | ||
<key>actions</key> | ||
<dict> | ||
<key>router_action</key> | ||
<string>testRouterAction</string> | ||
</dict> | ||
</dict> | ||
<dict> | ||
<key>actions</key> | ||
<dict> | ||
<key>oc_router_action</key> | ||
<string>testOCRouterAction</string> | ||
<key>oc_router_action_2</key> | ||
<string>testOCRouterAction2</string> | ||
</dict> | ||
<key>target</key> | ||
<string>OCRouterDemo</string> | ||
</dict> | ||
</array> | ||
</dict> | ||
</dict> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// | ||
// Use this file to import your target's public headers that you would like to expose to Swift. | ||
// | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// | ||
// Target_OCRouterDemo.h | ||
// FZRouter_Example | ||
// | ||
// Created by FranZhou on 2020/8/4. | ||
// Copyright © 2020 CocoaPods. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface Target_OCRouterDemo : NSObject | ||
|
||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// | ||
// Target_OCRouterDemo.m | ||
// FZRouter_Example | ||
// | ||
// Created by FranZhou on 2020/8/4. | ||
// Copyright © 2020 CocoaPods. All rights reserved. | ||
// | ||
|
||
#import "Target_OCRouterDemo.h" | ||
#import <FZRouter/FZRouter-Swift.h> | ||
|
||
@implementation Target_OCRouterDemo | ||
|
||
+ (void)testOCRouterAction:(id<FZRouterDataPacketProtocol>)dataPacket{ | ||
|
||
NSLog(@"testOCRouterAction parameters : %@", dataPacket.parameters); | ||
|
||
dataPacket.returnValue = @"Target_OCRouterDemo.testOCRouterAction"; | ||
} | ||
|
||
+ (void)testOCRouterAction2:(id<FZRouterDataPacketProtocol>)dataPacket{ | ||
|
||
NSLog(@"%@", dataPacket.parameters); | ||
|
||
dataPacket.returnValue = @(9527); | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// | ||
// Target_RouterDemo.swift | ||
// FZRouter_Example | ||
// | ||
// Created by FranZhou on 2020/8/4. | ||
// Copyright © 2020 CocoaPods. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
import FZRouter | ||
|
||
@objc(Target_RouterDemo) | ||
class Target_RouterDemo: NSObject { | ||
|
||
@objc class func testRouterAction(_ dataPacket: FZRouterDataPacketProtocol) { | ||
|
||
if let params = dataPacket.parameters { | ||
print("testRouterAction parameters : \(params.description)") | ||
} | ||
|
||
dataPacket.returnValue = "Target_RouterDemo.testRouterAction" | ||
|
||
} | ||
|
||
@objc class func urlRouter(_ dataPacket: FZRouterDataPacketProtocol) { | ||
if let params = dataPacket.parameters { | ||
print("urlRouter parameters : \(params.description)") | ||
} | ||
|
||
dataPacket.returnValue = "Target_RouterDemo.urlRouter" | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.