Skip to content

Commit

Permalink
tmaps: use go generate
Browse files Browse the repository at this point in the history
Use go generate to produce the gomobile outputs and the Dart proto
files. This mostly obsoletes the BUILD.md file, so what's still needed
is folded into README.md under "Development / Build the Mobile App".

This partly resolves #4; there is still a failure when
attempting to build the mobile app.
  • Loading branch information
jtacoma committed Aug 3, 2020
1 parent 3dabaee commit c2f46b1
Show file tree
Hide file tree
Showing 9 changed files with 793 additions and 224 deletions.
31 changes: 0 additions & 31 deletions BUILD.md

This file was deleted.

12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,18 @@ Code paths:
This repository comes with a Git pre-commit hook in `./githooks`. Install it:
`cp ./githooks/pre-commit .git/hooks/pre-commit`.

### Build the Mobile App

First, you'll need a build environment:

* Install [Flutter](https://flutter.dev/docs/get-started/install).
* Install [gomobile](https://golang.org/x/mobile/cmd/gomobile).

Then, generate the intermediate binaries from the `tmaps/mobileapi` package:

go generate -tags android ./tmaps/mobileapi
go generate -tags ios ./tmaps/mobileapi

### Source Code Headers

Every file containing source code must include copyright and license
Expand Down
Loading

0 comments on commit c2f46b1

Please sign in to comment.