Swiftpack.co - clostra/newnode as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by clostra.
clostra/newnode 2.1.2
NewNode decentralized Content Distribution Network
⭐️ 377
🕓 12 weeks ago
iOS
.package(url: "https://github.com/clostra/newnode.git", from: "2.1.2")

NewNode

Integration status

GitHub release Carthage compatible

Android

Add to your build.gradle:

implementation 'com.clostra.newnode:newnode:+'

Add to your Application or Activity:

import com.clostra.newnode.NewNode;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    NewNode.init();
}

See android/examples/WebViewSample for an example.

iOS

Add this repo as a Swift Package.

ObjC:

NSURLSessionConfiguration *config = NSURLSessionConfiguration.defaultSessionConfiguration;
config.connectionProxyDictionary = NewNode.connectionProxyDictionary;
NSURLSession *session = [NSURLSession sessionWithConfiguration:config];

Swift:

let config = URLSessionConfiguration.default
config.connectionProxyDictionary = NewNode.connectionProxyDictionary
let session = URLSession(configuration: config)

See ios/examples/CustomHTTPProtocol for an example.

macOS / Linux

Clone this repo and build NewNode:

git clone --recurse-submodules https://github.com/clostra/newnode.git
cd newnode
./build.sh

Then, run it:

./client

GitHub

link
Stars: 377
Last commit: 8 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

v2.1.2
12 weeks ago

Release of version 2.1.2

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics