Skip to content

lestar348/XRayCoreIOSWrapper

Repository files navigation

IOS package for using Xray core on client side

Framework source code in Mobile wrapper XrayCore, this wrapper supports macos, ios and ios simulator

Usage

import XRayCoreIOSWrapper


// Set assets direcory if need (this directory can include geosite.dat, geoip.dat or other files, witch satisfies the established xray format)
XRaySetAssetsDirectory(AppConstant.assetDirectoryPath)

// let data = ... 

// Create error instanse
var error: NSError? = nil

// Start xray core
XRayStartXray(data, self, &error)

// Check errors
try error.flatMap { throw $0 }

About

IOS package for using Xray core on client side

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published