Skip to content

Commit 2d4acdc

Browse files
author
duwen
committed
update doc
1 parent e260a8b commit 2d4acdc

File tree

7 files changed

+17
-0
lines changed

7 files changed

+17
-0
lines changed

File

Whitespace-only changes.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# DSBridge
22

3+
![dsBridge](https://github.com/wendux/DSBridge-IOS/raw/master/img/dsbridge.png)
4+
35
[![cocoapods](https://img.shields.io/cocoapods/v/dsBridge.svg?style=flat)](https://github.com/wendux/DSBridge-IOS) ![](https://img.shields.io/badge/language-object--c-yellow.svg) [![](https://travis-ci.org/wendux/DSBridge-IOS.svg?branch=master)](https://travis-ci.org/wendux/DSBridge-IOS) [![MIT Licence](https://img.shields.io/packagist/l/doctrine/orm.svg)](https://opensource.org/licenses/mit-license.php) ![support](https://img.shields.io/badge/support-IOS%208%2B-green.svg) ![platform](https://img.shields.io/badge/platform-ios|osx-ff69b4.svg) [![GitHub last commit](https://img.shields.io/github/last-commit/google/skia.svg?color=blue)]() ![latest](https://img.shields.io/badge/latest-v3.0.x-orange.svg)
46

57
> Modern cross-platform JavaScript bridge, through which you can invoke each other's functions synchronously or asynchronously between JavaScript and native applications.

dsbridge.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
818F0BCD1E18E6D200679925 /* libdsbridge.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 818F0B8E1E18C08100679925 /* libdsbridge.a */; };
2727
818F0BD01E1A820B00679925 /* test.html in Resources */ = {isa = PBXBuildFile; fileRef = 818F0BCF1E1A820B00679925 /* test.html */; };
2828
81CFC8602029456C00CF9D83 /* readme-chs.md in Sources */ = {isa = PBXBuildFile; fileRef = 81CFC85F2029456C00CF9D83 /* readme-chs.md */; };
29+
81CFC868202C42AA00CF9D83 /* img in Resources */ = {isa = PBXBuildFile; fileRef = 81CFC867202C42AA00CF9D83 /* img */; };
2930
81EBBFFF1EF24DDE00D1E4C1 /* README.md in Sources */ = {isa = PBXBuildFile; fileRef = 81EBBFFD1EF24DDE00D1E4C1 /* README.md */; };
3031
/* End PBXBuildFile section */
3132

@@ -84,6 +85,7 @@
8485
818F0BCF1E1A820B00679925 /* test.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; path = test.html; sourceTree = "<group>"; };
8586
81CFC85F2029456C00CF9D83 /* readme-chs.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = "readme-chs.md"; sourceTree = "<group>"; };
8687
81CFC861202953CB00CF9D83 /* .travis.yml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = .travis.yml; sourceTree = "<group>"; };
88+
81CFC867202C42AA00CF9D83 /* img */ = {isa = PBXFileReference; lastKnownFileType = folder; path = img; sourceTree = "<group>"; };
8789
81EBBFF71EF246BD00D1E4C1 /* dsBridge.podspec */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = dsBridge.podspec; sourceTree = "<group>"; };
8890
81EBBFFD1EF24DDE00D1E4C1 /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
8991
/* End PBXFileReference section */
@@ -110,6 +112,7 @@
110112
818F0B851E18C08100679925 = {
111113
isa = PBXGroup;
112114
children = (
115+
81CFC867202C42AA00CF9D83 /* img */,
113116
81CFC861202953CB00CF9D83 /* .travis.yml */,
114117
81CFC85F2029456C00CF9D83 /* readme-chs.md */,
115118
81EBBFFD1EF24DDE00D1E4C1 /* README.md */,
@@ -265,6 +268,7 @@
265268
isa = PBXResourcesBuildPhase;
266269
buildActionMask = 2147483647;
267270
files = (
271+
81CFC868202C42AA00CF9D83 /* img in Resources */,
268272
818F0BD01E1A820B00679925 /* test.html in Resources */,
269273
818F0BB01E18C0AA00679925 /* LaunchScreen.storyboard in Resources */,
270274
818F0BAD1E18C0AA00679925 /* Assets.xcassets in Resources */,

dsbridgedemo/JsApiTest.m

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,14 @@ -(void)onTimer:t{
5656
}
5757
}
5858

59+
/**
60+
* Note: This method is for Fly.js
61+
* In browser, Ajax requests are sent by browser, but Fly can
62+
* redirect requests to native, more about Fly see https://github.com/wendux/fly
63+
* @param requestInfo passed by fly.js, more detail reference https://wendux.github.io/dist/#/doc/flyio-en/native
64+
*/
65+
-(void)onAjaxRequest:(NSDictionary *) requestInfo :(void (^)(NSString * _Nullable result,BOOL complete))completionHandle{
66+
67+
}
68+
5969
@end

dsbridgedemo/ViewController.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ - (void)viewDidLoad {
9494
[dwebview setJavascriptCloseWindowListener:^{
9595
NSLog(@"window.close called");
9696
} ];
97+
9798
}
9899

99100

img/dsbridge.png

168 KB
Loading

img/logo.png

11.1 KB
Loading

0 commit comments

Comments
 (0)