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.
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.
Clone this repo and build NewNode:
git clone --recurse-submodules https://github.com/clostra/newnode.git
cd newnode
./build.sh
Then, run it:
./client