🔧 specify go mobile init

This commit is contained in:
niuhuan 2023-11-17 13:02:49 +08:00
parent 473ae0c9b0
commit b4fe5bcce4
5 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@
cd "$( cd "$( dirname "$0" )" && pwd )/.."
cd go/mobile
go get golang.org/x/mobile/cmd/gobind
gomobile init
gomobile bind -androidapi 19 -target=android/arm -o lib/Mobile.aar ./
cd ../..
flutter build apk --target-platform android-arm

View File

@ -3,7 +3,7 @@
cd "$( cd "$( dirname "$0" )" && pwd )/.."
cd go/mobile
go get golang.org/x/mobile/cmd/gobind
gomobile init
gomobile bind -androidapi 19 -target=android/arm64 -o lib/Mobile.aar ./
cd ../..
flutter build apk --target-platform android-arm64

View File

@ -3,7 +3,7 @@
cd "$( cd "$( dirname "$0" )" && pwd )/.."
cd go/mobile
go get golang.org/x/mobile/cmd/gobind
gomobile init
gomobile bind -androidapi 19 -target=android/amd64 -o lib/Mobile.aar ./
cd ../..
flutter build apk --target-platform android-x64

View File

@ -3,7 +3,7 @@
cd "$( cd "$( dirname "$0" )" && pwd )/.."
cd go/mobile
go get golang.org/x/mobile/cmd/gobind
gomobile init
gomobile bind -androidapi 19 -target=android/386 -o lib/Mobile.aar ./
cd ../..
flutter build apk --target-platform android-x86

View File

@ -3,7 +3,7 @@
cd "$( cd "$( dirname "$0" )" && pwd )/.."
cd go/mobile
go get golang.org/x/mobile/cmd/gobind
gomobile init
gomobile bind -iosversion 11.0 -target=ios -o lib/Mobile.xcframework ./
cd ../..
flutter build ios --release --no-codesign