Skip to content

Commit b7e0dec

Browse files
authored
travis, build: switch to NDK 19b, fix gomobile builds (#19171)
* travis, build: switch to NDK 19b, fix gomobile builds * travis, build: move NDK into its final bundle location * travis: disable Android build on PRs once again
1 parent 6d652ce commit b7e0dec

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

‎.travis.yml‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,9 @@ matrix:
165165
- export GOPATH=$HOME/go
166166
script:
167167
# Build the Android archive and upload it to Maven Central and Azure
168-
- curl https://dl.google.com/android/repository/android-ndk-r17b-linux-x86_64.zip -o android-ndk-r17b.zip
169-
- unzip -q android-ndk-r17b.zip && rm android-ndk-r17b.zip
170-
- mv android-ndk-r17b $HOME
171-
- export ANDROID_NDK=$HOME/android-ndk-r17b
168+
- curl https://dl.google.com/android/repository/android-ndk-r19b-linux-x86_64.zip -o android-ndk-r19b.zip
169+
- unzip -q android-ndk-r19b.zip && rm android-ndk-r19b.zip
170+
- mv android-ndk-r19b $ANDROID_HOME/ndk-bundle
172171

173172
- mkdir -p $GOPATH/src/github.com/ethereum
174173
- ln -s `pwd` $GOPATH/src/github.com/ethereum/go-ethereum

‎build/ci.go‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -800,12 +800,8 @@ func doAndroidArchive(cmdline []string) {
800800
if os.Getenv("ANDROID_HOME") == "" {
801801
log.Fatal("Please ensure ANDROID_HOME points to your Android SDK")
802802
}
803-
if os.Getenv("ANDROID_NDK") == "" {
804-
log.Fatal("Please ensure ANDROID_NDK points to your Android NDK")
805-
}
806803
// Build the Android archive and Maven resources
807804
build.MustRun(goTool("get", "golang.org/x/mobile/cmd/gomobile", "golang.org/x/mobile/cmd/gobind"))
808-
build.MustRun(gomobileTool("init", "--ndk", os.Getenv("ANDROID_NDK")))
809805
build.MustRun(gomobileTool("bind", "-ldflags", "-s -w", "--target", "android", "--javapkg", "org.ethereum", "-v", "github.com/ethereum/go-ethereum/mobile"))
810806

811807
if *local {

0 commit comments

Comments
 (0)