You've already forked android-client
mirror of
https://github.com/netbirdio/android-client.git
synced 2026-05-22 17:10:49 -07:00
f81f81ce6e
Rewrite the client in native Java. There were no new features added in this change, but that's the first step in moving to a faster development cycle for NetBird client.
21 lines
619 B
Bash
Executable File
21 lines
619 B
Bash
Executable File
#!/bin/bash
|
|
# Script to build NetBird mobile bindings using gomobile
|
|
# Usage: ./script.sh [version]
|
|
# If no version is provided, "development" is used as default
|
|
set -e
|
|
|
|
# Set version from the first argument or use "development" as default
|
|
version=${1:-development}
|
|
app_path=$(pwd)
|
|
|
|
cd netbird
|
|
gomobile init
|
|
|
|
CGO_ENABLED=0 gomobile bind \
|
|
-o $app_path/gomobile/netbird.aar \
|
|
-javapkg=io.netbird.gomobile \
|
|
-ldflags="-X golang.zx2c4.com/wireguard/ipc.socketDirectory=/data/data/io.netbird.client/cache/wireguard -X github.com/netbirdio/netbird/version.version=$version" \
|
|
$(pwd)/client/android
|
|
|
|
cd - > /dev/null
|