./make: script to create android builds (#315)

This PR introduces the `./make` script. For now, this script knows how to make Android releases. We have code in https://github.com/ooni/probe-cli/pull/311 that builds other artifacts in this repository.

Because our current concern is https://github.com/ooni/probe/issues/1444, in this PR, I have chosen to keep the Android code necessary to fix https://github.com/ooni/probe/issues/1444.

Additionally, this PR removes the script to publish to Bintray. This change part of the https://github.com/ooni/probe/issues/1440 cleanup effort.
This commit is contained in:
Simone Basso 2021-04-27 16:36:57 +02:00 committed by GitHub
commit 514ad8d0f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 848 additions and 53 deletions

View file

@ -1,2 +1,4 @@
/oonimkall-sources.jar
/oonimkall.aar
/*.aar
/*.asc
/*.jar
/*.pom

16
MOBILE/android/go Executable file
View file

@ -0,0 +1,16 @@
#!/bin/sh
# print the fullpath of the go we're using so that it's part
# of the build logs and we can easily increase our confidence
# that we are using the right go binary.
echo -n "$0: checking for go... "
go=`command -v go`
if [ -z $go ]; then
echo "not found"
exit 1
fi
echo "$go"
set -x
$go "$@"

24
MOBILE/android/gomobile Executable file
View file

@ -0,0 +1,24 @@
#!/bin/sh
# print the fullpath of the go/gomobile we're using so that it's part
# of the build logs and we can easily increase our confidence
# that we are using the right go/gomobile binary.
echo -n "$0: checking for go... "
go=`command -v go`
if [ -z $go ]; then
echo "not found"
exit 1
fi
echo "$go"
echo -n "$0: checking for gomobile... "
gomobile=`command -v gomobile`
if [ -z $go ]; then
echo "not found"
exit 1
fi
echo "$gomobile"
set -x
$gomobile "$@"