mirror of
https://github.com/netbirdio/ios-client.git
synced 2026-09-23 09:28:33 -07:00
Message: When switching between wifi and cellular, the Go engine fires rapid state changes (connecting → disconnecting → connected) that confused the UI animation state machine, causing it to get stuck in "Connecting..." state. Changes: - Add isRestarting flag to suppress intermediate state updates during restart - Add recovery path in playDisconnectingLoop when engine reconnects - Add status polling guard to prevent concurrent fetchData calls - Add AppLogger for unified Swift logging to shared container - Update share logs to export both engine and app log files
22 lines
461 B
Bash
Executable File
22 lines
461 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
rn_app_path=$(pwd)
|
|
netbirdPath=$1
|
|
if [ -z "${1+x}" ]
|
|
then
|
|
netbirdPath=${GOPATH}/src/github.com/netbirdio/netbird
|
|
fi
|
|
|
|
version=$2
|
|
if [ -z "${2+x}" ]
|
|
then
|
|
version=development
|
|
fi
|
|
|
|
cd $netbirdPath
|
|
gomobile init
|
|
CGO_ENABLED=0 gomobile bind -target=ios -bundleid=io.netbird.framework -ldflags="-X github.com/netbirdio/netbird/version.version=$version" -o $rn_app_path/NetBird/NetBirdSDK.xcframework $netbirdPath/client/ios/NetBirdSDK
|
|
|
|
cd -
|