loki-network-flutter-app
Go to file
Jeff Becker e5856de1d3
commit new logo
2021-04-12 09:46:22 -04:00
android commit new logo 2021-04-12 09:46:22 -04:00
assets/images commit new logo 2021-04-12 09:46:22 -04:00
gradle/wrapper Got it working 2021-03-22 02:41:03 +01:00
ios commit new logo 2021-04-12 09:46:22 -04:00
lib It is working now yay ¯\_(ツ)_/¯ 2021-04-10 22:24:21 +02:00
lokinet_lib It is working now yay ¯\_(ツ)_/¯ 2021-04-10 22:24:21 +02:00
test Default Template 2021-03-14 20:28:45 +01:00
.gitignore Default Template 2021-03-14 20:28:45 +01:00
.metadata Default Template 2021-03-14 20:28:45 +01:00
README.md update readme 2021-04-12 09:07:19 -04:00
gradlew Got it working 2021-03-22 02:41:03 +01:00
gradlew.bat Got it working 2021-03-22 02:41:03 +01:00
local.properties Got it working 2021-03-22 02:41:03 +01:00
pubspec.lock It is working now yay ¯\_(ツ)_/¯ 2021-04-10 22:24:21 +02:00
pubspec.yaml It is working now yay ¯\_(ツ)_/¯ 2021-04-10 22:24:21 +02:00

README.md

Lokinet on the Go

An app to interact with Lokinet as a vpn tunnel for android

building

build requirements:

  • flutter 2.x
  • lokinet android jni libs

first you need to get a build of the native libs for android lokinet

native libs

you have 2 paths for this:

  • get a ci build of the apk and extract the libs
  • do it yourself (takes at least 30 minutes and a non windows build environment)

libs from ci

find the latest android ci build from our ci server

  • extract the tarball
  • extract the apk
  • copy libs/* to lokinet_lib/android/src/main/jniLibs/

DIY

get the lokinet repo source and set up your environment:

$ git clone --recursive https://github.com/oxen-io/loki-network
$ cd loki-network/android
$ echo "# local.properites" > local.properties
$ echo "sdk.dir=/path/to/android/sdk" >> local.properties
$ echo "ndk.dir=/path/to/android/ndk" >> local.properties

build it and wait for a bit:

$ gradle assembleDebug

copy the libs over:

$ cp -av build/intermediates/cmake/debug/obj/* /path/to/lokinet-mobile/lokinet_lib/android/src/main/jniLibs/

build with flutter

now build the project with flutter:

$ flutter build apk --debug

if succesful it will produce an apk at build/app/outputs/flutter-apk/app-debug.apk which you can run