@@ -731,7 +731,7 @@ func doAndroidArchive(cmdline []string) {
731
731
// Build the Android archive and Maven resources
732
732
build .MustRun (goTool ("get" , "golang.org/x/mobile/cmd/gomobile" , "golang.org/x/mobile/cmd/gobind" ))
733
733
build .MustRun (gomobileTool ("init" , "--ndk" , os .Getenv ("ANDROID_NDK" )))
734
- build .MustRun (gomobileTool ("bind" , "--target" , "android" , "--javapkg" , "org.ethereum" , "-v" , "github.com/ethereum/go-ethereum/mobile" ))
734
+ build .MustRun (gomobileTool ("bind" , "-ldflags" , "-s -w" , "- -target" , "android" , "--javapkg" , "org.ethereum" , "-v" , "github.com/ethereum/go-ethereum/mobile" ))
735
735
736
736
if * local {
737
737
// If we're building locally, copy bundle to build dir and skip Maven
@@ -852,7 +852,7 @@ func doXCodeFramework(cmdline []string) {
852
852
// Build the iOS XCode framework
853
853
build .MustRun (goTool ("get" , "golang.org/x/mobile/cmd/gomobile" , "golang.org/x/mobile/cmd/gobind" ))
854
854
build .MustRun (gomobileTool ("init" ))
855
- bind := gomobileTool ("bind" , "--target" , "ios" , "--tags" , "ios" , "-v" , "github.com/ethereum/go-ethereum/mobile" )
855
+ bind := gomobileTool ("bind" , "-ldflags" , "-s -w" , "- -target" , "ios" , "--tags" , "ios" , "-v" , "github.com/ethereum/go-ethereum/mobile" )
856
856
857
857
if * local {
858
858
// If we're building locally, use the build folder and stop afterwards
0 commit comments