🔧 specify go mobile init
This commit is contained in:
parent
473ae0c9b0
commit
b4fe5bcce4
|
@ -3,7 +3,7 @@
|
||||||
cd "$( cd "$( dirname "$0" )" && pwd )/.."
|
cd "$( cd "$( dirname "$0" )" && pwd )/.."
|
||||||
|
|
||||||
cd go/mobile
|
cd go/mobile
|
||||||
go get golang.org/x/mobile/cmd/gobind
|
gomobile init
|
||||||
gomobile bind -androidapi 19 -target=android/arm -o lib/Mobile.aar ./
|
gomobile bind -androidapi 19 -target=android/arm -o lib/Mobile.aar ./
|
||||||
cd ../..
|
cd ../..
|
||||||
flutter build apk --target-platform android-arm
|
flutter build apk --target-platform android-arm
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
cd "$( cd "$( dirname "$0" )" && pwd )/.."
|
cd "$( cd "$( dirname "$0" )" && pwd )/.."
|
||||||
|
|
||||||
cd go/mobile
|
cd go/mobile
|
||||||
go get golang.org/x/mobile/cmd/gobind
|
gomobile init
|
||||||
gomobile bind -androidapi 19 -target=android/arm64 -o lib/Mobile.aar ./
|
gomobile bind -androidapi 19 -target=android/arm64 -o lib/Mobile.aar ./
|
||||||
cd ../..
|
cd ../..
|
||||||
flutter build apk --target-platform android-arm64
|
flutter build apk --target-platform android-arm64
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
cd "$( cd "$( dirname "$0" )" && pwd )/.."
|
cd "$( cd "$( dirname "$0" )" && pwd )/.."
|
||||||
|
|
||||||
cd go/mobile
|
cd go/mobile
|
||||||
go get golang.org/x/mobile/cmd/gobind
|
gomobile init
|
||||||
gomobile bind -androidapi 19 -target=android/amd64 -o lib/Mobile.aar ./
|
gomobile bind -androidapi 19 -target=android/amd64 -o lib/Mobile.aar ./
|
||||||
cd ../..
|
cd ../..
|
||||||
flutter build apk --target-platform android-x64
|
flutter build apk --target-platform android-x64
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
cd "$( cd "$( dirname "$0" )" && pwd )/.."
|
cd "$( cd "$( dirname "$0" )" && pwd )/.."
|
||||||
|
|
||||||
cd go/mobile
|
cd go/mobile
|
||||||
go get golang.org/x/mobile/cmd/gobind
|
gomobile init
|
||||||
gomobile bind -androidapi 19 -target=android/386 -o lib/Mobile.aar ./
|
gomobile bind -androidapi 19 -target=android/386 -o lib/Mobile.aar ./
|
||||||
cd ../..
|
cd ../..
|
||||||
flutter build apk --target-platform android-x86
|
flutter build apk --target-platform android-x86
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
cd "$( cd "$( dirname "$0" )" && pwd )/.."
|
cd "$( cd "$( dirname "$0" )" && pwd )/.."
|
||||||
|
|
||||||
cd go/mobile
|
cd go/mobile
|
||||||
go get golang.org/x/mobile/cmd/gobind
|
gomobile init
|
||||||
gomobile bind -iosversion 11.0 -target=ios -o lib/Mobile.xcframework ./
|
gomobile bind -iosversion 11.0 -target=ios -o lib/Mobile.xcframework ./
|
||||||
cd ../..
|
cd ../..
|
||||||
flutter build ios --release --no-codesign
|
flutter build ios --release --no-codesign
|
||||||
|
|
Loading…
Reference in New Issue