newnode
所属分类:工具库
开发工具:C
文件大小:0KB
下载次数:0
上传日期:2023-07-05 10:50:34
上 传 者:
sh-1993
说明: NewNode去中心化内容分发网络
(NewNode decentralized Content Distribution Network)
文件列表:
.clang-format (1446, 2023-07-05)
.codecov.yml (135, 2023-07-05)
LICENSE (18046, 2023-07-05)
NewNode.podspec (628, 2023-07-05)
NewNode.xcframework/ (0, 2023-07-05)
NewNode.xcframework/Info.plist (1562, 2023-07-05)
NewNode.xcframework/ios-arm64/ (0, 2023-07-05)
NewNode.xcframework/ios-arm64/Headers/ (0, 2023-07-05)
NewNode.xcframework/ios-arm64/Headers/NewNode.h (499, 2023-07-05)
NewNode.xcframework/ios-arm64/Headers/module.modulemap (55, 2023-07-05)
NewNode.xcframework/ios-arm64/libnewnode.a (3853240, 2023-07-05)
NewNode.xcframework/ios-arm64_x86_64-simulator/ (0, 2023-07-05)
NewNode.xcframework/ios-arm64_x86_64-simulator/Headers/ (0, 2023-07-05)
NewNode.xcframework/ios-arm64_x86_64-simulator/Headers/NewNode.h (499, 2023-07-05)
NewNode.xcframework/ios-arm64_x86_64-simulator/Headers/module.modulemap (55, 2023-07-05)
NewNode.xcframework/ios-arm64_x86_64-simulator/libnewnode.a (7547848, 2023-07-05)
NewNode.xcframework/ios-x86_64-maccatalyst/ (0, 2023-07-05)
NewNode.xcframework/ios-x86_64-maccatalyst/Headers/ (0, 2023-07-05)
NewNode.xcframework/ios-x86_64-maccatalyst/Headers/NewNode.h (499, 2023-07-05)
NewNode.xcframework/ios-x86_64-maccatalyst/Headers/module.modulemap (55, 2023-07-05)
NewNode.xcframework/ios-x86_64-maccatalyst/libnewnode.a (4003984, 2023-07-05)
Package.swift (362, 2023-07-05)
android.c (22308, 2023-07-05)
android/ (0, 2023-07-05)
android/build.gradle (1905, 2023-07-05)
android/examples/ (0, 2023-07-05)
android/examples/WebViewSample/ (0, 2023-07-05)
android/examples/WebViewSample/WebViewSample.iml (944, 2023-07-05)
android/examples/WebViewSample/app/ (0, 2023-07-05)
android/examples/WebViewSample/app/app.iml (11255, 2023-07-05)
android/examples/WebViewSample/app/build.gradle (1201, 2023-07-05)
android/examples/WebViewSample/app/proguard-rules.pro (928, 2023-07-05)
android/examples/WebViewSample/app/src/ (0, 2023-07-05)
android/examples/WebViewSample/app/src/main/ (0, 2023-07-05)
android/examples/WebViewSample/app/src/main/AndroidManifest.xml (916, 2023-07-05)
android/examples/WebViewSample/app/src/main/java/ (0, 2023-07-05)
... ...
# NewNode
## Integration status
[![GitHub release](https://img.shields.io/github/release/clostra/newnode.svg)](https://github.com/clostra/newnode/releases/)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
## Android
Add to your build.gradle:
```groovy
implementation 'com.clostra.newnode:newnode:+'
```
Add to your Application or Activity:
```java
import com.clostra.newnode.NewNode;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
NewNode.init();
}
```
See [`android/examples/WebViewSample`](https://github.com/clostra/newnode/tree/master/android/examples/WebViewSample) for an example.
## iOS
Add this repo as a Swift Package.
ObjC:
```objc
NSURLSessionConfiguration *config = NSURLSessionConfiguration.defaultSessionConfiguration;
config.connectionProxyDictionary = NewNode.connectionProxyDictionary;
NSURLSession *session = [NSURLSession sessionWithConfiguration:config];
```
Swift:
```swift
let config = URLSessionConfiguration.default
config.connectionProxyDictionary = NewNode.connectionProxyDictionary
let session = URLSession(configuration: config)
```
See [`ios/examples/CustomHTTPProtocol`](https://github.com/clostra/newnode/tree/master/ios/examples/CustomHTTPProtocol) for an example.
## macOS / Linux
Clone this repo and build NewNode:
```bash
git clone --recurse-submodules https://github.com/clostra/newnode.git
cd newnode
./build.sh
```
Then, run it:
```bash
./client
```
近期下载者:
相关文件:
收藏者: