aboutsummaryrefslogtreecommitdiff
path: root/mobile/mobile.go
diff options
context:
space:
mode:
Diffstat (limited to 'mobile/mobile.go')
-rw-r--r--mobile/mobile.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/mobile/mobile.go b/mobile/mobile.go
index d91831c..7e4c109 100644
--- a/mobile/mobile.go
+++ b/mobile/mobile.go
@@ -1,9 +1,16 @@
// Package mobile is lectio's engine facade for the dlectio Android app. It is
// bound to a native Android library with gomobile:
//
-// gomobile bind -target=android/arm64 -tags fullbible \
+// gomobile bind -target=android/arm64,android/amd64 -androidapi 26 \
+// -javapkg=xyz.labunix.dlectio.engine -tags fullbible \
// -o dlectio-engine.aar github.com/lukaszkasprzak/lectio/mobile
//
+// -javapkg gives the bound Mobile class its xyz.labunix.dlectio.engine.mobile
+// package (the app imports it from there); the two -target ABIs match the
+// app's arm64-v8a and x86_64 device/emulator targets; -androidapi 26 matches
+// the app's minSdk. Omitting any of the three still produces an .aar, just
+// one the app cannot import or that lacks an ABI it needs.
+//
// The app calls Day() with a plain date/form/version and receives one JSON
// document with the day's identity and rendered Mass readings. All liturgical
// computation and text resolution happens here, in the exact validated lectio