cmd/gomobile: fix the aar suffix check
Change-Id: Iecfa5326b4b2e234fbbd9e4d1815cf782035efbf Reviewed-on: https://go-review.googlesource.com/11310 Reviewed-by: David Crawshaw <crawshaw@golang.org>
This commit is contained in:
parent
d1e00c1c1c
commit
4d8c316cd9
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user