From 8929ab96ad44b707bafd7dfe6f1f7773843c8e85 Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Wed, 5 Aug 2026 14:12:13 +0200 Subject: mobile: fix the documented gomobile bind command so it reproduces the shipped .aar The comment omitted -javapkg, the second -target ABI and -androidapi. A clean clone following it got a .aar whose classes sit under go.mobile.gojni instead of xyz.labunix.dlectio.engine.mobile, carries only arm64-v8a, and declares no minSdkVersion match to the app's 26 -- the app cannot import the result. Verified by rebuilding the binding with the corrected command and confirming the artifact's ABIs, package and minSdkVersion against the shipped one. --- mobile/mobile.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'mobile/mobile.go') 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 -- cgit v1.3