Mobile SDK
Mysterium node mobile components
All SDK libraries available as pre-built packages on the GitHub release page. It can be downloaded and installed manually in your preferred way.
We also support several standard ways of installing the SDK using dependency managers.
Android
We are publishing an Android SDK library to our Bintray repository.
Older releases are available here: https://search.maven.org/search?q=g:network.mysterium
To add dependency, add the following to your build.gradle
:
repositories {
maven {
url 'https://dl.bintray.com/mysteriumnetwork/maven'
}
}
dependencies {
implementation 'network.mysterium:mobile-node:0.40.0'
}
iOS
It is possible to get the iOS SDK library using Carthage dependency manager.
You can follow the Carthage quick start guide to get familiar how to use it or just use the following steps:
- Carthage should be installed in the system.
Cartfile
should be created in the same directory where.xcodeproj
or.xcworkspac
is located.-
Cartfile
should contain the following line:github "mysteriumnetwork/node" ~> 0.5.0
.mysteriumnetwork/node
- is a path to the GitHub repository.0.5.0
- is the desired version of iOS SDK.
- Execute the following command to fetch the required library:
carthage update
. - A
Cartfile.resolved
file and aCarthage
directory will appear in the same directory where your.xcodeproj
or.xcworkspace
is. - Drag the built
.framework
binaries fromCarthage/Build/<platform>
into your application’s Xcode project.
If you are going to use
dev
version of the SDK libraryCartfile
should contain version without postfix. For example, if you want to install0.5-rc
versionCartfile
should contain the following line:github "mysteriumnetwork/node" ~> 0.5
.