From b4fe5bcce49542c01c959512525995a459f0ac66 Mon Sep 17 00:00:00 2001 From: niuhuan Date: Fri, 17 Nov 2023 13:02:49 +0800 Subject: [PATCH] :wrench: specify go mobile init --- scripts/build-apk-arm.sh | 2 +- scripts/build-apk-arm64.sh | 2 +- scripts/build-apk-x64.sh | 2 +- scripts/build-apk-x86.sh | 2 +- scripts/build-ipa.sh | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/build-apk-arm.sh b/scripts/build-apk-arm.sh index a535036..86bf89b 100644 --- a/scripts/build-apk-arm.sh +++ b/scripts/build-apk-arm.sh @@ -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 diff --git a/scripts/build-apk-arm64.sh b/scripts/build-apk-arm64.sh index 883dcc9..811a3be 100644 --- a/scripts/build-apk-arm64.sh +++ b/scripts/build-apk-arm64.sh @@ -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 diff --git a/scripts/build-apk-x64.sh b/scripts/build-apk-x64.sh index 37bcc73..0a93af0 100644 --- a/scripts/build-apk-x64.sh +++ b/scripts/build-apk-x64.sh @@ -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 diff --git a/scripts/build-apk-x86.sh b/scripts/build-apk-x86.sh index 6872ceb..880fa70 100644 --- a/scripts/build-apk-x86.sh +++ b/scripts/build-apk-x86.sh @@ -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 diff --git a/scripts/build-ipa.sh b/scripts/build-ipa.sh index 00c7a05..f8462a6 100644 --- a/scripts/build-ipa.sh +++ b/scripts/build-ipa.sh @@ -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