Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android: build AAR and setup continuous integration #354

Merged
merged 16 commits into from
Feb 19, 2020
Merged

Conversation

bassosimone
Copy link
Contributor

@bassosimone bassosimone commented Feb 19, 2020

We create a new directory called MOBILE. This directory will
contain two subdirs, both gitignored. We will put output
packages inside the dist subdir. We will use the gopath
subdir as the temporary gopath.

The go.sum file changes slightly because we are using
content from the x/mobile repository. We are however not
compiling and building gomobile in a module enabled env
to avoiding tainting go.sum and go.mod too much. We are
in fact using a temporary gopath precisely for building
gomobile outside of any module environment.

Also, there is a build that mimics what I am currently doing
on macOS, to validate we can still build for Android. The build
also produces the .aar and the sources as artefacts, e.g.
see https://github.com/ooni/probe-engine/actions/runs/41802231.

These artefacts are stored at GitHub for 90 days,
which is good enough for the use case of downloading and
testing them. We will need a better and more comprehensive
solution when we build tags.

This is part of measurement-kit/measurement-kit#1913
and specifically it builds a replacement for MK on Android. Of course,
we are not at the point where we can get rid of MK completely yet, but already
we have an AAR that implements some of our experiments.

We create a new directory called MOBILE. This directory will
contain two subdirs, both `gitignored`. We will put output
packages inside the `dist` subdir. We will use the `gopath`
subdir as the temporary gopath.

The `go.sum` file changes slightly because we are using
content from the `x/mobile` repository. We are however not
compiling and building `gomobile` in a module enabled env
to avoiding tainting `go.sum` and `go.mod` too much. We are
in fact using a temporary gopath precisely for building
`gomobile` outside of any module environment.

This is part of measurement-kit/measurement-kit#1913
and specifically it contains the strategy to not need MK for
running OONI on Android platforms. Of course, we are not at the
point where we can get rid of MK completely yet, but already
we have an AAR that implements some of our experiments.
@bassosimone bassosimone changed the title add build-android.bash: script to build AAR Build AAR and setup continuous integration Feb 19, 2020
@bassosimone bassosimone changed the title Build AAR and setup continuous integration android: build AAR and setup continuous integration Feb 19, 2020
@bassosimone bassosimone merged commit f4dcad9 into master Feb 19, 2020
@bassosimone bassosimone deleted the android branch February 19, 2020 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant