Files
ios-client/build-go-lib.sh
mlsmaycon 08c206efe2 Fix UI stuck in connecting state during network type switches
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
2025-12-13 22:38:57 +01:00

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 -