From 4d8c316cd9220f6c5f8dbfc4f4f9a99a36073f24 Mon Sep 17 00:00:00 2001 From: Burcu Dogan Date: Sat, 20 Jun 2015 16:22:28 -0700 Subject: [PATCH] cmd/gomobile: fix the aar suffix check Change-Id: Iecfa5326b4b2e234fbbd9e4d1815cf782035efbf Reviewed-on: https://go-review.googlesource.com/11310 Reviewed-by: David Crawshaw --- cmd/gomobile/bind.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/gomobile/bind.go b/cmd/gomobile/bind.go index 5a270d8..69d7ef6 100644 --- a/cmd/gomobile/bind.go +++ b/cmd/gomobile/bind.go @@ -326,7 +326,7 @@ func buildAAR(androidDir string, pkg *build.Package) (err error) { if *buildO == "" { *buildO = pkg.Name + ".aar" } - if !strings.HasSuffix(*buildO, ".apk") { + if !strings.HasSuffix(*buildO, ".aar") { return fmt.Errorf("output file name %q does not end in '.aar'", *buildO) } if !buildN {